Skip to content

Commit

Permalink
[libc] optimize _ispunct
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Oct 25, 2024
1 parent 3835d15 commit ee119ba
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/libc/ispunct.src
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
section .text
public _ispunct
_ispunct:
pop hl
pop de
ex (sp),hl
push de
push hl
or a,a
ld a,l
sub a,33
cp a,48-33
ret c
sub a,58-33
cp a,65-58
ret c
sub a,91-58
cp a,97-91
ret c
sub a,123-91
cp a,127-123
ret c
sbc hl,hl
bit 7,e
ret nz
ex de,hl
ld de,___maptab
add hl,de
ld a,(hl)
and a,2
sbc hl,hl
ld l,a
ret

extern ___maptab
ret

0 comments on commit ee119ba

Please sign in to comment.