4cade/src/fx/fx.hgr.block.fizzle.white.a

62 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-12-29 18:43:59 +00:00
;license:MIT
;(c) 2018 by 4am
;
2018-10-30 23:26:20 +00:00
!cpu 6502
!to "build/FX.INDEXED/BLOCK.MOSAIC",plain
2018-10-30 23:26:20 +00:00
*=$6000
2020-11-30 23:22:06 +00:00
!source "src/fx/fx.hgr.block.fizzle.common.a"
2018-10-30 23:26:20 +00:00
2020-11-30 23:22:06 +00:00
+BUILD_BLOCK_FIZZLE_DATA
+LDADDR Coordinates
+ST16 coord
2018-10-30 23:26:20 +00:00
@whiteloop
ldy #0
lda (coord),y
bmi @endwhite
tax
iny
lda (coord),y
tay
txa
jsr HGRBlockToWhite
lda #$03
jsr WaitForKeyWithTimeout
bmi @exit
inc coord
bne +
inc coord+1
+ inc coord
bne +
inc coord+1
+ bne @whiteloop
@endwhite
2020-11-30 23:22:06 +00:00
+LDADDR Coordinates
+ST16 coord
2018-10-30 23:26:20 +00:00
@copyloop
ldy #0
lda (coord),y
bmi @exit
tax
iny
lda (coord),y
tay
txa
jsr HGRBlockCopy
lda #$03
jsr WaitForKeyWithTimeout
bmi @exit
inc coord
bne +
inc coord+1
+ inc coord
bne +
inc coord+1
+ bne @copyloop
@exit rts
!source "src/wait.a"
+HGR_WHITE_ROUTINES
+HGR_BLOCK_COPY_ROUTINES