mirror of
https://github.com/fumiama/c64-snake.git
synced 2026-07-02 09:50:33 +08:00
调整按键
This commit is contained in:
@@ -10,24 +10,27 @@
|
|||||||
main:
|
main:
|
||||||
* jsr getin
|
* jsr getin
|
||||||
beq skip
|
beq skip
|
||||||
|
cmp #'@
|
||||||
|
beq end
|
||||||
jsr printbyte
|
jsr printbyte
|
||||||
lda #13 ; 换行
|
lda #13 ; 换行
|
||||||
jsr chrout
|
jsr chrout
|
||||||
skip:
|
skip:
|
||||||
jmp -
|
jmp -
|
||||||
|
end:
|
||||||
|
rts
|
||||||
|
|
||||||
printbyte:
|
printbyte:
|
||||||
sta _na
|
sta _na
|
||||||
txa
|
txa
|
||||||
pha
|
pha
|
||||||
ldx #7 ; 打印8bit
|
ldx #8 ; 打印8bit
|
||||||
* lda #$30 ; a = '0'
|
* lda #$30 ; a = '0'
|
||||||
asl _na ; 左移一位,溢出到c
|
asl _na ; 左移一位,溢出到c
|
||||||
bcc + ; if(c == 0) goto 下一个星号
|
adc #0 ; a = a + c + 0
|
||||||
adc #0 ; else a = a + c + 0
|
jsr chrout ; putchar(a)
|
||||||
* jsr chrout ; putchar(a)
|
|
||||||
dex ; x--
|
dex ; x--
|
||||||
bne -- ; if(x != 0) goto 上两个星号
|
bne - ; if(x != 0) goto 上个星号
|
||||||
pla
|
pla
|
||||||
tax
|
tax
|
||||||
rts
|
rts
|
||||||
BIN
printinput.prg
BIN
printinput.prg
Binary file not shown.
22
snake.prg.p2k.cfg
Normal file
22
snake.prg.p2k.cfg
Normal 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
|
||||||
Reference in New Issue
Block a user