You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
730 B
34 lines
730 B
/*
|
|
# _____ ___ ____ ___ ____
|
|
# ____| | ____| | | |____|
|
|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
|
|
#-----------------------------------------------------------------------
|
|
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
|
|
# Licenced under Academic Free License version 2.0
|
|
# Review ps2sdk README & LICENSE files for further details.
|
|
*/
|
|
|
|
|
|
.text
|
|
.set noreorder
|
|
|
|
.globl wmemcpy
|
|
.ent wmemcpy
|
|
wmemcpy:
|
|
sra $6,$6,0x2
|
|
addiu $6,$6,-1
|
|
li $2,-1
|
|
beq $6,$2,wmemcopy_end
|
|
move $3,$2
|
|
wmemcopy_loop:
|
|
lw $2,0($5)
|
|
addiu $5,$5,4
|
|
addiu $6,$6,-1
|
|
sw $2,0($4)
|
|
bne $6,$3,wmemcopy_loop
|
|
addiu $4,$4,4
|
|
wmemcopy_end:
|
|
jr $31
|
|
nop
|
|
.end wmemcpy
|
|
|