From: Alan Cox Date: Thu, 22 Nov 2018 00:18:36 +0000 (+0000) Subject: z80: Override __memcpy with our own so banked bins don't crash if it gets in X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=350ac44dd0200e559bbc5d19b8778f0ea1ff2d53;p=FUZIX.git z80: Override __memcpy with our own so banked bins don't crash if it gets in --- diff --git a/Kernel/lowlevel-z80-banked.s b/Kernel/lowlevel-z80-banked.s index 0a1524d0..f6ad820d 100644 --- a/Kernel/lowlevel-z80-banked.s +++ b/Kernel/lowlevel-z80-banked.s @@ -1290,11 +1290,13 @@ __mul16:: .globl _memmove .globl _memcpy + .globl ___memcpy ; The Z80 has the ldir and lddr instructions, which are perfect for implementing memmove(). _memcpy: _memmove: +___memcpy: pop af pop iy pop hl