Commit Graph

3 Commits

Author SHA1 Message Date
432fc46a2b Clean up Lua code.
- Refactor ALU to a single function to be reused
- Abstract registers out of a global variable into a function argument
- Use proper table initialisations
- Accept that LUA starts arrays at 1. Partially.
2017-12-18 15:18:39 +01:00
80bf90c034 Slight performance improvement.
Only need to check whether the current program is blocked, since the
other will have switched if it was going to block.
2017-12-18 14:05:00 +01:00
c294af6f1d Implement day 18 in Lua. 2017-12-18 13:23:56 +01:00