Sloppy but quickly made
while true do
local xPosition = mainmemory.read_u16_be(0xEEC8)
local xSub = mainmemory.read_u16_be(0xEECA)
local xSpeed = mainmemory.read_s16_be(0xEECC)
gui.drawText(0,30, "X Speed:"..xSpeed.." ")
gui.drawText(0,60, "X Position:"..xPosition..":"..xSub.." ")
emu.frameadvance();
end