Re: Arbitrary code execution in Red/Blue using the "8F" item
Posted by: Torchickens
Date: 2017-02-07 16:34:47
Is there an Intuitive, Searchable, opcode map for the GB, I would like to write some item codes.
As Flandre Scarlet suggested you can use the table found at Pastraiser.
We also have an opcode table on http://glitchcity.info/wiki/The_Big_HEX_List but if you want a plain text file with only opcodes and operands another one can be found here (https://iimarck.us/etc/asmopcodes.txt) which is the table I used to use. I personally feel the latter two are simpler and may be more user friendly.
And if you want to learn assembly I learned some of it after experimenting with http://marc.rawer.de/Gameboy/Docs/GBCPU_Instr.html and http://datacrystal.romhacking.net/wiki/Pok%C3%A9mon_Red/Blue:RAM_map for a list of memory addresses, so for example ld a, xx puts a value into a and ld (xxyy),a puts the value of a into another memory address and a ret ($C9 byte) will end the code.
Hope that helps!