From cb492fa9af24d8009b80aa4b7afd69e923202876 Mon Sep 17 00:00:00 2001 From: n loewen Date: Mon, 7 Aug 2023 11:03:19 +0100 Subject: [PATCH] Add note on dependencies + how to run without using npm scripts (using shebang) --- readme.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index e8cf9be..6497a95 100644 --- a/readme.md +++ b/readme.md @@ -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