Skip to content

Commit

Permalink
68k, minor debug fix for fame
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Jun 15, 2024
1 parent b72e9bb commit 93a1482
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cpu/fame/famec.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
#define ROR_33(A, C) (LSR_32(A, C) | LSL_32(A, 33-(C)))

#ifndef FAMEC_NO_GOTOS
#define NEXT do { \
#define NEXT { \
FETCH_WORD(Opcode); \
goto *JumpTable[Opcode]; \
}
Expand Down Expand Up @@ -799,6 +799,8 @@ int fm68k_emulate(M68K_CONTEXT *ctx, int cycles, fm68k_call_reason reason)
case fm68k_reason_emulate:
break;
}
PC = ctx->PC;
BasePC = ctx->BasePC;
#endif // FAMEC_NO_GOTOS

// won't emulate double fault
Expand Down Expand Up @@ -932,6 +934,10 @@ int fm68k_emulate(M68K_CONTEXT *ctx, int cycles, fm68k_call_reason reason)
famec_End:
ctx->sr = GET_SR;
ctx->pc = GET_PC;
#ifndef FAMEC_NO_GOTOS
ctx->PC = PC;
ctx->BasePC = BasePC;
#endif

ctx->execinfo &= ~M68K_RUNNING;

Expand Down

0 comments on commit 93a1482

Please sign in to comment.