Skip to content

Instantly share code, notes, and snippets.

@Normmatt
Normmatt / Simp.py
Last active November 24, 2017 03:20 — forked from xerub/Simp.py
AArch64 mov simplifier IDA plugin - Updated for IDA 7
# 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,
@Normmatt
Normmatt / fail.c
Created February 5, 2017 21:07
0.11 firm launch code
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);
@Normmatt
Normmatt / teaklite2.txt
Created July 26, 2015 12:04
Tealite2 instruction set
This file has been truncated, but you can view the full file.
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
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 |
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
MEMORY
{
ram : ORIGIN = 0x20400000, LENGTH = 32M
}
SECTIONS
#include "parser.h"
#include <string>
#include <fstream>
#include <stdio.h>
int* index;
int indexSize;
FILE * dataFile;
void initPointerFile(){