Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b5d641ef9a
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.644 kB
/*
* pl3_memcpy.S -- PS3 Jailbreak payload : Memcpy function
*
* Copyright (C) Youness Alaoui (KaKaRoTo)
*
* This software is distributed under the terms of the GNU General Public
* License ("GPL") version 3, as published by the Free Software Foundation.
*
*/
#ifndef __PL3_MEMSET_H_S__
#define __PL3_MEMSET_H_S__
/**
* pl3_memset(void *ptr, uint_8 value, size_t size)
*/
pl3_memset:
cmpldi %r5, 0 // if %r5 reaches 0, end it
beq l_pl3_memset_done
subi %r5, %r5, 1 // set %r5 to read the previous byte
stbx %r4, %r3, %r5 // Store byte %r6 to %r4[%r5]
b pl3_memset
l_pl3_memset_done:
blr
#endif /* __PL3_MEMSET_H_S__ */
Jump to Line
Something went wrong with that request. Please try again.