Open Issues Need Help
View All on GitHubAI Summary: This issue proposes adding pause and reset functionality to the emulator. Users will be able to pause the emulation using a key (e.g., `KEY_SPACE`), which will halt the emulation loop while keeping the screen drawn. Additionally, a reset key (e.g., `KEY_R`) will be implemented to reset the current ROM by calling a `reset()` method and reloading the ROM file.
AI Summary: The `emulateCycle` function, which handles opcode processing, currently uses a large and difficult-to-maintain `switch` statement. The proposed refactoring is to replace this with an array of function pointers, where each pointer directs to a specific function handling an opcode or group of opcodes, aiming for cleaner and more modular code.