2018-12-29 18:43:59 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
2018-10-29 23:23:43 +00:00
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/FX.INDEXED/INTERLOCK.UD",plain
|
2018-10-29 23:23:43 +00:00
|
|
|
*=$6000
|
|
|
|
|
2018-10-29 02:59:51 +00:00
|
|
|
row1 = $fe
|
|
|
|
row2 = $ff
|
|
|
|
|
2022-08-26 01:56:15 +00:00
|
|
|
!source "src/fx/macros.a"
|
|
|
|
|
2018-10-29 02:59:51 +00:00
|
|
|
lda #$00
|
|
|
|
sta row1
|
|
|
|
lda #$5F
|
|
|
|
sta row2
|
|
|
|
@loop lda row1
|
|
|
|
asl
|
|
|
|
jsr HGRCalc
|
|
|
|
ldy #$27
|
|
|
|
- lda ($3c),y
|
|
|
|
sta ($26),y
|
|
|
|
dey
|
|
|
|
bpl -
|
|
|
|
lda row2
|
|
|
|
asl
|
2018-10-29 00:05:59 +00:00
|
|
|
clc
|
2018-10-29 02:59:51 +00:00
|
|
|
adc #$01
|
|
|
|
jsr HGRCalc
|
|
|
|
ldy #$27
|
|
|
|
- lda ($3c),y
|
|
|
|
sta ($26),y
|
|
|
|
dey
|
|
|
|
bpl -
|
|
|
|
lda #$30
|
2018-10-29 11:21:47 +00:00
|
|
|
jsr WaitForKeyWithTimeout
|
2018-10-29 00:05:59 +00:00
|
|
|
bmi @exit
|
2018-10-29 02:59:51 +00:00
|
|
|
inc row1
|
|
|
|
dec row2
|
2018-10-29 00:05:59 +00:00
|
|
|
bpl @loop
|
|
|
|
@exit rts
|
2018-10-29 23:23:43 +00:00
|
|
|
|
|
|
|
!source "src/wait.a"
|
2020-11-14 02:24:30 +00:00
|
|
|
+HGR_CALC_ROUTINES
|