Add a simple example program
This commit is contained in:
17
binaries/add_and_jump.cpu8_v1
Normal file
17
binaries/add_and_jump.cpu8_v1
Normal file
@ -0,0 +1,17 @@
|
||||
v3.0 hex words addressed
|
||||
00: 05 81 0a 82 44 99 0f 82 45 00 80 c1 00 00 00 00
|
||||
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
13
programs/add_and_jump.lasm8_v1
Normal file
13
programs/add_and_jump.lasm8_v1
Normal file
@ -0,0 +1,13 @@
|
||||
# Add 5 + 10
|
||||
MOV 5, reg1
|
||||
MOV 10, reg2
|
||||
ADD
|
||||
|
||||
# Subtract result - 15
|
||||
MOV reg3, reg1
|
||||
MOV 15, reg2
|
||||
SUB
|
||||
|
||||
# Jump to 0 if result == 15
|
||||
MOV 0, reg0
|
||||
JEQ
|
Reference in New Issue
Block a user