This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/mset/rop3ds/rop.S

22 lines
491 B
ArmAsm
Raw Normal View History

2015-08-05 03:57:37 +02:00
.arm
.text
#include "rop.h"
.global _start
@---------------------------------------------------------------------------------
_start:
rop_memcpy(BUFFER_LOC, ROP_LOC+arm_code, arm_code_end-arm_code)
rop_flush_data_cache(BUFFER_LOC, arm_code_end-arm_code)
rop_gx_texture_copy(BUFFER_LOC, CODE_TARGET, arm_code_end-arm_code)
rop_sleep(1000000000)
rop_jump_arm
.align 4, GARBAGE
arm_code:
#ifdef ARM_CODE
#define S_(x) #x
#define S(x) S_(x)
.incbin S(ARM_CODE)
#endif
arm_code_end: