2018-12-29 18:43:59 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
2018-11-02 02:35:48 +00:00
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/FX.INDEXED/HALF.MOSAIC",plain
|
2018-11-02 02:35:48 +00:00
|
|
|
*=$6000
|
|
|
|
|
2020-12-01 03:07:48 +00:00
|
|
|
!source "src/fx/fx.hgr.halfblock.fizzle.common.a"
|
2018-11-02 02:35:48 +00:00
|
|
|
|
2020-12-01 03:07:48 +00:00
|
|
|
+BUILD_HALFBLOCK_FIZZLE_DATA
|
|
|
|
|
|
|
|
+LDADDR Coordinates
|
|
|
|
+ST16 coord
|
2018-11-02 02:35:48 +00:00
|
|
|
@whiteloop
|
|
|
|
ldy #0
|
|
|
|
lda (coord),y
|
|
|
|
bmi @endwhite
|
|
|
|
tax
|
|
|
|
iny
|
|
|
|
lda (coord),y
|
|
|
|
tay
|
|
|
|
txa
|
|
|
|
jsr HGRHalfBlockToWhite
|
|
|
|
lda #$02
|
|
|
|
jsr WaitForKeyWithTimeout
|
|
|
|
bmi @exit
|
|
|
|
inc coord
|
|
|
|
bne +
|
|
|
|
inc coord+1
|
|
|
|
+ inc coord
|
|
|
|
bne +
|
|
|
|
inc coord+1
|
|
|
|
+ bne @whiteloop
|
|
|
|
@endwhite
|
2020-12-01 03:07:48 +00:00
|
|
|
+LDADDR Coordinates
|
|
|
|
+ST16 coord
|
2018-11-02 02:35:48 +00:00
|
|
|
@copyloop
|
|
|
|
ldy #0
|
|
|
|
lda (coord),y
|
|
|
|
bmi @exit
|
|
|
|
tax
|
|
|
|
iny
|
|
|
|
lda (coord),y
|
|
|
|
tay
|
|
|
|
txa
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
lda #$02
|
|
|
|
jsr WaitForKeyWithTimeout
|
|
|
|
bmi @exit
|
|
|
|
inc coord
|
|
|
|
bne +
|
|
|
|
inc coord+1
|
|
|
|
+ inc coord
|
|
|
|
bne +
|
|
|
|
inc coord+1
|
|
|
|
+ bne @copyloop
|
|
|
|
@exit rts
|
|
|
|
|
|
|
|
!source "src/wait.a"
|
|
|
|
!source "src/fx/fx.hgr.common.a"
|
2020-11-14 02:24:30 +00:00
|
|
|
+HGR_WHITE_ROUTINES
|
|
|
|
+HGR_HALF_BLOCK_COPY_ROUTINES
|