As part of the Nand2Tetris course (19AIE112 - Elements of Computing 2), We have developed an Hack Assembler program that converts .asm (assembly language) to .hack (machine language).
Feel free to use this program for reference. Make sure you are changing the location address of the desired .asm and .hack file in the corresponding program!
Few Successful Outputs are shown below:
Happy Coding!