From b54ce204ed070e08fe1dcb2f3e9d9908a22e79f3 Mon Sep 17 00:00:00 2001 From: hanez Date: Fri, 26 Sep 2025 09:35:36 +0200 Subject: [PATCH] README_DEV removed. --- README_DEV.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 README_DEV.md diff --git a/README_DEV.md b/README_DEV.md deleted file mode 100644 index b066be8..0000000 --- a/README_DEV.md +++ /dev/null @@ -1,14 +0,0 @@ -# Developer Notes - -This project splits VM opcode handlers into one-include-per-op file for readability. -The main interpreter loop (`src/vm.c`, `vm_run`) includes `vm_case_*.inc` files, -each containing a single `case OP_*: { ... }` handler. - -## Adding a new opcode - -1. Add the enum in `src/bytecode.h` (e.g., `OP_FOO`) and add its human-readable name - to `opcode_names[]` in `src/vm.h`. Update `opcode_is_valid` upper bound if needed. -2. Implement the VM handler in `src/vm_case_foo.inc` using the established style: - - No function wrappers, just `case OP_FOO: { ... break; }`. -3. Include the new file in the switch inside `src/vm.c` (`vm_run`), near similar ops. -4. Run the checker script: