1

Add example program outputting 0-9 in ASCII

This commit is contained in:
2023-03-21 19:41:58 +01:00
parent d0f9849098
commit d9b615b29b
2 changed files with 30 additions and 0 deletions

17
programs/counting.cpu8_v1 Normal file
View 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

View 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