Incomplete and probably incorrect.  Couldn't draw single pixels fast enough.

Emulator for Nand2tetris course's Hack computer implemented in the Godot game engine.

It is still very much a work in progress. If anything is at all unclear, or you have a suggestion or anything at all, please write in the comments below or in the GitLab repository.

In the assembler, copy Hack assembly code from wherever and paste it into the leftmost text field. Press the compile button. The assembly code representation of the bytecodes will appear in the middle text entry field and the bytecode binary values in the rightmost text entry field.

The emulator supports input, but:

  • Input is written to the keyboard RAM segment even when the emulator is not running.
  • Not all keys are currently recognized.

The logic side works almost to specification, maybe. Copy and paste code from:

and paste it in the source entry area, and press "Run". 

Known bugs:

  • For some strange reason clipboarding in the web version does not work for me. It might not work for you, too. I would export for Linux and Windows, but who in their right mind would even want to run it natively?
  • For some strange reason file menu won't open the native file system for me. It might not work for you, too. I would export for Linux and Windows, but… wait a minute, I suddenly have a strong sense of deja vu.

Source (AGPL-3.0-or-later): https://gitlab.com/yuvallangerontheroad/hackett/

Cover image by José-Manuel Benito Álvarez

Download

Download
hackett-html-itch-1.zip 4 MB
Download
hackett-html-itch-2.zip 4 MB
Download
hackett-4a48c405e5383ba0485f0cdf465c372787fc6e24.zip 4 MB
Download
hackett-2021-09-03-8ad2bbbff393cd18f55c6b89226e68921a63c7db.zip 4 MB
Download
hackett-2021-09-03T18:00:37+00:00-3d3c35e6b1776a44d6167cd38b0f54a5b7ca5ea6.zip 4 MB
Download
hackett-2021-09-05T19:51:26+03:00-f5fe8e216886ea37906c2d1f6692891113de5d9d.zip 4 MB
Download
hackett-2021-09-05T21:42:45+03:00-f5fe8e216886ea37906c2d1f6692891113de5d9d.zip 4 MB
Download
hackett-2021-09-09T15:19:45+03:00-4aae598e9479bcd54715fdde51dc8431b4607c04.zip 4 MB
Download
hackett-2021-09-09T16:21:39+03:00-81d743f48af36e13e3b0be0dec40648daf11c693.zip 4 MB

Leave a comment

Log in with itch.io to leave a comment.