A re-implementation of Nand2tetris' CPU Emulator in the terminal.
- Rust v1.42 or later
Make sure you obtain an assembly file from nand2Tetris
hack-cpu-emulator <assembly file>
- Press
n
for one CPU tick. - Press
j
andk
for navigating the content of the memory. - Press
r
to edit the memory at a certain address. UseEnter
to confirm the edit andEsc
to cancel. - Press
b
to enter keyboard mode. UseEsc
to exit the mode. - Press
f
to toggle maximizing the computer screen. - Press
q
to quit the program.
- [x] Implement screen widget
- [x] Introduce keyboard inputMode
- [ ] Support toggling between view modes (binary, hex, decimal, asm)
- [ ] Implement non-interactive mode
- [ ] Time travel