VM test is passing

This commit is contained in:
2026-04-07 21:34:05 +10:00
parent 7408a24a12
commit 842f041a50
2 changed files with 889 additions and 4 deletions

View File

@@ -63,7 +63,8 @@ static void processRead(Toy_VM* vm) {
case TOY_VALUE_STRING: {
enum Toy_StringType stringType = READ_BYTE(vm);
//int len = (int)READ_BYTE(vm); //WARN: only used for name strings
int len = (int)READ_BYTE(vm); //WARN: only used for name strings
(void)len;
//grab the jump as an integer
unsigned int jump = *((int*)(vm->code + vm->jumpsAddr + READ_INT(vm)));