From 7a93d3c707d75268ac71feb1caa5fbdd9351d180 Mon Sep 17 00:00:00 2001 From: polluks2 <74630735+polluks2@users.noreply.github.com> Date: Thu, 4 Aug 2022 00:25:04 +0200 Subject: [PATCH] Shorter isascii --- libsrc/common/isascii.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libsrc/common/isascii.s b/libsrc/common/isascii.s index 70d2f72a3..9a905d1db 100644 --- a/libsrc/common/isascii.s +++ b/libsrc/common/isascii.s @@ -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