Feature Level: 1.2.0

This commit is contained in:
Patrick_Pluto 2024-08-23 10:38:22 +02:00
parent b6f8341274
commit 8d46da0a06

View file

@ -41,3 +41,25 @@ JMP R00
06 - JEQ - jump if equals
JMP DESTINATION SOURCE1 SOURCE2
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.