4cade/src/fx/fx.hgr.iris.a

43 lines
764 B
Plaintext
Raw Normal View History

2018-12-29 18:43:59 +00:00
;license:MIT
;(c) 2018 by 4am
;
!cpu 6502
!to "build/FX/IRIS",plain
*=$6000
2018-11-03 15:39:07 +00:00
coord = $FE
2018-10-29 16:11:57 +00:00
2018-11-03 15:39:07 +00:00
lda #<@coords
sta coord
lda #>@coords
sta coord+1
ldy #0
@loop
lda (coord),y
2018-10-29 16:11:57 +00:00
tax
iny
2018-11-03 15:39:07 +00:00
lda (coord),y
2018-10-29 16:11:57 +00:00
tay
txa
2018-11-03 15:39:07 +00:00
jsr HGRHalfBlockCopy
lda #$6
2018-10-29 16:11:57 +00:00
jsr WaitForKeyWithTimeout
bmi @exit
2018-11-03 15:39:07 +00:00
inc coord
bne +
inc coord+1
+ inc coord
bne +
inc coord+1
+ ldy #$00
lda ($FE),y
bpl @loop
2018-10-29 16:11:57 +00:00
@exit rts
2018-11-03 15:39:07 +00:00
@coords
!source "src/fx/fx.hgr.iris.data.a"
!byte $80
!source "src/wait.a"
!source "src/fx/fx.hgr.common.a"