Skip to content
Merged
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
21 changes: 21 additions & 0 deletions src/crt/frem.src
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
assume adl=1

section .text

public __frem

; wraps _fmodf
__frem:
push de, hl

push de, hl ; y
ld e, a
push de ; x_hi8
push bc ; x_lo24
call _fmodf
pop hl, hl, hl, hl

pop hl, de
ret

extern _fmodf