This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Keyboard input and display | |
| ; By: github.com/andre-d | |
| :ENTRY SET PC, MAIN ; Entry point is MAIN | |
| :MAIN SET I, 0 ; Should default to 0 anyway | |
| SET B, 0 ; Current character is 0 | |
| :GETCH SET A, [0x9000+B] ; Get the character at the start of the buffer | |
| SET [0x9000+B], 0 ; Set the character we read to 0 |