(docs) Readme - Update info on how to run the assembler and simulator

This commit is contained in:
n loewen 2023-08-29 13:08:48 -04:00
parent 8a38d6f831
commit a6e9966797
1 changed files with 5 additions and 19 deletions

View File

@ -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