From d92a501085b4d7cb8c409eac5ae06f49ff2f1892 Mon Sep 17 00:00:00 2001 From: n loewen Date: Thu, 10 Aug 2023 10:07:10 +0100 Subject: [PATCH] Remove npm scripts: just run it using ./ --- package.json | 4 ---- readme.md | 29 ++++++++++++++++------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 5769e0b..1d497cb 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/readme.md b/readme.md index 6497a95..c945234 100644 --- a/readme.md +++ b/readme.md @@ -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