🡄 Previous

Next 🡆

Contents > Applications

Assembler

The Assembler translates a program written in the general-purpose computerā€™s assembly languageĀ into a machine code binary. To run it from the command-line, enter the following.

java -cp target/tetromino-computer.jar tetrominocomputer.asm.Assembler -a [ asm filename ] -b [ binary filename ]

The arguments are optional. They default to:

java -cp target/tetromino-computer.jar tetrominocomputer.asm.Assembler -a example.asm -b example.bin

The Assembler loads the assembly language source file from code/asm. It saves the binary file to code/bin.

🡄 Previous

Next 🡆