Skip to content

This is Assembler written in C++ to convert assembly level Programs to Machine Code for the HACK Computer Architecture

License

Notifications You must be signed in to change notification settings

ayanchak1508/HACK_Assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HACK_Assembler

This is Assembler written in C++ to convert Assembly level Programs to Machine Code for the HACK Computer Architecture.

Prof.Shimon Schocken and Prof.Noam Nisan, are the creators of the Hack language and computer architecture designed for the Nand2Tetris Course. For more details, please check out: https://www.nand2tetris.org/

Instructions for Use

In the terminal run:

  • g++ assembler.cpp to compile the file and generate the executable

  • Run ./a.out in the terminal (You can replace 'a' with any name that you have given to the executable)

  • The following Prompt will show up.(Please enter a valid file name and ensure the input file is in the same directory as the executable)

  • Enter file name:

  • You will see the lines being read and the corresponding binary codes being generated show up on the terminal

  • The output will be saved in a .hack file having the same file name as the Input file

About

This is Assembler written in C++ to convert assembly level Programs to Machine Code for the HACK Computer Architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages