2018-12-29 18:43:59 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
2018-11-03 13:23:04 +00:00
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/FX.INDEXED/STAGGER.LR",plain
|
2018-11-03 13:23:04 +00:00
|
|
|
*=$6000
|
|
|
|
|
|
|
|
row = $fd
|
|
|
|
col1 = $fe
|
|
|
|
col2 = $ff
|
|
|
|
|
2022-08-26 01:56:15 +00:00
|
|
|
!source "src/fx/macros.a"
|
|
|
|
|
2018-11-03 13:23:04 +00:00
|
|
|
lda #$00
|
|
|
|
sta col1
|
|
|
|
lda #$27
|
|
|
|
sta col2
|
|
|
|
@outerloop
|
|
|
|
lda #$2E
|
|
|
|
sta row
|
|
|
|
@loop1 ldy col1
|
|
|
|
lda row
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
iny
|
|
|
|
jsr HGRStaggerCopy
|
|
|
|
ldy col2
|
|
|
|
lda row
|
|
|
|
jsr HGRHalfBlockCopy
|
|
|
|
dey
|
|
|
|
jsr HGRStaggerCopy
|
|
|
|
dec row
|
|
|
|
dec row
|
|
|
|
bpl @loop1
|
|
|
|
lda #$40
|
2024-05-26 17:41:21 +00:00
|
|
|
jsr iWaitForKeyWithTimeout
|
2018-11-03 13:23:04 +00:00
|
|
|
bmi @exit
|
|
|
|
inc col1
|
|
|
|
inc col1
|
|
|
|
dec col2
|
|
|
|
dec col2
|
|
|
|
bpl @outerloop
|
|
|
|
@exit rts
|
|
|
|
|
2020-11-14 02:24:30 +00:00
|
|
|
+HGR_HALF_BLOCK_COPY_ROUTINES
|