Skip to content

Commit

Permalink
This is Moira v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Apr 22, 2020
1 parent 755984e commit 31832b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Moira/MoiraDataflow_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ Moira::jumpToVector(int nr)
// Update the program counter
reg.pc = readM<Long>(4 * nr);

// Align the exception pointer to an even address
// Note: This is almost certainly wrong.
// TODO: Find out what the real CPU is doing here
if (!MIMIC_MUSASHI) reg.pc &= ~1;

// Update the prefetch queue
queue.ird = readM<Word>(reg.pc);
sync(2);
Expand Down

0 comments on commit 31832b9

Please sign in to comment.