Created
September 14, 2018 21:27
-
-
Save nurpax/78667f0470e2fd01df61649672b54ad4 to your computer and use it in GitHub Desktop.
This file contains 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
!macro basic_start(addr) { | |
* = $801 | |
!byte $0c | |
!byte $08 | |
!byte $00 | |
!byte $00 | |
!byte $9e | |
!if (addr >= 10000) { | |
!byte $30 + (addr/10000)%10 | |
} | |
!if (addr >= 1000) { | |
!byte $30 + (addr/1000)%10 | |
} | |
!if (addr >= 100) { | |
!byte $30 + (addr/100)%10 | |
} | |
!if (addr >= 10) { | |
!byte $30 + (addr/10)%10 | |
} | |
!byte $30 + addr % 10 | |
!byte 0, 0, 0 | |
} | |
+basic_start(start) | |
* = $812 | |
start: | |
lda #0 | |
sta $d020 | |
loop: | |
jmp loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment