5 Commits

Author SHA1 Message Date
1f41f4b35a Remove inputs 2024-01-10 19:40:45 +01:00
f28a983133 More improvements, because lua can do some things:
- Remove manual bookkeeping of array size
- Remove duplicate 'snd' instruction
- Instructions start at 1 now, I guess
2017-12-18 16:30:25 +01:00
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