Skip to content

Instantly share code, notes, and snippets.

@tlindner
Created May 17, 2021 05:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tlindner/6e042b295f47a64e4c76eb3eb0d0757a to your computer and use it in GitHub Desktop.
Color COmputer Arkanoid Cheat
-- Lua script for MAME
-- Driver: coco3, game: Arkanoid
-- Start: ./mame coco3 -cart Arkanoid.ccc -autoboot_script Arkanoid\ Cheat.lua
emu.pause()
cpu = manager.machine.devices[":maincpu"]
mem = cpu.spaces["program"]
function draw_hud()
if mem:read_u8(0x134) > 180 then
mem:write_u8(0x134, 140)
end
end
emu.register_frame(draw_hud, "frame")
emu.unpause()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment