Fixed missing break statement in a switch
This commit is contained in:
parent
bc5295471f
commit
9694e344cf
1 changed files with 2 additions and 2 deletions
4
tvm.c
4
tvm.c
|
|
@ -33,8 +33,8 @@ void run_vm(tvm_t* vm)
|
|||
|
||||
switch(vm->pProgram->instr[*instr_idx])
|
||||
{
|
||||
case 0x0: break;
|
||||
case 0x1:
|
||||
/* nop */ case 0x0: break;
|
||||
/* interrupt */ case 0x1: break;
|
||||
case 0x2: *arg0 = *arg1; break;
|
||||
case 0x3: stack_push(vm->pMemory, arg0); break;
|
||||
case 0x4: stack_pop(vm->pMemory, arg0); break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue