Fixed minor user interaction bug in Development mode and fixed the continued execution of a Halted vm in the IDE
This commit is contained in:
parent
67e31f7d70
commit
bd803a996b
|
@ -1998,7 +1998,7 @@ void eval_instruction(struct lilith* vm, struct Instruction* current)
|
||||||
case 0xFF: /* Deal with HALT */
|
case 0xFF: /* Deal with HALT */
|
||||||
{
|
{
|
||||||
vm->halted = true;
|
vm->halted = true;
|
||||||
fprintf(stderr, "Computer Program has Halted\n");
|
fprintf(stderr, "Computer Program has Halted\nAfter Executing %i instructions\n", performance_counter);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: /* Deal with illegal instruction */
|
default: /* Deal with illegal instruction */
|
||||||
|
|
|
@ -231,6 +231,9 @@ void vm_FPUTC(struct lilith* vm)
|
||||||
if (0x00000000 == vm->reg[1])
|
if (0x00000000 == vm->reg[1])
|
||||||
{
|
{
|
||||||
fputc(byte, stdout);
|
fputc(byte, stdout);
|
||||||
|
#ifdef tty_lib
|
||||||
|
fflush(stdout);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if(0x00001100 == vm->reg[1])
|
if(0x00001100 == vm->reg[1])
|
||||||
|
|
Loading…
Reference in New Issue