mirror of
https://github.com/jborza/emu6502.git
synced 2024-11-21 23:31:19 +00:00
19 lines
236 B
NASM
19 lines
236 B
NASM
LDX #$00
|
|
LDY #$00
|
|
firstloop:
|
|
TXA
|
|
STA $0200,Y
|
|
PHA
|
|
INX
|
|
INY
|
|
STA $0200,Y
|
|
INY
|
|
PHA
|
|
CPY #$20
|
|
BNE firstloop ;loop until Y is $10
|
|
secondloop:
|
|
PLA
|
|
STA $0200,Y
|
|
INY
|
|
CPY #$40 ;loop until Y is $20
|
|
BNE secondloop |