mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-09 03:31:05 +00:00
17a1d69f7a
not sure if it's that noticable
52 lines
621 B
ArmAsm
52 lines
621 B
ArmAsm
|
|
;======================
|
|
; hgr 1x5 draw sprite
|
|
;======================
|
|
; over-writes
|
|
; SPRITE in INL/INH
|
|
; Location at CURSOR_X CURSOR_Y*7
|
|
; X, Y, A trashed
|
|
|
|
hgr_draw_sprite_1x5:
|
|
|
|
; set up pointers
|
|
lda INL
|
|
sta h1x5_smc1+1
|
|
lda INH
|
|
sta h1x5_smc1+2
|
|
|
|
ldx #0
|
|
hgr_1x5_sprite_yloop:
|
|
txa
|
|
pha
|
|
|
|
clc
|
|
adc CURSOR_Y
|
|
|
|
ldx #0
|
|
ldy #0
|
|
|
|
; calc GBASL/GBASH
|
|
; jsr HPOSN ; (Y,X),(A) (values stored in HGRX,XH,Y)
|
|
|
|
tax
|
|
lda hposn_low,X
|
|
sta GBASL
|
|
lda hposn_high,X
|
|
sta GBASH
|
|
|
|
pla
|
|
tax
|
|
|
|
ldy CURSOR_X
|
|
|
|
h1x5_smc1:
|
|
lda $D000,X ; not $0000 or it will make it ZP
|
|
sta (GBASL),Y
|
|
|
|
inx
|
|
cpx #5
|
|
bne hgr_1x5_sprite_yloop
|
|
|
|
rts
|