Skip to content

Commit

Permalink
Added __frem to CRT (wraps fmodf) (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZERICO2005 authored Feb 3, 2025
1 parent bbb2b81 commit 6ed5cbd
Showing 1 changed file with 21 additions and 0 deletions.
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

0 comments on commit 6ed5cbd

Please sign in to comment.