Skip to content

Instantly share code, notes, and snippets.

@BestPig
BestPig / analogue-pocket-game-patches.md
Last active May 18, 2024 13:35
Patches to convert GameBoy ROM to `.pocket` (Analogue Pocket ROM)

Patches

Those patches are to convert GameBoy ROM to .pocket ROM. This allows you to play games from the SD Card on your Analogue Pocket.
Feature like RTC and Link cable seems to be unsupported by the Analogue Pocket in GB Studio mode.

Legend of Zelda, The - Link's Awakening DX

GitHub: https://github.com/BestPig/LADX-Disassembly-Pocket

Zelda no Densetsu - Yume o Miru Shima DX

@BestPig
BestPig / rgbfix-analogue-pocket.diff
Created December 21, 2021 23:58
Patch for rgbfix to set the Analogue logo
diff --git a/src/fix/main.c b/src/fix/main.c
index 23cd976..914e6e2 100644
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -741,21 +741,21 @@ static bool hasRAM(enum MbcType type)
}
static const uint8_t ninLogo[] = {
- 0xCE, 0xED, 0x66, 0x66, 0xCC, 0x0D, 0x00, 0x0B,
- 0x03, 0x73, 0x00, 0x83, 0x00, 0x0C, 0x00, 0x0D,

Keybase proof

I hereby claim:

  • I am bestpig on github.
  • I am bestpig (https://keybase.io/bestpig) on keybase.
  • I have a public key ASCNwnowdmY7w6Us_CAdxEiyi8zblOAUT-bUaDbhTc-a3go

To claim this, I am signing this object:

@BestPig
BestPig / datacomment.py
Created April 5, 2015 19:18
An IDAPython plugin that generates "comment" for data
##########################################################################
# An IDAPython plugin that generates "comment" for data
#
# Compiler sometimes optimized initialisation of small strings
# and init them with, this example write "Hello!\n":
# - mov dword ptr[rax + 0], 6c6c6548h
# - mov dword ptr[rax + 4], a216fh
#
# This plugin will auto comment the following line as:
# - mov dword ptr[rax + 0], 6c6c6548h; 'Hell'