README_DEV removed.
This commit is contained in:
parent
01f5428a33
commit
b54ce204ed
1 changed files with 0 additions and 14 deletions
|
|
@ -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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue