diff --git a/assembly.txt b/assembly.txt index 3526aaa..ff6e7c5 100644 --- a/assembly.txt +++ b/assembly.txt @@ -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.