File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,14 @@ _vasprintf := __vasprintf_c
15
15
16
16
else
17
17
18
+ if 0
19
+
18
20
_asprintf := _boot_asprintf
19
21
_vasprintf := _boot_vasprintf
20
22
21
23
extern _boot_asprintf
22
24
extern _boot_vasprintf
23
25
24
26
end if
27
+
28
+ end if
Original file line number Diff line number Diff line change 4
4
5
5
public _bzero
6
6
7
+ if 0
8
+
9
+ ; uses the hardware specific $E40000 memory location
10
+
7
11
; void bzero(void* buf, size_t n)
8
12
_bzero:
9
13
ld hl, 6
@@ -18,3 +22,30 @@ _bzero:
18
22
ld hl, $E40000 ; large region of all zeros on the Ti84CE
19
23
ldir
20
24
ret
25
+
26
+ else
27
+
28
+ ; makes no hardware assumptions
29
+
30
+ ; void bzero(void* buf, size_t n)
31
+ _bzero:
32
+ ld hl, 6
33
+ add hl, sp
34
+ ld bc, (hl)
35
+ dec hl
36
+ dec hl
37
+ dec hl
38
+ ld hl, (hl)
39
+ cpi
40
+ add hl, bc
41
+ ret c
42
+ dec hl
43
+ ld (hl), 0
44
+ ret po
45
+ push hl
46
+ pop de
47
+ dec de
48
+ lddr
49
+ ret
50
+
51
+ end if
Original file line number Diff line number Diff line change @@ -15,10 +15,14 @@ _vsnprintf := __vsnprintf_c
15
15
16
16
else
17
17
18
+ if 0
19
+
18
20
_snprintf := _boot_snprintf
19
21
_vsnprintf := _boot_vsnprintf
20
22
21
23
extern _boot_snprintf
22
24
extern _boot_vsnprintf
23
25
24
26
end if
27
+
28
+ end if
You can’t perform that action at this time.
0 commit comments