mirror of
https://github.com/fumiama/650299.git
synced 2026-06-28 16:10:31 +08:00
优化代码
This commit is contained in:
14
99.asm
14
99.asm
@@ -6,18 +6,20 @@
|
|||||||
_next: .word 0
|
_next: .word 0
|
||||||
.scend
|
.scend
|
||||||
.alias p $ffd2
|
.alias p $ffd2
|
||||||
|
.text
|
||||||
main:
|
main:
|
||||||
ldx #9
|
ldx #9
|
||||||
ldy #9
|
|
||||||
txa
|
txa
|
||||||
|
tay
|
||||||
sed
|
sed
|
||||||
* sty $10
|
* stx $11
|
||||||
stx $11
|
txa
|
||||||
ora #$30
|
ora #$30
|
||||||
jsr p
|
jsr p
|
||||||
lda #42
|
lda #42
|
||||||
jsr p
|
jsr p
|
||||||
tya
|
tya
|
||||||
|
pha
|
||||||
ora #$30
|
ora #$30
|
||||||
jsr p
|
jsr p
|
||||||
lda #61
|
lda #61
|
||||||
@@ -38,7 +40,8 @@ main:
|
|||||||
and #$0f
|
and #$0f
|
||||||
ora #$30
|
ora #$30
|
||||||
jsr p
|
jsr p
|
||||||
ldy $10
|
pla
|
||||||
|
tay
|
||||||
dey
|
dey
|
||||||
beq +
|
beq +
|
||||||
lda #160
|
lda #160
|
||||||
@@ -51,4 +54,5 @@ main:
|
|||||||
txa
|
txa
|
||||||
tay
|
tay
|
||||||
jmp ---
|
jmp ---
|
||||||
* rts
|
* cld
|
||||||
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user