-
Notifications
You must be signed in to change notification settings - Fork 0
/
output1.output
64 lines (53 loc) · 2.01 KB
/
output1.output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
mips> c
Simulator reset
mips> d
pc = 0
$0 = 0 $v0 = 0 $v1 = 0 $a0 = 0
$a1 = 0 $a2 = 0 $a3 = 0 $t0 = 0
$t1 = 0 $t2 = 0 $t3 = 0 $t4 = 0
$t5 = 0 $t6 = 0 $t7 = 0 $s0 = 0
$s1 = 0 $s2 = 0 $s3 = 0 $s4 = 0
$s5 = 0 $s6 = 0 $s7 = 0 $t8 = 0
$t9 = 0 $sp = 0 $ra = 0
mips> s
1 instruction(s) executed
mips> d
pc = 1
$0 = 0 $v0 = 0 $v1 = 0 $a0 = 10
$a1 = 0 $a2 = 0 $a3 = 0 $t0 = 0
$t1 = 0 $t2 = 0 $t3 = 0 $t4 = 0
$t5 = 0 $t6 = 0 $t7 = 0 $s0 = 0
$s1 = 0 $s2 = 0 $s3 = 0 $s4 = 0
$s5 = 0 $s6 = 0 $s7 = 0 $t8 = 0
$t9 = 0 $sp = 0 $ra = 0
mips> s 5
5 instruction(s) executed
mips> d
pc = 2
$0 = 0 $v0 = 0 $v1 = 0 $a0 = 9
$a1 = 0 $a2 = 0 $a3 = 0 $t0 = 0
$t1 = 0 $t2 = 0 $t3 = 0 $t4 = 0
$t5 = 0 $t6 = 0 $t7 = 0 $s0 = 19
$s1 = 0 $s2 = 0 $s3 = 0 $s4 = 0
$s5 = 0 $s6 = 0 $s7 = 0 $t8 = 0
$t9 = 0 $sp = 0 $ra = 0
mips> r
mips> d
pc = 5
$0 = 0 $v0 = 0 $v1 = 0 $a0 = 0
$a1 = 0 $a2 = 0 $a3 = 0 $t0 = 0
$t1 = 0 $t2 = 0 $t3 = 0 $t4 = 0
$t5 = 0 $t6 = 0 $t7 = 0 $s0 = 55
$s1 = 0 $s2 = 0 $s3 = 0 $s4 = 0
$s5 = 0 $s6 = 0 $s7 = 0 $t8 = 0
$t9 = 0 $sp = 0 $ra = 0
mips> h
h = show help
d = dump register state
s = single step through the program (i.e. execute 1 instruction and stop)
s num = step through num instructions of the program
r = run until the program ends
m num1 num2 = display data memory from location num1 to num2
c = clear all registers, memory, and the program counter to 0
q = exit the program
mips> q