Added functionality to read and write instruction bytecode

Uses some bit hacks to quickly check what data type an opcode may have
by shifting down to units then casting it to a data_type_t.
Not very well tested yet, we'll need to see now.
This commit is contained in:
2023-10-16 01:06:49 +01:00
parent a24a096e2a
commit 6038363d2f
4 changed files with 165 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ OUT=ovm.out
SRC=src
DIST=build
CODE=$(addprefix $(SRC)/, darr.c runtime.c main.c)
CODE=$(addprefix $(SRC)/, darr.c inst.c runtime.c main.c)
OBJECTS=$(CODE:$(SRC)/%.c=$(DIST)/%.o)
DEPS=$(OBJECTS:%.o=%.d)