For DeSmuME - US/EU ROM
AT: A-table hex value
BT: B-table hex value
FG: Fountain Group
--DeSmuME_HUD_EN
local AT, BT
local FG = {
[0] = "0RE",
[1] = "ST0NE",
[2] = "WATER",
[3] = "FL0WER",
[4] = "SEA",
[5] = "GRASS",
[6] = "MUSHR00M",
[7] = "SAND",
[8] = "?????"
}
gui.register(function()
AT = string.format("%02X", memory.readdword(0x020EEF30))
gui.text(10,-168,"AT: " .. AT)
BT = string.format("%02X", memory.readdword(0x02108DDC))
gui.text(10,-157,"BT: " .. BT)
gui.text(10,-146,"FG: " .. FG[memory.readbyte(0x020F90B2)])
end)