dos33fsprogs/demos/lovebyte2024/dtv_1k/opener.s

49 lines
697 B
ArmAsm
Raw Permalink Normal View History

2024-02-08 03:59:13 +00:00
; draws a circle pattern
opener:
2024-02-08 04:18:00 +00:00
; A=0 from HGR
2024-02-08 03:59:13 +00:00
lda #$20
sta HGR_SCALE
2024-02-08 04:18:00 +00:00
jsr HGR
sta HGR_ROTATION
2024-02-08 03:59:13 +00:00
; A and Y are 0 here.
; X is left behind by the boot process?
tiny_loop:
2024-02-08 04:18:00 +00:00
tay
; ldy #0
2024-02-08 03:59:13 +00:00
ldx #140
lda #96
jsr HPOSN ; set screen position to X= (y,x) Y=(a)
; saves X,Y,A to zero page
; after Y= orig X/7
; A and X are ??
ldx #<our_shape ; load $E2 into A, X, and Y
ldy #>our_shape ; our shape table is in ROM at $E2E2
inc HGR_ROTATION
lda HGR_ROTATION
cmp #$40
beq done_circle
jsr XDRAW0 ; XDRAW 1 AT X,Y
; Both A and X are 0 at exit
; Z flag set on exit
; Y varies
beq tiny_loop ; bra
done_circle:
lda #250
jsr WAIT
2024-02-08 04:18:00 +00:00
; rts
2024-02-08 03:59:13 +00:00
our_shape = $E2E2