1

Add source and compiled version of updated test program

This commit is contained in:
2023-03-21 17:14:55 +01:00
parent b9898e0a8d
commit 60c426eb70
3 changed files with 30 additions and 3 deletions

17
add_and_jump.cpu8 Normal file
View 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
add_and_jump.lasm8 Normal file
View 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

View File

@ -1,3 +0,0 @@
MOV 5, reg1
MOV 10, reg2
ADD