GithubHelp home page GithubHelp logo

alienkevin / hack-assembler-web Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 3.08 MB

Web version of the Hack Assembler

Home Page: https://alienkevin.github.io/hack-assembler-web/

License: Apache License 2.0

Rust 20.27% JavaScript 26.89% HTML 8.57% Elm 44.27%

hack-assembler-web's Introduction

hack-assembler

Assembler for the Hack computer written in Rust.

What is Hack?

Hack is an assembly language included in the online course "Build a Modern Computer from First Principles: From Nand to Tetris" and the book "The Elements of Computing Systems" by Noam Nisan and Shimon Schocken (MIT Press). Hack is also the name of the computer Noam and Shimon designed as the project for the course "From Nand to Tetris".

Hack Specification

The Hack assembly language has two types of instructions:

A Instructions

A instructions spec

C Instructions

C instructions spec

Symbols

symbols

Hack Assembler

The assembler compiles symbolic Hack code to binary code that the Hack machine understands. This project is structured in four parts:

  1. Parser
  2. Emitter
  3. Assembler
  4. Browser interface written in Elm

If you prefer a command line interface, try the original project hack-assembler.

Want to learn more about Hack?

Check out the course video on Hack assembly and the whole From Nand to Tetris course.

Credits

Thanks to Noam Nisan and Shimon Schocken for developing the amazing From Nand to Tetris course and Bodil Stokke for her excellent tutorial on parser combinators in Rust

License

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

hack-assembler-web's People

Contributors

alienkevin avatar

Stargazers

Will Strinz avatar Hilbert Chen avatar Peter A. avatar Andrea Pascal avatar  avatar Mert Torun avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.