1
0
mirror of https://github.com/fumiama/c64-snake.git synced 2026-06-11 21:50:32 +08:00

add score(初步)

This commit is contained in:
fumiama
2021-03-31 23:29:04 +08:00
parent 7415d0774d
commit 52ac9f147b
9 changed files with 180 additions and 49 deletions

20
printscore.asm Normal file
View File

@@ -0,0 +1,20 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; printscore 打印分数
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
printscore:
.scope
lda #cblk
ldx #15
* jsr chrout
dex
bne -
`print score_str
`print16 s
ldx #15
* jsr chrout
dex
bne -
rts
.scend
score_str: .byte "SCORE",0