mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Optimizations
This commit is contained in:
parent
78d660da55
commit
2bd798fa13
@ -19,14 +19,10 @@
|
||||
; and Opt1 + Opt2 pressed '3'.
|
||||
; So the keyboard returns '1', '2', '3', 'P', 'R', 'F' or '?'.
|
||||
|
||||
_cgetc:
|
||||
lda KBEDG
|
||||
bne _start
|
||||
_cgetc:
|
||||
jsr _kbhit ; Check for char available
|
||||
beq _cgetc
|
||||
_start:
|
||||
lda KBSTL
|
||||
ora KBEDG
|
||||
ora KBSTL
|
||||
ldx #0
|
||||
and #1
|
||||
beq @L5
|
||||
@ -55,7 +51,6 @@ _start:
|
||||
bra reset_and_exit
|
||||
@L5:
|
||||
lda KBEDG ; No Pause pressed
|
||||
stz KBEDG
|
||||
ora KBSTL
|
||||
bit #$08
|
||||
beq @L7
|
||||
|
@ -51,6 +51,6 @@ _kbhit:
|
||||
sta KBNPR ; inverted previous ones pressed
|
||||
stx KBPRV
|
||||
lda KBEDG
|
||||
L1: ldx #$00
|
||||
L1: tax
|
||||
rts
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user