Skip to content

Commit 01f1a2f

Browse files
committed
renamed dtof/ftod to dtofp/fptod
1 parent d14f160 commit 01f1a2f

4 files changed

Lines changed: 10 additions & 41 deletions

File tree

src/crt/dtof.src renamed to src/crt/dtofp.src

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
.global __dtof
66
.type __dtof, @function
7+
.global __dtofp
8+
.type __dtofp, @function
79

8-
.local __dtof_helper
9-
__dtof_helper:
10+
.local __dtofp_helper
11+
__dtofp_helper:
1012
; Moving this block of code to be behind __dtof ensures that
1113
; .L.ret_copysign can always be reached by jr in all paths.
1214
.L.overflow:
@@ -54,6 +56,7 @@ __dtof_helper:
5456
; Quiet NaN: Quiet bit preserved. No signals raised.
5557
; NaN Payloads: Copies the most significant payload bits. The LSB of mantissa is set if payload bits were discarded/truncated out.
5658
__dtof:
59+
__dtofp:
5760
bit 7, b
5861
push af ; preserve A and signbit
5962
push bc

src/crt/fptemp.src

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/crt/ftod.src renamed to src/crt/fptod.src

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
.global __ftod
66
.type __ftod, @function
7+
.global __fptod
8+
.type __fptod, @function
79

810
; input E:UHL (float)
911
; ouput BC:UDE:UHL (long double)
1012
; NaN payloads are bitshifted
1113
__ftod:
14+
__fptod:
1215
sla e ; extract signbit
1316
push af
1417
srl e

test/floating_point/ez80sf/src/link_test.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ _link_test:
4444
ld hl, __lltofp
4545
ld hl, __ulltofp
4646

47-
; ld hl, __fptod
48-
; ld hl, __dtofp
47+
ld hl, __fptod
48+
ld hl, __dtofp
4949

5050
or a, a
5151
sbc hl, hl

0 commit comments

Comments
 (0)