Skip to content

Instantly share code, notes, and snippets.

View Phasip's full-sized avatar

Pasi Saarinen Phasip

View GitHub Profile
@LIJI32
LIJI32 / gameboy.py
Last active July 3, 2022 20:36
Game Boy loader script for IDA
import idaapi
from idc import *
logo = "CE ED 66 66 CC 0D 00 0B 03 73 00 83 00 0C 00 0D 00 08 11 1F 88 89 00 0E DC CC 6E E6 DD DD D9 99 BB BB 67 63 6E 0E EC CC DD DC 99 9F BB B9 33 3E".replace(" ", "").decode("hex")
registers = {
0xFF00: "rJOYP",
0xFF01: "rSB",
0xFF02: "rSC",
0xFF04: "rDIV",