-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathto_fixed88.z80
50 lines (46 loc) · 987 Bytes
/
to_fixed88.z80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
to_fixed88_LUT:
.db (+_-$-1)/2
.dw ui8_convert_to_fixed88
.dw ui16_convert_to_fixed88
.dw ui32_convert_to_fixed88
.dw fixed88_convert_to_fixed88
.dw fixed1616_convert_to_fixed88
.dw var_convert_to_fixed88
.dw true_convert_to_fixed88
.dw false_convert_to_fixed88
.dw tstr_ref_convert_to_fixed88
.dw raw_convert_to_fixed88
.dw str_convert_to_fixed88
.dw str_ref_convert_to_fixed88
.dw single_convert_to_fixed88
.dw xfloat_convert_to_fixed88
_:
ui16_convert_to_fixed88:
ui32_convert_to_fixed88:
ui8_convert_to_fixed88:
ld a,(de)
ld d,a
ld e,0
ret
fixed1616_convert_to_fixed88:
inc de
fixed88_convert_to_fixed88:
ex de,hl
ld e,(hl)
inc de
ld d,(hl)
ret
true_convert_to_fixed88:
ld de,256
ret
false_convert_to_fixed88:
ld de,0
ret
var_convert_to_fixed88:
tstr_ref_convert_to_fixed88:
raw_convert_to_fixed88:
str_convert_to_fixed88:
str_ref_convert_to_fixed88:
single_convert_to_fixed88:
xfloat_convert_to_fixed88:
jp err_syntax