Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define START_SECTION __attribute__ ((section (".text.start"), naked))
- int(*IFopen)(void *this, const short *path, int flags) = 0x0022FE08;
- int(*IFread)(void *this, unsigned int *read, unsigned int *buffer, unsigned int len) = 0x001686DC;
- int(*IFwrite)(void *this, unsigned int *written, void *src, unsigned int len) = 0x00168764;
- int (*GX_SetTextureCopy)(void *input_buffer, void *output_buffer, unsigned int size, int in_x, int in_y, int out_x, int out_y, int flags) = 0x0011DD48;
- int (*GSPGPU_FlushDataCache)(void *addr, unsigned int len) = 0x00191504;
- int (*svcSleepThread)(unsigned long long nanoseconds) = 0x0023FFE8;
- void IFseek(void* handle, int off);
- void *memcpy(void *destination, const void *source, int num);
- int START_SECTION uvl_start (){
- __asm__ volatile (".word 0xE1A00000");
- payload();
- __asm__ volatile ("bx lr");
- }
- void IFseek(void* handle, int off){
- *((int *)handle + 1) = off;
- }
- void *memcpy(void *destination, const void *source, int num){
- unsigned char *dest = destination;
- unsigned char *src = (unsigned char*)source;
- while (num) {
- *dest++ = *src++;
- num--;
- }
- return destination;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement