Remove npm scripts: just run it using ./
This commit is contained in:
parent
a78c1b9d14
commit
d92a501085
|
|
@ -1,10 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-computer",
|
"name": "paper-computer",
|
||||||
"scripts": {
|
"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"
|
"jsdoc": "./node_modules/.bin/jsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
29
readme.md
29
readme.md
|
|
@ -4,23 +4,26 @@
|
||||||
|
|
||||||
Node.js
|
Node.js
|
||||||
|
|
||||||
## Run the assembler/simulator
|
## Run
|
||||||
|
|
||||||
Assemble source code:
|
### Assemble
|
||||||
- ```npm run asm source_code.asm```
|
|
||||||
- or ```./run-assembler run source_code.asm```
|
|
||||||
|
|
||||||
Assemble source code, with debug output:
|
Hex output:
|
||||||
- ```npm run asmdebug source_code.asm```
|
```./run-assembler run source_code.asm```
|
||||||
- or ```./run-assembler debug source_code.asm```
|
|
||||||
|
|
||||||
Assemble and run, with animated display of screen memory:
|
Binary output:
|
||||||
- ```npm run rundisplay source_code.asm```
|
```./run-assembler runbin source_code.asm```
|
||||||
- or ```./run-cpu run source_code.asm```
|
|
||||||
|
|
||||||
Assemble and run, with debug output:
|
Verbose debugging output (hex):
|
||||||
- ```npm run rundebug source_code.asm```
|
```./run-assembler debug source_code.asm```
|
||||||
- or ```./run-cpu 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
|
## Instruction set
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue