Skip to content

Commit

Permalink
[libc] optimize _isgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Oct 25, 2024
1 parent 1f06a87 commit 3835d15
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/libc/isgraph.src
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,12 @@
section .text
public _isgraph
_isgraph:
pop hl
pop de
ex (sp),hl
push de
push hl
or a,a
ld a,l
sub a,33
add a,-94
sbc hl,hl
bit 7,e
ret nz
ex de,hl
ld de,___maptab
add hl,de
ld a,(hl)
and a,15
sbc hl,hl
ld l,a
inc hl
ret

extern ___maptab

0 comments on commit 3835d15

Please sign in to comment.