diff --git a/src/stub/l_armpet.S b/src/stub/l_armpet.S index 22a96737..5b2dc502 100644 --- a/src/stub/l_armpet.S +++ b/src/stub/l_armpet.S @@ -113,11 +113,11 @@ SECT(Unfilter_0x50): cmp buffer, bufend beq .Luf50_ret - ldrb r3, [buffer, #3] - and r3, r5 - cmp r3, #0x0b - bne .Luf50_1 ldr r3, [buffer] + lsr r1, r3, #24 + and r1, r5 + cmp r1, #0x0b + bne .Luf50_1 mov r1, r3 and r1, r6 sub r3, addval diff --git a/src/stub/l_armpet.h b/src/stub/l_armpet.h index 867e85f5..a717f4e0 100644 --- a/src/stub/l_armpet.h +++ b/src/stub/l_armpet.h @@ -28,8 +28,8 @@ #define NRV_LOADER_THUMB_SIZE 1000 -#define NRV_LOADER_THUMB_ADLER32 0x0e284d57 -#define NRV_LOADER_THUMB_CRC32 0x14427d32 +#define NRV_LOADER_THUMB_ADLER32 0x4f344c3e +#define NRV_LOADER_THUMB_CRC32 0xe1803a67 unsigned char nrv_loader_thumb[1000] = { 1, 0, 81,227, 11, 0, 0, 26,255, 79, 45,233, 44, 48,143,226, /* 0x 0 */ @@ -39,8 +39,8 @@ unsigned char nrv_loader_thumb[1000] = { 83, 82, 67, 48, 83, 82, 67, 76, 68, 83, 84, 48, 68, 83, 84, 76, /* 0x 40 */ 73, 65, 84, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x 50 */ 69, 78, 84, 82, 7,203,145, 70,100, 70, 16,181, 11, 72, 0, 34, /* 0x 60 */ - 11, 76, 15, 37,255, 38, 54, 6,247, 67,160, 66, 18,208,195,120, /* 0x 70 */ - 43, 64, 11, 43, 6,209, 3,104, 25, 28, 49, 64,155, 26, 59, 64, /* 0x 80 */ + 11, 76, 15, 37,255, 38, 54, 6,247, 67,160, 66, 18,208, 3,104, /* 0x 70 */ + 25, 14, 41, 64, 11, 41, 5,209, 25, 28, 49, 64,155, 26, 59, 64, /* 0x 80 */ 11, 67, 3, 96, 4, 48, 1, 50,239,231, 0, 0, 70, 73, 66, 83, /* 0x 90 */ 70, 73, 66, 69, 14, 72, 74, 70, 17, 31, 3,120, 1, 48, 0, 43, /* 0x a0 */ 24,208,240, 43, 8,211, 15, 36, 28, 64, 67,120, 36, 2,228, 24, /* 0x b0 */