mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-09 13:30:34 +00:00
fix bug with RTD instruction (wasn't actually returning)
This commit is contained in:
parent
4e247a0c46
commit
ab63801242
@ -1909,6 +1909,9 @@ static void cpuReset()
|
|||||||
static void cpuRtd()
|
static void cpuRtd()
|
||||||
{
|
{
|
||||||
ULO displacement = cpuGetNextWordSignExt();
|
ULO displacement = cpuGetNextWordSignExt();
|
||||||
|
|
||||||
|
cpuInitializeFromNewPC(memoryReadLong(cpuGetAReg(7)));
|
||||||
|
|
||||||
cpuSetAReg(7, cpuGetAReg(7) + 4 + displacement);
|
cpuSetAReg(7, cpuGetAReg(7) + 4 + displacement);
|
||||||
cpuSetInstructionTime(4);
|
cpuSetInstructionTime(4);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user