/hack-assembler

Primary LanguageC++MIT LicenseMIT

Assembler for HACK Assembly Language

  • Implemented an assembler for build a computer course on coursera.
  • Hack assembly Language specification [1], [2]

Compile Instruction

mkdir build
cd build
cmake ..
make 
  • Binary is created in /bin folder

Usage

./hack_assembler -i [input filename] -o [output filename]
  • input file must be .asm file
  • output file generated will be with suffix .hack

How to run assembled programs

  • Download software package for this course.
  • run tools/CPUSimulator.sh.
  • Load the compiled .hack files to run them.