From 98f3be87dde146d646fa950765313fe35cd02183 Mon Sep 17 00:00:00 2001 From: yzamir Date: Mon, 2 Oct 2023 09:23:00 +0300 Subject: [PATCH] Add NOP command and a list for command lengths Signed-off-by: yzamir --- README.ASM.md | 1 + public/js/components/code-editor.js | 2 +- src/compiler.mjs | 28 ++++++------ src/debug.mjs | 16 +++++++ src/disassemble.mjs | 9 ++-- src/opcodes.mjs | 71 ++++++++++++++++++++--------- src/vm.mjs | 24 ++++------ 7 files changed, 94 insertions(+), 57 deletions(-) diff --git a/README.ASM.md b/README.ASM.md index 253d9ee..4b34e9f 100644 --- a/README.ASM.md +++ b/README.ASM.md @@ -20,6 +20,7 @@ SMART Assembly is a simple assembly language designed for educational purposes. Here's a list of available opcodes in the SMART Assembly language: +- `NOP`: No operation, move the program counter. - `LOADA