Skip to content

Commit 709c42e

Browse files
committed
Change memoey-image util samples
1 parent c3e3a56 commit 709c42e

File tree

7 files changed

+33
-18
lines changed

7 files changed

+33
-18
lines changed
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
2010000f
2-
20080010
3-
02086820
4-
03e00008
1+
201004d2
2+
ac100001
3+
8c080001
4+
12080001
5+
2009000c
6+
200a000f
7+
ac0a0005
8+
03e00008
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
v2.0 raw
2-
0f 10 20 08
2+
d2 01 01 01 0c 0f 05 08
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
v2.0 raw
2-
00 00 68 00
2+
04 00 00 00 00 00 00 00
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
v2.0 raw
2-
10 08 08 e0
2+
10 10 08 08 09 0a 0a e0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
v2.0 raw
2-
20 20 02 03
2+
20 ac 8c 12 20 20 ac 03
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
00400000: <main> ; <input:0> main:
2-
00400000: 2010000f ; <input:1> addi $s0, $zero, 15
3-
00400004: 20080010 ; <input:2> addi $t0, $zero, 16
4-
00400008: 02086820 ; <input:3> add $t5, $s0, $t0
5-
0040000c: 03e00008 ; <input:5> jr $ra # return to Operating System
2+
00400000: 201004d2 ; <input:1> addi $s0, $zero, 1234
3+
00400004: ac100001 ; <input:2> sw $s0, 1($zero)
4+
00400008: 8c080001 ; <input:3> lw $t0, 1($zero)
5+
0040000c: 12080001 ; <input:4> beq $s0, $t0, next
6+
00400010: 2009000c ; <input:5> addi $t1, $zero, 12
7+
00400014: <next> ; <input:6> next:
8+
00400014: 200a000f ; <input:7> addi $t2, $zero, 15
9+
00400018: ac0a0005 ; <input:8> sw $t2, 5($zero)
10+
0040001c: 03e00008 ; <input:9> jr $ra

utils/memory-image/samples/text.asm

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
.globl main
2-
main:
3-
addi $s0, $zero, 15
4-
addi $t0, $zero, 16
5-
add $t5, $s0, $t0
1+
.globl main
2+
main:
3+
addi $s0, $zero, 1234
4+
sw $s0, 1($zero)
5+
lw $t0, 1($zero)
6+
beq $s0, $t0, next
7+
addi $t1, $zero, 12
8+
next:
9+
addi $t2, $zero, 15
10+
sw $t2, 5($zero)
11+
jr $ra
12+
613

7-
jr $ra # return to Operating System

0 commit comments

Comments
 (0)