Skip to content

Commit bd44fc3

Browse files
committed
update assem.txt for class 1
1 parent 39e5d56 commit bd44fc3

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

assem.ram

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
0x00 0x0018
2-
0x01 0x0038
3-
0x02 0x0058
4-
0x03 0x0000
5-
0x04 0xc0fc
6-
0x05 0x065c
1+
0x00 0x0101
2+
0x01 0x0302
3+
0x02 0x1248
4+
0x03 0x144c
5+
0x04 0x1701
6+
0x05 0x0860
7+
0x06 0x0a60

assem.txt

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// fib1 -> R0
2-
// fib2 -> R1
3-
// temp -> R2
4-
XX2 RETINT
5-
SETI
6-
XX1 CLRI
7-
XX MOV R0, R0
8-
ZZ JMP XX2
9-
YY
10-
MOV R3,Flags
1+
MOV R0, #1
2+
MOV R1, #2
3+
ADD R2, R1, R2
4+
ADD R3, R2, R2
5+
ADD R3, #1
6+
MOV R4, R3
7+
MOV R5, R3
8+

0 commit comments

Comments
 (0)