Last active
August 29, 2015 14:07
-
-
Save salexkidd/4f68d9a939f0997ebc45 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
* = $6000 | |
LDA #0 | |
LDX #0 | |
zeropage_reset: | |
STA *0,X | |
INX | |
CPX #$ff | |
BEQ main: | |
JMP zeropage_reset: | |
; clrX | |
LDX #0 | |
main: | |
INC *0,X | |
LDA *0,X | |
CMP #$ff | |
BEQ next: | |
JMP main: | |
next: | |
INX | |
CPX #$ff | |
BEQ end: | |
JMP main: | |
end: | |
NOP | |
JMP end: | |
//Object code | |
A9 00 A2 00 95 00 E8 E0 | |
FF F0 05 4C 04 60 A2 00 | |
F6 00 B5 00 C9 FF F0 03 | |
4C 10 60 E8 E0 FF F0 03 | |
4C 10 60 EA 4C 23 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment