Skip to content

Commit ebb6785

Browse files
authored
Preserve IY in __frem
1 parent 82f472c commit ebb6785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crt/frem.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
; wraps _fmodf
88
__frem:
9-
push de, hl
9+
push iy, de, hl
1010

1111
push de, hl ; y
1212
ld e, a
@@ -17,7 +17,7 @@ __frem:
1717

1818
ld a, e
1919
ex (sp), hl
20-
pop bc, de
20+
pop bc, de, iy
2121
ret
2222

2323
extern _fmodf

0 commit comments

Comments
 (0)