mirror of
https://github.com/fumiama/c64-snake.git
synced 2026-06-09 12:30:31 +08:00
调整按键
This commit is contained in:
@@ -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
|
||||
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