From 14a11ec38de4fd9ef4358434257f2c4071575ed5 Mon Sep 17 00:00:00 2001 From: Reisyukaku Date: Sun, 9 Aug 2015 05:51:05 -0400 Subject: [PATCH] small notes --- emunand/emuCode.s | 4 ++-- mset | 2 +- source/patches.h | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/emunand/emuCode.s b/emunand/emuCode.s index 36588b4..c619324 100644 --- a/emunand/emuCode.s +++ b/emunand/emuCode.s @@ -10,7 +10,7 @@ sdmmc_unk0 equ 0x08062890 .create "emunand.bin", 0x0801A4C0 .org 0x0801A4C0 .arm -patch000_00: +EMU_WRITE: stmfd sp!, {r0-r3} mov r3, r0 ldr r1, =orig_sector @@ -75,7 +75,7 @@ loc_801a578: ldmfd sp!, {r1-r7,lr} bx lr -patch000_01: +EMU_READ: stmfd sp!, {r0-r3} mov r3, r0 ldr r1, =orig_sector diff --git a/mset b/mset index 5619a45..a14a804 160000 --- a/mset +++ b/mset @@ -1 +1 @@ -Subproject commit 5619a453384ab5c914dff0451b8da0f02ee102ce +Subproject commit a14a80413fb473421370b7e64d44bf0d407544a6 diff --git a/source/patches.h b/source/patches.h index 0afbed1..a7e24a9 100644 --- a/source/patches.h +++ b/source/patches.h @@ -24,17 +24,17 @@ u32 emuHook2 = PROC9 + (0x080282F8 - P9_ADDR); u32 emuHook3 = PROC9 + (0x0807877E - P9_ADDR); u32 emuHook4 = PROC9 + (0x080787BE - P9_ADDR); //Patches -u8 mpu[0x2C] = { //MPU shit +u8 mpu[0x2C] = { //MPU shit 0x03, 0x00, 0x36, 0x00, 0x00, 0x00, 0x10, 0x10, 0x01, 0x00, 0x00, 0x01, 0x03, 0x00, 0x36, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x01, 0x01, 0x01, 0x03, 0x06, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x01, 0x01, 0x01, 0x03, 0x06, 0x1C, 0x00, 0x00, 0x00, 0x02, 0x08 }; -u8 eh2[0x14] = { +u8 eh2[0x14] = { //Sets Slot0x25KeyX 0x03, 0x4A, 0x05, 0x21, 0x25, 0x20, 0x2F, 0xF0, 0xAB, 0xF8, 0x37, 0xF0, 0x6F, 0xFB, 0x70, 0xBD, 0xC8, 0xA6, 0x01, 0x08 - }; //Sets Slot0x25KeyX -u8 eh3[0x0A] = {0x01, 0x4C, 0x20, 0x47, 0x00, 0x00, 0xC0, 0xA4, 0x01, 0x08}; //Branch to first emunand function -u8 eh4[0x0A] = {0x01, 0x4C, 0x20, 0x47, 0x00, 0x00, 0xB0, 0xA5, 0x01, 0x08}; //Branch to second emunand function + }; +u8 eh3[0x0A] = {0x01, 0x4C, 0x20, 0x47, 0x00, 0x00, 0xC0, 0xA4, 0x01, 0x08}; //Branch to emunand write function +u8 eh4[0x0A] = {0x01, 0x4C, 0x20, 0x47, 0x00, 0x00, 0xB0, 0xA5, 0x01, 0x08}; //Branch to emunand read function /* @@ -56,7 +56,7 @@ u32 threadCode = KERNEL9 + (0x0801A6E0 - K9_ADDR); u32 threadHook1 = PROC9 + (0x080860B0 - P9_ADDR); u32 threadHook2 = PROC9 + (0x080860E4 - P9_ADDR); //Patches -u8 th1[4] = {0x2C, 0xF0, 0x9F, 0xE5}; //ldr pc, =0x080860E4 -u8 th2[4] = {0xE0, 0xA6, 0x01, 0x08}; +u8 th1[4] = {0x2C, 0xF0, 0x9F, 0xE5}; //ldr pc, =0x080860E4 +u8 th2[4] = {0xE0, 0xA6, 0x01, 0x08}; //0x080860E4 #endif \ No newline at end of file