notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
slightly better z80 vdp reads
[picodrive.git]
/
platform
/
gp2x
/
code940
/
memcpy.s
diff --git
a/platform/gp2x/code940/memcpy.s
b/platform/gp2x/code940/memcpy.s
index
bb4cdaa
..
282762f
100644
(file)
--- a/
platform/gp2x/code940/memcpy.s
+++ b/
platform/gp2x/code940/memcpy.s
@@
-36,33
+36,23
@@
* POSSIBILITY OF SUCH DAMAGE.
*/
* POSSIBILITY OF SUCH DAMAGE.
*/
-/* This was modified by Jay Monkman <jmonkman@smoothsmoothie.com> to
-* save and restore r12. This is necessary for RTEMS.
-*/
/* #include <machine/asm.h>*/
/* #include <machine/asm.h>*/
-#define ENTRY(_LABEL) \
- .global _LABEL; _LABEL:
-
.globl memcpy
.globl memcpy
+.globl _memcpy
memcpy:
memcpy:
-@ ENTRY(gp2x_memcpy)
-stmfd sp!, {r0, r12, lr}
-@ bl _gp2x_memcpy
+stmfd sp!, {r0, lr}
bl _memcpy
bl _memcpy
-ldmfd sp!, {r0, r12, pc}
-
+ldmfd sp!, {r0, pc}
.globl memmove
memmove:
.globl memmove
memmove:
-@ ENTRY(gp2x_memmove)
-stmfd sp!, {r0, r12, lr}
-@ bl _gp2x_memcpy
+stmfd sp!, {r0, lr}
bl _memcpy
bl _memcpy
-ldmfd sp!, {r0,
r12,
pc}
+ldmfd sp!, {r0, pc}
@@
-101,7
+91,6
@@
ldmfd sp!, {r0, r12, pc}
_memcpy:
_memcpy:
-@ ENTRY(_gp2x_memcpy)
/* Determine copy direction */
cmp r1, r0
bcc Lmemcpy_backwards
/* Determine copy direction */
cmp r1, r0
bcc Lmemcpy_backwards