From a6e99667973cee0c0136583e4b97587757afb26a Mon Sep 17 00:00:00 2001 From: n loewen Date: Tue, 29 Aug 2023 13:08:48 -0400 Subject: [PATCH] (docs) Readme - Update info on how to run the assembler and simulator --- readme.md | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/readme.md b/readme.md index 8f449eb..3c02095 100644 --- a/readme.md +++ b/readme.md @@ -6,30 +6,16 @@ ## Run -### Assemble +### Assembler -Hex output: -```./run-assembler run source_code.asm``` +```./assembler.js source_code.asm [output.txt]``` -Binary output: -```./run-assembler runbin source_code.asm``` +By default, the output is written to `out.txt`. It is saved as a string of space-separated decimal numbers. -Verbose debugging output (hex): -```./run-assembler debug source_code.asm``` -### Assemble and run +### Simulator -With animated display of screen memory: -```./run-cpu run source_code.asm``` - -With verbose debugging output: -```./run-cpu debug source_code.asm``` - -With single stepping + pretty-printed display: -```./run-cpu step source_code.asm``` - -With single stepping + verbose debugging output: -```./run-cpu stepdebug source_code.asm``` +```./cardiograph.js < machine_code.txt``` ## Registers and Flags