Skip to content

Instantly share code, notes, and snippets.

@romhack
Created March 28, 2021 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romhack/e0adfcc01bcd8c26027da9ba2d58e9a1 to your computer and use it in GitHub Desktop.
Save romhack/e0adfcc01bcd8c26027da9ba2d58e9a1 to your computer and use it in GitHub Desktop.
fceux lua script for finding compression blocks of graphics offsets in ROM
function CompressionHook()
src = memory.readword(0x001D)
size = memory.getregister("a")
emu.print(string.format("src:0x%x; plain size:0x%x\n", src+0x10,size*0x10))
end
memory.registerexecute(0xF23F, CompressionHook);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment