Commit Graph

7 Commits

Author SHA1 Message Date
n loewen 501910b17f Feature: Keypad simulation!
Refactor: Tidy up constants use for machine configuration
2023-08-16 16:23:59 +01:00
n loewen b8265409cf Fix: Load CPU with 256 bytes of memory, regardless of the length of the data provided
(This mostly reverts the previous commit -- better to have short assembler output, and memory-padding/validation on the CPU side)
2023-08-16 15:55:04 +01:00
n loewen dd0fdd3b06 Feature (CPU): Implement a simple single-stepping mode 2023-08-16 13:56:23 +01:00
n loewen 344257a322 Refactor: Rename `framerate` to `clockSpeed` and add jsdoc annotation 2023-08-16 12:58:51 +01:00
n loewen 1d88d0b5b6 Refactor: Use `setInterval` to clock CPU, in order to remove unnecessary use of async/await 2023-08-16 12:56:30 +01:00
n loewen aa6cbc3e6d Refactor (CPU): Move more logic into `stepCPU()` in preparation for implementing single-stepping 2023-08-16 12:50:00 +01:00
n loewen c590ca4882 Refactor: Rename CPU to cpu.js (from 'simulator.js') 2023-08-16 09:48:56 +01:00