1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Merge pull request #1820 from polluks2/patch-5

Shorter isascii
This commit is contained in:
Bob Andrews 2022-08-04 00:43:10 +02:00 committed by GitHub
commit 4de40a20cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
;
.export _isascii
.import return0
_isascii:
asl a ; high-bit to carry
@ -19,6 +20,4 @@ _isascii:
adc #$FF ; calculate return value based on carry
rts
@L1: lda #$00 ; return false
tax
rts
@L1: jmp return0 ; return false