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

框架构建完成

This commit is contained in:
fumiama
2021-04-03 19:34:32 +08:00
parent c21a2a1efb
commit f716081ad7
17 changed files with 241 additions and 109 deletions

View File

@@ -2,22 +2,22 @@
.space _na 1 ; a的临时存放处
.text
printbyte:
php
pha
sta _na
txa
pha
ldx #8 ; 打印8bit
* lda #$30 ; a = '0'
asl _na ; 左移一位溢出到c
adc #0 ; a = a + c + 0
jsr chrout ; putchar(a)
dex ; x--
bne - ; if(x != 0) goto 上个星号
lda #$20
jsr chrout
pla
tax
pla
plp
rts
php
pha
sta _na
txa
pha
ldx #8 ; 打印8bit
* lda #$30 ; a = '0'
asl _na ; 左移一位溢出到c
adc #0 ; a = a + c + 0
jsr chrout ; putchar(a)
dex ; x--
bne - ; if(x != 0) goto 上个星号
lda #$20
jsr chrout
pla
tax
pla
plp
rts