This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AArch64 mov simplifier IDA plugin | |
# | |
# Copyright (c) 2015 xerub | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int FirmLaunch() | |
{ | |
char v0; // zf@2 | |
signed int v1; // r5@8 | |
unsigned int v2; // r12@12 | |
unsigned int v3; // r0@13 | |
__mcr(15, 0, __mrc(15, 0, 2, 0, 0) & 0xFFFFFFEF, 2, 0, 0); | |
__mcr(15, 0, __mrc(15, 0, 2, 0, 1) & 0xFFFFFFEF, 2, 0, 1); | |
__mcr(15, 0, __mrc(15, 0, 3, 0, 0) | 0x10, 3, 0, 0); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x0: nop | |
0x1: mov ##0xD3C0, repc | |
0x3: rep r6 | |
0x4: pop y1 | |
0x5: pop y1 | |
0x6: pop b0 | |
0x7: pop b0 | |
0x8: mov ##0xD3C0, ar0 | |
0xA: mov ##0xD3C0, arp0 | |
0xC: mov ##0xD3C0, arp2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body_LZ.bin | |
---------------------------------------------------- | |
0x0000 | Version (Must be 1?) | |
0x0004 | | |
0x0008 | | |
0x000C | Must be less than 4? | |
0x0010 | Top Screen Frame Count (If 0 then solid color at 0x14, else texture at 0x18) | |
0x0014 | Top Screen Solid Color (RGB8) | |
0x0018 | Top Screen Texture Address (Rgb565 at (320*(Top Screen Frame Count))*240) | |
0x001C | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") | |
OUTPUT_ARCH(arm) | |
ENTRY(_start) | |
MEMORY | |
{ | |
ram : ORIGIN = 0x20400000, LENGTH = 32M | |
} | |
SECTIONS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "parser.h" | |
#include <string> | |
#include <fstream> | |
#include <stdio.h> | |
int* index; | |
int indexSize; | |
FILE * dataFile; | |
void initPointerFile(){ |