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.
© 2023 meatfighter.com |