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:
20
printscore.asm
Normal file
20
printscore.asm
Normal 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
|
||||
Reference in New Issue
Block a user