mirror of
https://github.com/cc65/cc65.git
synced 2024-06-15 17:30:06 +00:00
Shorter isascii
This commit is contained in:
parent
fb8de287be
commit
7a93d3c707
|
@ -11,6 +11,7 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _isascii
|
.export _isascii
|
||||||
|
.import return0
|
||||||
|
|
||||||
_isascii:
|
_isascii:
|
||||||
asl a ; high-bit to carry
|
asl a ; high-bit to carry
|
||||||
|
@ -19,6 +20,4 @@ _isascii:
|
||||||
adc #$FF ; calculate return value based on carry
|
adc #$FF ; calculate return value based on carry
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@L1: lda #$00 ; return false
|
@L1: jmp return0 ; return false
|
||||||
tax
|
|
||||||
rts
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user