local frames = 0 emu.register_frame_done(function() frames = frames + 1 if frames == 300 then manager.machine.natkeyboard:post("PRINT 3.7*2.9\n") end if frames == 700 then local mem = manager.machine.devices[":maincpu"].spaces["program"] for row = 0, 15 do local line = "" for col = 0, 31 do local c = mem:read_u8(0x4000 + row * 32 + col) & 0x3F if c < 32 then c = c + 64 end line = line .. string.char(c) end print("|" .. line .. "|") end manager.machine:exit() end end)