Created
October 11, 2012 22:09
-
-
Save jmgrosen/3875828 to your computer and use it in GitHub Desktop.
:'(
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
| 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