ORG $F000 ; Start of program memory
Lyrics:
.byte “I got a pocket full of quarters, “, $0D
.byte “and I’m headed to the arcade”, $0D
.byte “I don’t have a lot of money, “, $0D
.byte “but I’m bringing ev’rything I made”, $0D
.byte “I’ve got a callus on my finger, “, $0D
.byte “and my shoulder’s hurting too”, $0D
.byte “I’m gonna eat them all up, “, $0D
.byte “just as soon as they turn blue”, $0D
.byte “‘Cause I’ve got Pac-Man fever”, $00 ; Null terminator
Start:
LDX #0 ; Start at the first character
Loop:
LDA Lyrics,X ; Load character from memory
BEQ Done ; Stop when we hit the null terminator
; (Render character routine would go here)
INX
JMP Loop
Done:
RTS ; Return from subroutine