mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2026-01-08 18:59:19 +11:00
Add dummy module for VDP dialog
This commit is contained in:
parent
d1dcdd1381
commit
b4469d514c
6 changed files with 123 additions and 3 deletions
|
|
@ -37,6 +37,35 @@ ClearTile$:
|
|||
bne ClearLine$
|
||||
|
||||
rts
|
||||
|
||||
vdp_clear_dialog:
|
||||
T_NT_IDX$: .equ _Zp+4
|
||||
T_Y$: .equ _Zp+1
|
||||
T_X$: .equ _Zp+0
|
||||
|
||||
|
||||
lda #0x01
|
||||
sta zp:T_NT_IDX$
|
||||
lda #0x04
|
||||
sta zp:T_X$
|
||||
lda #15
|
||||
sta zp:T_Y$
|
||||
ldy #9
|
||||
|
||||
ClearLine$:
|
||||
jsr vdp_point_to_vram_xy
|
||||
lda #0x00
|
||||
ldx #24
|
||||
ClearTile$:
|
||||
sta VDP_MEM
|
||||
dex
|
||||
bne ClearTile$
|
||||
|
||||
dec zp:T_Y$
|
||||
dey
|
||||
bne ClearLine$
|
||||
|
||||
rts
|
||||
|
||||
;;; vdp_draw_numtile:
|
||||
;;; Draws the 2048 tile at specified coordinates
|
||||
|
|
@ -124,4 +153,5 @@ TileNum_Y_Map:
|
|||
;;;;;;;;;;;;;;;;;;
|
||||
.public vdp_draw_numtile
|
||||
.public vdp_clear_gamegrid
|
||||
.public vdp_clear_dialog
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue