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/LoadCodeMset.S

19 lines
470 B
ArmAsm
Raw Normal View History

2015-08-05 03:57:37 +02:00
.arm
.text
#include "rop.h"
#ifndef MSET_ARM_CODE_SIZE
#define MSET_ARM_CODE_SIZE 0x00004000
#endif
.global _start
@---------------------------------------------------------------------------------
_start:
rop_store(THIS+4, ARM_CODE_OFFSET)
rop_file_read(THIS, THIS+0x20, BUFFER_LOC, MSET_ARM_CODE_SIZE)
rop_flush_data_cache(BUFFER_LOC, MSET_ARM_CODE_SIZE)
rop_gx_texture_copy(BUFFER_LOC, CODE_TARGET, MSET_ARM_CODE_SIZE)
rop_sleep(1000000000)
rop_jump_arm