11 lines
655 B
Lua
11 lines
655 B
Lua
local h = io.open("/home/siege/Projects/tbg/re/runs/mech_1/dbg.txt", "w")
|
|
local function log(...) h:write(table.concat({...}, " "), "\n"); h:flush() end
|
|
log("callbackType:", tostring(emu.callbackType))
|
|
if emu.callbackType then for k, v in pairs(emu.callbackType) do log(" ", k, tostring(v)) end end
|
|
log("cpuType:"); for k, v in pairs(emu.cpuType or {}) do log(" ", k, tostring(v)) end
|
|
local ok, e = pcall(emu.addMemoryCallback, function() end, emu.callbackType.write, 0x7E2280, 0x7E25EF)
|
|
log("addMemoryCallback", tostring(ok), tostring(e))
|
|
local s = emu.getState()
|
|
for k, v in pairs(s) do if k:match("^cpu%.") then log(k, tostring(v)) end end
|
|
emu.stop(0)
|