(docs) Readme - Update info on how to run the assembler and simulator
This commit is contained in:
parent
8a38d6f831
commit
a6e9966797
24
readme.md
24
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue