1
0
mirror of https://github.com/fumiama/c64-snake.git synced 2026-06-08 12:00:30 +08:00

完善代码

This commit is contained in:
fumiama
2021-04-14 23:20:54 +08:00
parent 21e40a1dd4
commit 84901e4969
3 changed files with 3 additions and 3 deletions

View File

@@ -46,8 +46,8 @@ addfood:
bmi +
sbc #$c0
tay
* lda (_ptr), y
iny
* iny
lda (_ptr), y
cmp #csps
bne -
lda #crnd

View File

@@ -27,7 +27,7 @@ main:
jsr printscore ; 打印分数
lda d
sta prev_d ; 备份前一个按键
lda #32
lda #20
jsr delay ; 延时期间最后一个按键位于d
lda d
cmp #ed_g

BIN
snake.prg

Binary file not shown.