Did you know the Famicom had a Gameboy mode 6 years before the release of the handheld?
Ok, apologies for the clickbait-y idea I stole from YT. I just wanted to draw attention to the cool memory tap addition
Vas made to the Lua system yesterday. I had wanted to intercept memory read/writes from Lua before but didn't know how to do it. Here's my newb Lua script to force the NES PPU to always be in "green-scale":
function callback(offset, data, mask) return data | 0x41 end
memory = manager.machine.devices[":maincpu"].spaces["program"]
if passthrough == nil then
passthrough = memory:install_write_tap(0x2001, 0x2001, "gbmode", callback)
emu.register_stop(function() passthrough:remove() end)