Initial commit (from Logisim-Assembler)
This commit is contained in:
17
programs/add_and_jump.cpu8_v1
Normal file
17
programs/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 c1 00 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
|
17
programs/counting.cpu8_v1
Normal file
17
programs/counting.cpu8_v1
Normal file
@ -0,0 +1,17 @@
|
||||
v3.0 hex words addressed
|
||||
00: 30 86 31 86 32 86 33 86 34 86 35 86 36 86 37 86
|
||||
10: 38 86 39 86 00 c4 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/counting.lasm8_v1
Normal file
13
programs/counting.lasm8_v1
Normal file
@ -0,0 +1,13 @@
|
||||
# Write "0123456789..." in ASCII to the output
|
||||
MOV 48, output
|
||||
MOV 49, output
|
||||
MOV 50, output
|
||||
MOV 51, output
|
||||
MOV 52, output
|
||||
MOV 53, output
|
||||
MOV 54, output
|
||||
MOV 55, output
|
||||
MOV 56, output
|
||||
MOV 57, output
|
||||
MOV 0, reg0
|
||||
JMP
|
17
programs/input_output.cpu8_v1
Normal file
17
programs/input_output.cpu8_v1
Normal file
@ -0,0 +1,17 @@
|
||||
v3.0 hex words addressed
|
||||
00: b1 0a 82 44 9e 00 00 00 00 00 00 00 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
|
5
programs/input_output.lasm8_v1
Normal file
5
programs/input_output.lasm8_v1
Normal file
@ -0,0 +1,5 @@
|
||||
# Add 10 to the input number, then output the result
|
||||
MOV input, reg1
|
||||
MOV 10, reg2
|
||||
ADD
|
||||
MOV reg3, output
|
17
programs/nop_and_jump.cpu8_v1
Normal file
17
programs/nop_and_jump.cpu8_v1
Normal file
@ -0,0 +1,17 @@
|
||||
v3.0 hex words addressed
|
||||
00: c0 00 c4 00 00 00 00 00 00 00 00 00 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
|
4
programs/nop_and_jump.lasm8_v1
Normal file
4
programs/nop_and_jump.lasm8_v1
Normal file
@ -0,0 +1,4 @@
|
||||
# Endless NOP loop
|
||||
NOP
|
||||
MOV 0, reg0
|
||||
JMP
|
Reference in New Issue
Block a user