Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
This patch lays the foundation for Lua support. It pulls in Lua 5.2 and adds a
It also exposes a
Example of a small Lua script:
-- -- Intercept JSR COUT calls and turn A-Z into inverse. The key code is -- in the accumulator so we can simply see if it is in the range we -- are interested in and then shift it to the inverse character range. -- JSR = 0x20 COUT = 0xfded cpu:onBeforeExecuteInstruction(JSR, function(cpu, opcode, operand) if operand == COUT then if cpu.a >= 0xc1 and cpu.a <= 0xda then cpu.a = cpu.a - 0xC0 end end end)