2018-12-29 18:43:59 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
2018-10-30 23:26:20 +00:00
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!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"
|
2020-11-14 02:24:30 +00:00
|
|
|
+HGR_WHITE_ROUTINES
|
|
|
|
+HGR_BLOCK_COPY_ROUTINES
|