GitXplorerGitXplorer
d

hack-cpu-emulator

public
9 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
598f292ef720374a5d932582cfb399c14901e6b5

update readme

dducaale committed 4 years ago
Unverified
a28ade5a68e64ef5c7294b590900215e38d63c53

update usage

dducaale committed 4 years ago
Unverified
63611d419e006a1f0d51f93b6d83ea857d8e9ae7

add more detailed usage

dducaale committed 4 years ago
Unverified
22cf19f3b2b123d3d5dddf6113a63e507fdb75e2

update todo

dducaale committed 4 years ago
Unverified
cb1f6870cf2f6b10f7c19ef76877e2e7f9353395

update readme

dducaale committed 4 years ago
Unverified
4e9be1b816011bf7768e6c284b0a55fa745ee43c

add todo

dducaale committed 4 years ago

README

The README file for this repository.

Hack CPU Emulator

A re-implementation of Nand2tetris' CPU Emulator in the terminal.

Requirements

  • Rust v1.42 or later

Usage

Make sure you obtain an assembly file from nand2Tetris

hack-cpu-emulator <assembly file>
  • Press n for one CPU tick.
  • Press j and k for navigating the content of the memory.
  • Press r to edit the memory at a certain address. Use Enter to confirm the edit and Esc to cancel.
  • Press b to enter keyboard mode. Use Esc to exit the mode.
  • Press f to toggle maximizing the computer screen.
  • Press q to quit the program.

Todos

  • [x] Implement screen widget
  • [x] Introduce keyboard inputMode
  • [ ] Support toggling between view modes (binary, hex, decimal, asm)
  • [ ] Implement non-interactive mode
  • [ ] Time travel

Screenshots

screenshot

screenshot