diff --git a/readme.md b/readme.md index 8f449eb..3c02095 100644 --- a/readme.md +++ b/readme.md @@ -6,30 +6,16 @@ ## Run -### Assemble +### Assembler -Hex output: -```./run-assembler run source_code.asm``` +```./assembler.js source_code.asm [output.txt]``` -Binary output: -```./run-assembler runbin source_code.asm``` +By default, the output is written to `out.txt`. It is saved as a string of space-separated decimal numbers. -Verbose debugging output (hex): -```./run-assembler debug source_code.asm``` -### Assemble and run +### Simulator -With animated display of screen memory: -```./run-cpu run source_code.asm``` - -With verbose debugging output: -```./run-cpu debug source_code.asm``` - -With single stepping + pretty-printed display: -```./run-cpu step source_code.asm``` - -With single stepping + verbose debugging output: -```./run-cpu stepdebug source_code.asm``` +```./cardiograph.js < machine_code.txt``` ## Registers and Flags