2019-10-17 02:15:57 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2019 by 4am
|
|
|
|
;
|
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/FX.INDEXED/SOFT.UD",plain
|
2019-10-17 02:15:57 +00:00
|
|
|
*=$6000
|
|
|
|
|
|
|
|
maskindex = $fc
|
|
|
|
row = $fd
|
|
|
|
|
2019-10-24 19:41:08 +00:00
|
|
|
!source "src/fx/macros.a"
|
2020-03-17 22:30:20 +00:00
|
|
|
!source "src/constants.a"
|
2019-10-24 19:41:08 +00:00
|
|
|
|
2019-10-17 02:15:57 +00:00
|
|
|
lda #$FA
|
|
|
|
sta row
|
|
|
|
@rowloop
|
|
|
|
lda #6
|
|
|
|
sta maskindex
|
2019-10-20 00:30:48 +00:00
|
|
|
jsr WaitForVBL
|
2019-10-17 02:15:57 +00:00
|
|
|
@maskloop
|
|
|
|
lda row
|
|
|
|
bmi @skiprow
|
|
|
|
cmp #24
|
|
|
|
bcs @skiprow
|
|
|
|
asl
|
|
|
|
asl
|
|
|
|
asl
|
|
|
|
jsr HGRCalc
|
|
|
|
|
|
|
|
lda #<masks
|
|
|
|
sta @basemaskaddr
|
|
|
|
lda #>masks
|
|
|
|
sta @basemaskaddr+1
|
|
|
|
lda maskindex
|
|
|
|
asl
|
|
|
|
asl
|
|
|
|
asl
|
|
|
|
clc
|
|
|
|
adc @basemaskaddr
|
|
|
|
sta @basemaskaddr
|
|
|
|
bcc +
|
|
|
|
inc @basemaskaddr+1
|
|
|
|
+
|
|
|
|
ldx #7
|
2019-10-24 19:41:08 +00:00
|
|
|
clc
|
2019-10-17 02:15:57 +00:00
|
|
|
@blockloop
|
|
|
|
@basemaskaddr=*+1
|
|
|
|
lda $FDFD,x ; SMC
|
|
|
|
sta @copymask
|
|
|
|
ldy #39
|
|
|
|
@colloop
|
|
|
|
lda ($26),y
|
2019-10-24 19:41:08 +00:00
|
|
|
eor ($3c),y
|
2019-10-17 02:15:57 +00:00
|
|
|
@copymask=*+1
|
|
|
|
and #0 ; SMC
|
2019-10-24 19:41:08 +00:00
|
|
|
eor ($26),y
|
2019-10-17 02:15:57 +00:00
|
|
|
sta ($26),y
|
|
|
|
dey
|
|
|
|
bpl @colloop
|
2019-10-24 19:41:08 +00:00
|
|
|
+HGR_INC_WITHIN_BLOCK
|
2019-10-17 02:15:57 +00:00
|
|
|
dex
|
|
|
|
bpl @blockloop
|
|
|
|
|
|
|
|
@skiprow
|
|
|
|
inc row
|
|
|
|
dec maskindex
|
|
|
|
bpl @maskloop
|
|
|
|
|
|
|
|
lda #40
|
|
|
|
jsr WaitForKeyWithTimeout
|
|
|
|
bmi @exit
|
|
|
|
|
|
|
|
dec row
|
|
|
|
dec row
|
|
|
|
dec row
|
|
|
|
dec row
|
|
|
|
dec row
|
|
|
|
dec row
|
|
|
|
lda row
|
|
|
|
bmi @rowloop
|
|
|
|
cmp #24
|
|
|
|
bcc @rowloop
|
|
|
|
|
2019-11-20 05:55:33 +00:00
|
|
|
@exit jmp UnwaitForVBL
|
2019-10-17 02:15:57 +00:00
|
|
|
|
|
|
|
masks
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10001000
|
|
|
|
!byte %10001000
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10010100
|
|
|
|
!byte %10001000
|
|
|
|
!byte %10001000
|
|
|
|
!byte %10010100
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10000000
|
|
|
|
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10101010
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10011100
|
|
|
|
!byte %10101010
|
|
|
|
!byte %10000000
|
|
|
|
|
|
|
|
!byte %10000000
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10000000
|
|
|
|
|
|
|
|
!byte %11010101
|
|
|
|
!byte %10111110
|
|
|
|
!byte %11111111
|
|
|
|
!byte %10111110
|
|
|
|
!byte %11111111
|
|
|
|
!byte %10111110
|
|
|
|
!byte %10111110
|
|
|
|
!byte %11010101
|
|
|
|
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
!byte %11111111
|
|
|
|
|
|
|
|
!source "src/wait.a"
|
2020-11-14 02:24:30 +00:00
|
|
|
+HGR_CALC_ROUTINES
|