Skip to content

Commit

Permalink
Put __frem return value in AUBC
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac authored Feb 3, 2025
1 parent 6ed5cbd commit 82f472c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/crt/frem.src
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ __frem:
push de ; x_hi8
push bc ; x_lo24
call _fmodf
pop hl, hl, hl, hl
pop bc, bc, bc, bc

pop hl, de
ld a, e
ex (sp), hl
pop bc, de
ret

extern _fmodf

0 comments on commit 82f472c

Please sign in to comment.