Skip to content

Instantly share code, notes, and snippets.

@123jimin
Created April 9, 2013 09:23
Show Gist options
  • Save 123jimin/5344310 to your computer and use it in GitHub Desktop.
Save 123jimin/5344310 to your computer and use it in GitHub Desktop.
I spot a serious bug here
case (int)instructions.Div://divides regB with regC and puts the result in regA
if (register[regB] == 0)
return -1;
register[regA] = register[regB] / register[regC];
executionTime += 39;
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment