We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 194187f commit 9cd6648Copy full SHA for 9cd6648
1 file changed
src/libc/calloc.src
@@ -34,8 +34,12 @@ _calloc:
34
jr c, .L.zero_size
35
inc bc
36
ex de, hl ; DE = dst
37
- ; uses the all zeros address range $E40000-$EFFFFF on the Ti84CE
38
- ld hl, $EFFFFF ; HL = src
+ ; uses an all zeros address range $FB0000-$FFFFFF on the Ti84CE (327680 bytes)
+ ; $FF0000-$FFFFFF (65536 bytes) has 1 wait state.
39
+ ; $FB0000-$FEFFFF has 2 wait states, but a calloc larger than 65536 bytes is basically never.
40
+ ; Since we are only reading zeros, writing to this address range should not interfere with CEmu.
41
+ scf
42
+ sbc hl, hl ; HL = src
43
lddr
44
ex de, hl
45
.L.zero_size:
0 commit comments