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

调整按键

This commit is contained in:
fumiama
2021-03-31 14:10:29 +08:00
parent ece3f266ea
commit 7415d0774d
3 changed files with 30 additions and 5 deletions

View File

@@ -10,24 +10,27 @@
main:
* jsr getin
beq skip
cmp #'@
beq end
jsr printbyte
lda #13 ; 换行
jsr chrout
skip:
jmp -
end:
rts
printbyte:
sta _na
txa
pha
ldx #7 ; 打印8bit
ldx #8 ; 打印8bit
* lda #$30 ; a = '0'
asl _na ; 左移一位溢出到c
bcc + ; if(c == 0) goto 下一个星号
adc #0 ; else a = a + c + 0
* jsr chrout ; putchar(a)
adc #0 ; a = a + c + 0
jsr chrout ; putchar(a)
dex ; x--
bne -- ; if(x != 0) goto 上个星号
bne - ; if(x != 0) goto 上个星号
pla
tax
rts

Binary file not shown.

22
snake.prg.p2k.cfg Normal file
View File

@@ -0,0 +1,22 @@
# Snake Fumiama
# C64
#Recalbox's Pad-to-Keyboard configuration
#Xenon 1 (1983)(IJK Software Ltd).tap
#ORIC ATMOS
# Moves
0:right = down ;; a droite
0:left = left ;; a gauche
0:j1right = down ;; a droite
0:j1left = left ;; a gauche
# Actions
0:b = up ;; DISENGAGE
0:a = space ;; tire
# Menu
0:l1 = esc ;; retour menu
0:l2 = V ;; reglage volume
0:select = I ;; instruction
0:r1 = S ;; niveau de jeu