Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ intptr_t systemCalls(vm_t* vm, intptr_t* args)

default:
fprintf(stderr, "Bad system call: %i\n", id);
vm->lastError = VM_PC_OUT_OF_RANGE;
Com_Error(vm->lastError, "VM pc out of range");
return -1;
}
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/vm/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ locals from sp
static int VM_CallInterpreted(vm_t* vm, int* args)
{
uint8_t stack[OPSTACK_SIZE + 15];
int* opStack;
int* opStack = 0;
uint8_t opStackOfs;
int programCounter;
int programStack;
Expand Down