local machine = manager.machine local cpu = machine.devices[':maincpu'] local dbg = machine.debugger local prog = cpu.spaces['program'] local function w(a) return prog:read_u16(a) end local function dump(label, base, n) local t = {} for i=0,n-1 do t[#t+1] = string.format("%04X", w(base + i*16)) end print(label .. " @ " .. string.format("%08X", base) .. ": " .. table.concat(t, " ")) end local n=0 emu.register_frame_done(function() n=n+1 if n==476 then dump("stubs", 0x0d80, 40) end if n>=480 then machine:exit() end end, "vt1200-hp-dump2") dbg.execution_state='run'