The Cycle Programs Generator produces the general-purpose computer's left and right cycle MC programs. To run it from the command-line, enter the following.
java -cp target/tetromino-computer.jar tetrominocomputer.mc.CycleProgramsGenerator -b [ binary filename ] -l [ cycle left filename ] -r [ cycle right filename ]
The arguments are optional. They default to:
java -cp target/tetromino-computer.jar tetrominocomputer.mc.CycleProgramsGenerator -b example.bin -l CYCLE_LEFT.mc -r CYCLE_RIGHT.mc
The Cycle Programs Generator obtains the binary file from code/bin. It does not load the file's contents. Rather, it uses the file's length to determine the general-purpose computer's maximum RAM address. That enables it to generate MC programs that iterate across RAM.
The Cycle Programs Generator saves the MC programs to code/mc.
© 2023 meatfighter.com |