n2t-cpu

An implementation of the nand2tetris CPU emulator

View project on GitHub

n2t-cpu

An implementation of the nand2tetris CPU emulator that runs in your browser.

Supports drawing to the screen, but not keyboard input.

Try it out!

Features

  • Support for all instructions, not just the author’s 18 default mnemonics.
  • Keyboard shortcuts (replace CTRL with Command on Mac)

    Shortcut Behavior
    ctrl+o Open a hack file
    ctrl+shift+o Open a RAM dump file
    s Step 1
    x Step X
    shift+x Step X (prompt for X)
    ctrl+g Go to ROM address
    ctrl+h Go to RAM address
    ctrl+b Set a breakpoint at the current PC
    ctrl+shift+b Set a breakpoint at the prompted address