mirror of
https://github.com/a2-4am/4cade.git
synced 2024-10-16 21:24:12 +00:00
45 lines
847 B
Plaintext
45 lines
847 B
Plaintext
|
!cpu 6502
|
||
|
!to "build/FX/SUNRISE",plain
|
||
|
*=$6000
|
||
|
|
||
|
coord = $FE
|
||
|
|
||
|
lda #<@coords
|
||
|
sta coord
|
||
|
lda #>@coords
|
||
|
sta coord+1
|
||
|
ldy #0
|
||
|
@loop
|
||
|
lda (coord),y
|
||
|
bpl @copy
|
||
|
lda #$28
|
||
|
jsr WaitForKeyWithTimeout
|
||
|
bmi @exit
|
||
|
bpl @next ; always branches
|
||
|
@copy
|
||
|
tax
|
||
|
iny
|
||
|
lda (coord),y
|
||
|
tay
|
||
|
txa
|
||
|
jsr HGRHalfBlockCopy
|
||
|
@next
|
||
|
inc coord
|
||
|
bne +
|
||
|
inc coord+1
|
||
|
+ inc coord
|
||
|
bne +
|
||
|
inc coord+1
|
||
|
+ ldy #$00
|
||
|
lda ($FE),y
|
||
|
cmp #$80
|
||
|
bne @loop
|
||
|
@exit rts
|
||
|
|
||
|
@coords
|
||
|
!source "src/fx/fx.hgr.sunrise.data.a"
|
||
|
!byte $80
|
||
|
|
||
|
!source "src/wait.a"
|
||
|
!source "src/fx/fx.hgr.common.a"
|