WOPR CLI
WOPR command line interface is currently the only way to use WOPR CPU. It implements all commands necessary to write and run WOPR programs.
$ ./wopr
wopr v2019.1
Usage:
wopr help [command]
wopr asm [source].wopr [output].wopr-bin
wopr debug [program].wopr-bin
asm
will compile your WOPR program into a binary. .wopr
and .wopr-bin
are
standard extensions for WOPR programs, but this is not enforced. Assembler
attempts to catch as many mistakes as possible, and will produce descriptive
output for each error. In case of any errors, output file is not produced.
IMPORTANT: output file is overwritten without warning, so be careful you do
not overwrite a file you need.
debug
will initialize WOPR emulator and load the specified program file and
prepare it for running. Debugger accepts only already assembled binary files.
Please see debugger for more information.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. Click to read license.