From 8d46da0a06da74cb0bfeff66b29f529f5377aef0 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Fri, 23 Aug 2024 10:38:22 +0200 Subject: [PATCH] Feature Level: 1.2.0 --- assembly.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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.