Add note on dependencies + how to run without using npm scripts (using shebang)

This commit is contained in:
n loewen 2023-08-07 11:03:19 +01:00
parent f69e4533a1
commit cb492fa9af
1 changed files with 12 additions and 4 deletions

View File

@ -1,18 +1,26 @@
# Paper computer simulator experiment
## Dependencies
Node.js
## Run the assembler/simulator
Assemble source code:
```npm run asm source_code.asm```
- ```npm run asm source_code.asm```
- or ```./run-assembler run source_code.asm```
Assemble source code, with debug output:
```npm run asmdebug source_code.asm```
- ```npm run asmdebug source_code.asm```
- or ```./run-assembler debug source_code.asm```
Assemble and run, with animated display of screen memory:
```npm run rundisplay source_code.asm```
- ```npm run rundisplay source_code.asm```
- or ```./run-cpu run source_code.asm```
Assemble and run, with debug output:
```npm run rundebug source_code.asm```
- ```npm run rundebug source_code.asm```
- or ```./run-cpu debug source_code.asm```
## Instruction set