2021-02-16 06:01:22 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
|
|
|
!cpu 6502
|
2022-08-23 02:04:55 +00:00
|
|
|
!to "build/FX.INDEXED/FOURSPIRAL",plain
|
2021-02-16 06:01:22 +00:00
|
|
|
*=$6000
|
|
|
|
|
2022-08-26 01:56:29 +00:00
|
|
|
!source "src/fx/macros.a"
|
|
|
|
|
2021-02-16 06:01:22 +00:00
|
|
|
lda #$13
|
|
|
|
sta $FB
|
|
|
|
lda #$17
|
|
|
|
sta $FD
|
|
|
|
lda #$00
|
|
|
|
sta $FA
|
|
|
|
sta $FC
|
|
|
|
@outerloop
|
|
|
|
lda $FC
|
|
|
|
sta $FE
|
|
|
|
lda $FA
|
|
|
|
sta $FF
|
|
|
|
lda #$00
|
|
|
|
sta $F9
|
|
|
|
@loop lda $FE
|
|
|
|
ldy $FF
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
lda #$27
|
|
|
|
sec
|
|
|
|
sbc $FF
|
|
|
|
tay
|
|
|
|
lda $FE
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
lda #$2F
|
|
|
|
sec
|
|
|
|
sbc $FE
|
|
|
|
pha
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
pla
|
|
|
|
ldy $FF
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
lda #$28
|
|
|
|
jsr WaitForKeyWithTimeout
|
|
|
|
bmi @exit
|
|
|
|
ldx $F9
|
|
|
|
bne @a
|
|
|
|
inc $FF
|
|
|
|
lda $FB
|
|
|
|
cmp $FF
|
|
|
|
bcs @loop
|
|
|
|
inc $FC
|
|
|
|
inc $F9
|
|
|
|
lda $FC
|
|
|
|
sta $FE
|
|
|
|
lda $FB
|
|
|
|
sta $FF
|
|
|
|
@a dex
|
|
|
|
bne @b
|
|
|
|
inc $FE
|
|
|
|
lda $FD
|
|
|
|
cmp $FE
|
|
|
|
bcs @loop
|
|
|
|
dec $FB
|
|
|
|
inc $F9
|
|
|
|
lda $FD
|
|
|
|
sta $FE
|
|
|
|
lda $FB
|
|
|
|
sta $FF
|
|
|
|
@b dex
|
|
|
|
bne @c
|
|
|
|
dec $FF
|
|
|
|
lda $FF
|
|
|
|
cmp $FA
|
|
|
|
bpl @loop
|
|
|
|
lda $FD
|
|
|
|
cmp $FC
|
|
|
|
beq @exit
|
|
|
|
dec $FD
|
|
|
|
inc $F9
|
|
|
|
lda $FD
|
|
|
|
sta $FE
|
|
|
|
lda $FA
|
|
|
|
sta $FF
|
|
|
|
@c dex
|
|
|
|
bne @loop
|
|
|
|
dec $FE
|
|
|
|
lda $FE
|
|
|
|
cmp $FC
|
|
|
|
bpl @loop
|
|
|
|
inc $FA
|
|
|
|
beq @exit
|
|
|
|
jmp @outerloop
|
|
|
|
@exit rts
|
|
|
|
|
|
|
|
!source "src/wait.a"
|
|
|
|
+HGR_HALF_BLOCK_COPY_ROUTINES
|