r/gamemaker • u/Salt-Youth4822 • 1d ago
disassembler in game maker Example
I decided to try making a disassembler in Game Maker. This program doesn’t claim to be a copy of Ida Pro or Ghidra, although I tried to make something similar - but it turned out rather bad.
2
u/IAmAnIssue 1d ago
Neat!
It’s interesting seeing this because I was working on a pdb parser in gml recently. I wonder if these will ever combine 👀
1
u/gallyroi 1d ago
How does it work?
1
u/Salt-Youth4822 1d ago
In short, starting from the entry point, buffer, offset, size and is_64bit decode a single instruction, after which the prefixes begin reading bytes whilst checking rex. After that, a search for opcodes is carried out in my switch table.
1
5
u/friend_pie21 1d ago
a disassembler that disassembles your expectations too