2018-12-29 18:43:59 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
2018-10-29 23:23:43 +00:00
|
|
|
!cpu 6502
|
|
|
|
!to "build/FX/INTERLOCK.LR",plain
|
|
|
|
*=$6000
|
|
|
|
|
2018-10-31 01:17:35 +00:00
|
|
|
row = $FF
|
2018-10-29 00:23:04 +00:00
|
|
|
|
|
|
|
lda #$00
|
2018-10-31 01:17:35 +00:00
|
|
|
sta @h1
|
|
|
|
lda #$27
|
|
|
|
sta @h2
|
2018-10-29 00:23:04 +00:00
|
|
|
@outerloop
|
2018-10-31 01:17:35 +00:00
|
|
|
lda #$BF
|
|
|
|
sta row
|
|
|
|
@loop lda row
|
|
|
|
jsr HGRCalc
|
|
|
|
@h1=*+1
|
|
|
|
ldy #$00
|
|
|
|
lda ($3c),y
|
|
|
|
sta ($26),y
|
|
|
|
dec row
|
|
|
|
lda row
|
|
|
|
jsr HGRCalc
|
|
|
|
@h2=*+1
|
|
|
|
ldy #$27
|
|
|
|
lda ($3c),y
|
|
|
|
sta ($26),y
|
|
|
|
dec row
|
|
|
|
lda row
|
|
|
|
cmp #$FF
|
|
|
|
bne @loop
|
|
|
|
lda #$20
|
2018-10-29 11:21:47 +00:00
|
|
|
jsr WaitForKeyWithTimeout
|
2018-10-29 00:05:59 +00:00
|
|
|
bmi @exit
|
2018-10-31 01:17:35 +00:00
|
|
|
inc @h1
|
|
|
|
dec @h2
|
2018-10-29 00:23:04 +00:00
|
|
|
bpl @outerloop
|
2018-10-29 00:05:59 +00:00
|
|
|
@exit rts
|
|
|
|
|
2018-10-29 23:23:43 +00:00
|
|
|
!source "src/wait.a"
|
2018-10-31 01:17:35 +00:00
|
|
|
!source "src/fx/fx.hgr.common.a"
|