Remove npm scripts: just run it using ./

This commit is contained in:
n loewen 2023-08-10 10:07:10 +01:00
parent a78c1b9d14
commit d92a501085
2 changed files with 16 additions and 17 deletions

View File

@ -1,10 +1,6 @@
{
"name": "paper-computer",
"scripts": {
"rundisplay": "./run-cpu.js run",
"rundebug": "./run-cpu.js debug",
"asm": "./run-assembler.js run",
"asmdebug": "./run-assembler.js debug",
"jsdoc": "./node_modules/.bin/jsdoc"
},
"devDependencies": {

View File

@ -4,23 +4,26 @@
Node.js
## Run the assembler/simulator
## Run
Assemble source code:
- ```npm run asm source_code.asm```
- or ```./run-assembler run source_code.asm```
### Assemble
Assemble source code, with debug output:
- ```npm run asmdebug source_code.asm```
- or ```./run-assembler debug source_code.asm```
Hex output:
```./run-assembler run source_code.asm```
Assemble and run, with animated display of screen memory:
- ```npm run rundisplay source_code.asm```
- or ```./run-cpu run source_code.asm```
Binary output:
```./run-assembler runbin source_code.asm```
Assemble and run, with debug output:
- ```npm run rundebug source_code.asm```
- or ```./run-cpu debug source_code.asm```
Verbose debugging output (hex):
```./run-assembler debug source_code.asm```
### Assemble and run
With animated display of screen memory:
```./run-cpu run source_code.asm```
With verbose debugging output:
```./run-cpu debug source_code.asm```
## Instruction set