diff --git a/printinput.asm b/printinput.asm index 2d32108..3fabc98 100644 --- a/printinput.asm +++ b/printinput.asm @@ -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 \ No newline at end of file diff --git a/printinput.prg b/printinput.prg index c694913..2dd683f 100644 Binary files a/printinput.prg and b/printinput.prg differ diff --git a/snake.prg.p2k.cfg b/snake.prg.p2k.cfg new file mode 100644 index 0000000..6b6a633 --- /dev/null +++ b/snake.prg.p2k.cfg @@ -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 \ No newline at end of file