Skip to content

Optimized __setflag, removed float64_to_int.c #601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 0 additions & 140 deletions src/crt/float64_to_int.c

This file was deleted.

2 changes: 0 additions & 2 deletions src/crt/os.src
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ __ishru_b := 000188h
__itol := 000194h
public __ltof
__ltof := 000284h
public __setflag
__setflag := 000218h
public __sshl_b
__sshl_b := 000244h
public __sshrs_b
Expand Down
24 changes: 24 additions & 0 deletions src/crt/setflag.src
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
assume adl=1

section .text

public __setflag

if PREFER_OS_CRT

__setflag := 000218h

else

__setflag:
ret po
push af
ex (sp), hl
ld a, l
xor a, $80 ; invert S flag
ld l, a
ex (sp), hl
pop af
ret

end if
Loading