1 /*
2 * MythSim
3 *
4 * Copyright (C) 2002-2004 Jason Vroustouris <jasonv@jasonv.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 package org.mythsim.console;
22
23 import org.mythsim.core.MythSim;
24
25 /***
26 * Starting point for command line version (Pre Alpha).
27 * @author Jason Vroustouris
28 */
29
30 public class MythSimConsole
31 extends MythSim {
32 public MythSimConsole() {
33 super();
34 }
35
36 public void print_registers() {
37 int s[] = getStatus();
38
39 System.out.print(" r0: " + s[MythSim.R_0]);
40 System.out.print(" r4: " + s[MythSim.R_4]);
41 System.out.println(" ir0: " + s[MythSim.IR_0]);
42
43 System.out.print(" r1: " + s[MythSim.R_1]);
44 System.out.print(" r5: " + s[MythSim.R_5]);
45 System.out.println(" ir1: " + s[MythSim.IR_1]);
46
47 System.out.print(" r2: " + s[MythSim.R_2]);
48 System.out.print(" r6: " + s[MythSim.R_6]);
49 System.out.println(" mdr: " + s[MythSim.MDR]);
50
51 System.out.print(" r3: " + s[MythSim.R_3]);
52 System.out.print(" r7: " + s[MythSim.R_7]);
53 System.out.println(" mar: " + s[MythSim.MAR]);
54 }
55
56 }
This page was automatically generated by Maven