started adding illegal instructions

This commit is contained in:
Lauchmelder 2021-10-23 01:29:15 +02:00
parent a345421963
commit bfdf3f88cf
3 changed files with 176 additions and 170 deletions

View file

@ -47,6 +47,9 @@ void destroyCPU(struct CPU* cpu)
int tickCPU(struct CPU* cpu)
{
if (cpu->remainingCycles == -1) // Jammed
return 1;
cpu->remainingCycles--;
cpu->totalCycles += 1;