### Dependencies - Node.js ### Quick examples Assemble and run: ```./assembler.js -i | ./cardiograph.js``` Assemble to a file: ```./assembler.js -i -o ``` Run from a file: ```./cardiograph.js -i ``` ### Assembler: assembler.js ``` Usage: ./assembler.js [-a] -i [-o ] -a, --annotate Output code with debugging annotations -i, --in Assembly-language input -o, --out Machine-code output ``` - If an output file is not provided, the output is printed to stdout - If the `annotate` flag is not set, the machine code is returned as a string of space-separated decimal numbers ### Simulator: cardiograph.js ``` Usage: ./cardiograph.js [-i ] -i, --in Machine-code input ``` - If an input file is not provided, the input is read from stdin