Skip to content

Commit 82f472c

Browse files
authored
Put __frem return value in AUBC
1 parent 6ed5cbd commit 82f472c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/crt/frem.src

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ __frem:
1313
push de ; x_hi8
1414
push bc ; x_lo24
1515
call _fmodf
16-
pop hl, hl, hl, hl
16+
pop bc, bc, bc, bc
1717

18-
pop hl, de
18+
ld a, e
19+
ex (sp), hl
20+
pop bc, de
1921
ret
2022

2123
extern _fmodf

0 commit comments

Comments
 (0)