File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 .global _memcpy
66 .type _memcpy, @function
77
8- .ifdef PREFER_OS_LIBC
9-
10- .set _memcpy, 0x0000A4
11-
12- .else
8+ ; Note: TiOS memcpy works fine, but our implementation is faster
9+ ; .set _memcpy, 0x0000A4
1310
1411_memcpy:
1512 ; size > 0 : 25F + 15R + 1 + LDIR
16- ; size >= 65536 : 32F + 16R + 3 + LDIR
13+ ; size >= 65536 : 32F + 16R + 3 + LDIR (only when the low 16 bits are zero)
1714 ; size == 0 : 26F + 13R + 2
18- ; size >= 65536 + 7F + 1R + 2 (only when the low 16 bits are zero)
1915
2016 ld iy, 0
2117 add iy, sp
@@ -37,5 +33,3 @@ _memcpy:
3733 ; size == 0
3834 ex de, hl
3935 ret
40-
41- .endif
Original file line number Diff line number Diff line change 55 .global _memmove
66 .type _memmove, @function
77
8- .ifdef PREFER_OS_LIBC
9-
10- .set _memmove, 0x0000A8
11-
12- .else
8+ ; Note: TiOS memmove works fine, but our implementation is faster
9+ ; .set _memmove, 0x0000A8
1310
1411.if 1
1512
@@ -113,5 +110,3 @@ _memmove:
113110 ret
114111
115112.endif
116-
117- .endif
You can’t perform that action at this time.
0 commit comments