Skip to content

Instantly share code, notes, and snippets.

View LIJI32's full-sized avatar
🦆

Lior Halphon LIJI32

🦆
  • Israel
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",
SECTION "Header", ROM0[$100]
Start::
nop
jp _Start
SECTION "Home", ROM0[$150]
INCLUDE "common.inc"
_Start:
SECTION "Header", ROM0[$100]
Start::
nop
jp _Start
SECTION "Home", ROM0[$150]
INCLUDE "common.inc"
_Start:
@LIJI32
LIJI32 / gb_frameskip_test.asm
Created June 3, 2017 10:17
gb_frameskip_test
INCLUDE "gbhw.asm" ; Available at https://github.com/LIJI32/GBVideoPlayer/blob/master/gbhw.asm
SECTION "VBlank", ROM0[$40]
jp VBlank
SECTION "Header", ROM0[$100]
Start::
di
jp _Start