From 996d6284063fbc7a9d5cbcb790bec620b30ef0a2 Mon Sep 17 00:00:00 2001 From: n loewen Date: Wed, 2 Aug 2023 11:26:10 +0100 Subject: [PATCH] Move note on instruction length to readme, from simulator.js --- readme.md | 3 +++ simulator.js | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 8c9024e..54b0c63 100644 --- a/readme.md +++ b/readme.md @@ -34,6 +34,9 @@ Misc: E CHP ———— ; carry hop ... skip next instruction if Carry Flag is set ... when true: IP <- PC + 2 F +- instructions are two bytes long: + one byte for the opcode, one for the argument + ### Nice features that didn't fit diff --git a/simulator.js b/simulator.js index 995b289..226437c 100644 --- a/simulator.js +++ b/simulator.js @@ -1,8 +1,3 @@ -// NOTES: -// -// - instructions are two bytes long: -// one byte for the opcode, one for the argument - const { INITIAL_IP_ADDRESS, CYCLE_LIMIT } = require('./machine.config'); const display = require('./display.js');