Skip to content

Instantly share code, notes, and snippets.

@jmgrosen
Created October 11, 2012 22:09
Show Gist options
  • Select an option

  • Save jmgrosen/3875828 to your computer and use it in GitHub Desktop.

Select an option

Save jmgrosen/3875828 to your computer and use it in GitHub Desktop.
:'(
JSR init_hardware
JSR main
:monitor
DAT 0x0000
:init_hardware
HWN I
:hw_loop
SUB I, 1
HWQ I
IFE B, 0x7349
IFE A, 0xF615
SET [monitor], I
IFN I, 0
SET PC, hw_loop
:init_monitor
SET A, 0
SET B, 0xF000
HWI [monitor]
SET PC, POP
:main
SET [0xF000], 50
SET PC, main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment