Feature Level: 1.2.0
This commit is contained in:
parent
b6f8341274
commit
8d46da0a06
1 changed files with 22 additions and 0 deletions
22
assembly.txt
22
assembly.txt
|
@ -41,3 +41,25 @@ JMP R00
|
||||||
06 - JEQ - jump if equals
|
06 - JEQ - jump if equals
|
||||||
JMP DESTINATION SOURCE1 SOURCE2
|
JMP DESTINATION SOURCE1 SOURCE2
|
||||||
JMP R00 R01 C00
|
JMP R00 R01 C00
|
||||||
|
|
||||||
|
07 - HIN - halt for input
|
||||||
|
HIN DESTINATION
|
||||||
|
HIN R00
|
||||||
|
|
||||||
|
Reserved registers:
|
||||||
|
|
||||||
|
Register 8 is used for text and number output. Numbers through hex 01-25 correspond to a number, here is the sheet:
|
||||||
|
|
||||||
|
00 - Nothing
|
||||||
|
|
||||||
|
01-0A - Numbers from 0-9
|
||||||
|
|
||||||
|
0B-24 - Letters from A-Z (capitalized)
|
||||||
|
|
||||||
|
25 - Space
|
||||||
|
|
||||||
|
26 - New line
|
||||||
|
|
||||||
|
27-FF - Nothing
|
||||||
|
|
||||||
|
To print, just make sure to store the corresponding number in register 8, and don't forget to replace it with 00, else it will constantly print out, as it doesn't clear.
|
||||||
|
|
Reference in a new issue