My personal first lua program made to learn about emulation and lua the programming language itself, implementations and design of code may be a mess as this is my first lua program.
Requires Love2D to run.
- Roms can be placed in the
roms
folder and chaning the ROM_FILENAME value to the new file insettings.lua
- Other settings can also be adjusted in
settings.lua
such asINSTRUCTIONS_PER_FRAME
orFRAMES_PER_SECOND
according to different roms as it may vary
- Can load up most ROMS in the folder (Disclaimer:None of them are mine)
- Audio is not done yet
- Console window for LOVE2D can be enabled/disabled through changing the value in
conf.lua
- IBM logo test
- Corax+ Opcode test
- Flags test - Several failed opcodes for "HAPPY path"
8xy5, 8xy6, 8xyE
- Keypad test - Minor issue with Wait for key press
Not halting
All features should work fine regardless of test results as most roms can be loaded, just not the most accurate implementation.
Key | Description |
---|---|
ESC | End the program |
B | Pause the emulator |
N | Call Cpu:Cycle() |
M | Turn on debug mode, which shows some information in the background |
K | Increment the amount of instructions to run per cpu cycle by 1, default 10 |
L | Decrement the amount of instructions to run per cpu cycle by 1, default 10 |
O | Increment frames per second by 5, default 60 according to the default 60Hz |
P | Decrement frames per second by 5, default 60 according to the default 60Hz |
- Rom loading through file selection perhaps