Skip to content

Commit

Permalink
Simulator: Reset state after execution
Browse files Browse the repository at this point in the history
  • Loading branch information
agkaminski committed May 8, 2018
1 parent 188287e commit 148907d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions simulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,17 @@ static void *core_thread(void *arg)
switch(core_global.state) {
case STATE_RST:
core_reset(&core_global.cpu, &core_global.cycles);
core_global.rst_state = 0;
break;

case STATE_NMI:
core_nmi(&core_global.cpu, &core_global.cycles);
core_global.nmi_state = 0;
break;

case STATE_IRQ:
core_irq(&core_global.cpu, &core_global.cycles);
core_global.irq_state = 0;
break;

case STATE_NORMAL:
Expand Down

0 comments on commit 148907d

Please sign in to comment.