Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 548 Bytes

File metadata and controls

20 lines (12 loc) · 548 Bytes

TypeScript implementation of the Hack computer architecture, as described in The Elements of Computing Systems by Noam Nisan and Shimon Schocken.

Example

import { and, or } from "jsr:@r2/hack";

and(1, 1); //  -> 1
or(1, 0); //  -> 1

Disclaimer

This project is a work in progress. Some features may be incomplete or subject to change. Feedback is welcomed!

Acknowledgments

This project is based on The Elements of Computing Systems by Noam Nisan and Shimon Schocken.