local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":maincpu"] dbg:command('wpiset 80,40,w,1,{logerror "W %X %X %d %d %d\\n",wpaddr&0xff,wpdata,totalcycles,beamy,beamx; g}') dbg:command('wpiset 80,40,r,1,{logerror "R %X %X %d %d %d\\n",wpaddr&0xff,wpdata,totalcycles,beamy,beamx; g}') dbg:command("go") vdp_device = nil for tag, device in pairs(manager.machine.devices) do if device.shortname:match("^tms9") then vdp_device = device end