Skip to content

Commit 267c108

Browse files
[libc] optimze _isalpha (calc84maniac shenanigans)
1 parent af2119d commit 267c108

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/libc/isalpha.src

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ _isalpha:
66
pop de
77
ex (sp),hl
88
push de
9-
ld e,l
109
ld a,l
11-
sub a,97
12-
add a,-26
13-
sbc hl,hl
14-
inc hl
15-
ret z
16-
ld a,e
1710
sub a,65
11+
res 5,a
1812
add a,-26
1913
sbc hl,hl
2014
inc hl

0 commit comments

Comments
 (0)