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 2c64cab commit 630537dCopy full SHA for 630537d
src/libc/memcpy.src
@@ -0,0 +1,28 @@
1
+ assume adl=1
2
+
3
+ section .text
4
+ public _memcpy
5
6
+if PREFER_OS_LIBC
7
8
+_memcpy := $0000A4
9
10
+else
11
12
+_memcpy:
13
+ ld iy,0
14
+ add iy,sp
15
+ ld bc,(iy + 6)
16
+ sbc hl,hl
17
+ sbc hl,bc
18
+ jr z,.zero
19
+ ld de,(iy + 0)
20
+ ld hl,(iy + 3)
21
+ ldir
22
+.zero:
23
+ ld hl,(iy + 0)
24
+ ret
25
26
+end if
27
28
src/libc/os.src
@@ -8,8 +8,6 @@ _longjmp := 000098h
_memchr := 00009Ch
public _memcmp
_memcmp := 0000A0h
- public _memcpy
-_memcpy := 0000A4h
public _memmove
_memmove := 0000A8h
public _setjmp
0 commit comments