Skip to content

Instantly share code, notes, and snippets.

View andre-d's full-sized avatar

Archived andre-d

View GitHub Profile
; 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