|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
From 65dd931d22b7196a0b6a4de8d6d441e15acfdab1 Mon Sep 17 00:00:00 2001
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
From: Oliver Schmidt <ol.sc@web.de>
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
Date: Thu, 2 Apr 2020 10:03:01 +0200
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
Subject: [PATCH 167/170] Some style adjustments.
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
---
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/atari/ostype.s | 4 ++--
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/atoi.s | 8 +++-----
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/ctype_preprocessor.s | 10 +++++-----
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isalnum.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isalpha.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isblank.s | 4 ++--
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/iscntrl.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isdigit.s | 4 ++--
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isgraph.s | 3 +--
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/islower.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isprint.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/ispunct.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isspace.s | 4 ++--
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isupper.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/isxdigit.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/strlower.s | 9 +++------
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/strnicmp.s | 20 ++++++++++----------
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/common/strupper.s | 7 ++-----
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
libsrc/lynx/crt0.s | 2 +-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
19 files changed, 41 insertions(+), 50 deletions(-)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/atari/ostype.s b/libsrc/atari/ostype.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 7248582a..876e8749 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/atari/ostype.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/atari/ostype.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -93,7 +93,7 @@ _get_ostype:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
asl a
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
asl a
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #%00111000
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- ora #%11
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ ora #%00000011
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_fin: ldx #0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
disable_rom_save_a
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -117,7 +117,7 @@ _1200_11:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lda #%00010000
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_1200_fin:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- ora #%010
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ ora #%00000010
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bne _fin
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; 400/800 ROM
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/atoi.s b/libsrc/common/atoi.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index b63fcb20..10f917f8 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/atoi.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/atoi.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
;
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_atoi:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-_atol: sta ptr1 ; Store s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+_atol: sta ptr1 ; store s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
stx ptr1+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
ldy #0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sty ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -71,7 +71,7 @@ L6: lda (ptr1),y ; get next char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lda ptr2+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
pha
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lda ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- pha ; Save value
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ pha ; save value
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
jsr mul2 ; * 4
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
jsr mul2 ; * 8
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -118,7 +118,7 @@ L8: lda ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Negate the value if necessary, otherwise we're done
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
ldy tmp1 ; sign
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- beq L9 ; Branch if positive
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ beq L9 ; branch if positive
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Negate the 32 bit value in ptr2/sreg
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -133,5 +133,3 @@ mul2: asl ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rol sreg
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rol sreg+1 ; * 2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
L9: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/ctype_preprocessor.s b/libsrc/common/ctype_preprocessor.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index efa001e6..79d93860 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/ctype_preprocessor.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/ctype_preprocessor.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -29,7 +29,7 @@ ctype_preprocessor:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
ctype_preprocessor_no_check:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lsr a
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
tax
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- lda __ctypeIdx, x
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ lda __ctypeIdx,x
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcc @lowerNibble
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@upperNibble:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lsr a
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -38,13 +38,13 @@ ctype_preprocessor_no_check:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lsr a
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
clc ; remove out of bounds flag
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@lowerNibble:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- and #%1111
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ and #%00001111
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
tax
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- lda __ctype, x
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- ldx #0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ lda __ctype,x
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ ldx #$00
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
SC: sec
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- lda #0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ lda #$00
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
tax
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isalnum.s b/libsrc/common/isalnum.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 141949c0..2a05e32e 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isalnum.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isalnum.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isalnum:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_ALNUM ; mask character/digit bits
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isalpha.s b/libsrc/common/isalpha.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 95e79916..7a1f79d2 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isalpha.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isalpha.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isalpha:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_ALPHA ; mask character bits
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isblank.s b/libsrc/common/isblank.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 3d0a02f3..cc5b9e5a 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isblank.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isblank.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -17,7 +17,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isblank:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_SPACE_TAB ; mask blank bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- @L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/iscntrl.s b/libsrc/common/iscntrl.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index f2b95042..65e2111b 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/iscntrl.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/iscntrl.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_iscntrl:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_CTRL ; mask control character bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isdigit.s b/libsrc/common/isdigit.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 36acd73b..76b2d1b2 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isdigit.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isdigit.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isdigit:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_DIGIT ; mask digit bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- @L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isgraph.s b/libsrc/common/isgraph.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 4e317db5..6dd91ed3 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isgraph.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isgraph.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,11 +15,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isgraph:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_CTRL_SPACE ; mask character bits
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
cmp #1 ; if false, then set "borrow" flag
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lda #0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sbc #0 ; invert logic (return NOT control and NOT space)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/islower.s b/libsrc/common/islower.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 608d0ccf..a11ee129 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/islower.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/islower.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_islower:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_LOWER ; mask lower char bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isprint.s b/libsrc/common/isprint.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 0d135f24..e1d63bc6 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isprint.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isprint.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isprint:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
eor #CT_CTRL ; NOT a control char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_CTRL ; mask control char bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/ispunct.s b/libsrc/common/ispunct.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index a532399f..ac4ab7f1 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/ispunct.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/ispunct.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_ispunct:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_NOT_PUNCT ; mask relevant bits
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
cmp #1 ; if false, then set "borrow" flag
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isspace.s b/libsrc/common/isspace.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 1f70786c..c3702344 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isspace.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isspace.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isspace:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #(CT_SPACE | CT_OTHER_WS) ; mask space bits
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- @L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isupper.s b/libsrc/common/isupper.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 0dd2a6ea..175fb872 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isupper.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isupper.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isupper:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_UPPER ; mask upper char bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/isxdigit.s b/libsrc/common/isxdigit.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 3f36ede0..e8a12a10 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/isxdigit.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/isxdigit.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -15,7 +15,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
.import ctype_preprocessor
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_isxdigit:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor ; (clears always x)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor ; (always clears X)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs @L1 ; out of range? (everything already clear -> false)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_XDIGIT ; mask xdigit bit
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@L1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/strlower.s b/libsrc/common/strlower.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index d4e48138..479d852e 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/strlower.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/strlower.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -16,7 +16,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_strlower:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_strlwr:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- sta ptr1 ; Save s (working copy)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ sta ptr1 ; save s (working copy)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
stx ptr1+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sta ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
stx ptr2+1 ; save function result
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -25,10 +25,10 @@ _strlwr:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
loop: lda (ptr1),y ; get character
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
beq L9 ; jump if done
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; get character classification
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor_no_check
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor_no_check
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_UPPER ; upper case char?
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
beq L1 ; jump if no
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- lda (ptr1),y ; fetch character again
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ lda (ptr1),y ; fetch character again
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
adc #<('a'-'A') ; make lower case char (ctype_preprocessor_no_check ensures carry clear)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sta (ptr1),y ; store back
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
L1: iny ; next char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -41,6 +41,3 @@ L1: iny ; next char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
L9: lda ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
ldx ptr2+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/strnicmp.s b/libsrc/common/strnicmp.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index 54aef2bb..c4cc272d 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/strnicmp.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/strnicmp.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -41,7 +41,7 @@ _strncasecmp:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Start of compare loop. Check the counter.
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
Loop: inc ptr3
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- beq IncHi ; Increment high byte
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ beq IncHi ; increment high byte
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Compare a byte from the strings
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -58,18 +58,18 @@ Comp: lda (ptr2),y
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
L1: lda (ptr1),y ; get character from first string
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sta tmp1 ; remember original char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; get character classification
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor_no_check
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor_no_check
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_LOWER ; lower case char?
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
beq L2 ; jump if no
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lda #<('A'-'a') ; make upper case char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
adc tmp1 ; ctype_preprocessor_no_check ensures carry clear!
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- sta tmp1 ; remember upper case equivalent
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ sta tmp1 ; remember upper case equivalent
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
L2: ldx tmp1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
cpx tmp2 ; compare characters
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- bne NotEqual ; Jump if strings different
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- txa ; End of strings?
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- beq Equal1 ; Jump if EOS reached, a/x == 0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ bne NotEqual ; jump if strings different
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ txa ; end of strings?
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ beq Equal1 ; jump if EOS reached, a/x == 0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Increment the pointers
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -77,12 +77,12 @@ L2: ldx tmp1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bne Loop
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
inc ptr1+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
inc ptr2+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- bne Loop ; Branch always
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ bne Loop ; branch always
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Increment hi byte
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
IncHi: inc ptr3+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- bne Comp ; Jump if counter not zero
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ bne Comp ; jump if counter not zero
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Exit code if strings are equal. a/x not set
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -94,8 +94,8 @@ Equal1: rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
NotEqual:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
bcs L3
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- ldx #$FF ; Make result negative
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ ldx #$FF ; make result negative
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-L3: ldx #$01 ; Make result positive
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+L3: ldx #$01 ; make result positive
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/common/strupper.s b/libsrc/common/strupper.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index dd6c1c25..e2160d4d 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/common/strupper.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/common/strupper.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -16,7 +16,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_strupper:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
_strupr:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- sta ptr1 ; Save s (working copy)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ sta ptr1 ; save s (working copy)
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
stx ptr1+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sta ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
stx ptr2+1 ; save function result
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -24,7 +24,7 @@ _strupr:
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
loop: lda (ptr1),y ; get character
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
beq L9 ; jump if done
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- jsr ctype_preprocessor_no_check
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ jsr ctype_preprocessor_no_check
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
and #CT_LOWER ; lower case char?
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
beq L1 ; jump if no
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
lda (ptr1),y ; fetch character again
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -40,6 +40,3 @@ L1: iny ; next char
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
L9: lda ptr2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
ldx ptr2+1
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
rts
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
-
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
diff --git a/libsrc/lynx/crt0.s b/libsrc/lynx/crt0.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
index da2162b4..238a2c99 100644
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--- a/libsrc/lynx/crt0.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+++ b/libsrc/lynx/crt0.s
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
@@ -68,7 +68,7 @@ MikeyInitData: .byte $9e,$18,$68,$1f,$00,$00,$00,$00,$00,$ff,$1a,$1b,$04,$0d,$2
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Disable the TX/RX IRQ; set to 8E1.
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
- lda #%11101
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
+ lda #%00011101
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
sta SERCTL
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
; Clear all pending interrupts.
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
--
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
2.26.0
|
|
![](https://seccdn.libravatar.org/avatar/ca59ab3be600975ecf5ea3898e2a220c14d0d0cd3406201f156198b7f99be5a9?s=16&d=retro) |
a4f04fe |
|