mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-05 02:31:12 +00:00
macsbug -- defect names after RTD
This commit is contained in:
parent
ab63801242
commit
486bc5001b
@ -562,15 +562,28 @@ void InstructionLogger()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opcode == 0x4E75 || opcode == 0x4ED0) // RTS or JMP (A0)
|
int mboffset = 0;
|
||||||
|
switch (opcode)
|
||||||
{
|
{
|
||||||
|
case 0x4E75: // rts
|
||||||
|
case 0x4ED0: // jmp (a0)
|
||||||
|
mboffset = 2;
|
||||||
|
break;
|
||||||
|
case 0x4E74: // rtd #
|
||||||
|
mboffset = 4;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mboffset) // RTS or JMP (A0)
|
||||||
|
{
|
||||||
|
pc += mboffset;
|
||||||
// check for MacsBug name after rts.
|
// check for MacsBug name after rts.
|
||||||
std::string s;
|
std::string s;
|
||||||
unsigned b = memoryReadByte(pc + 2);
|
unsigned b = memoryReadByte(pc);
|
||||||
if (b > 0x80 && b < 0xa0)
|
if (b > 0x80 && b < 0xa0)
|
||||||
{
|
{
|
||||||
b -= 0x80;
|
b -= 0x80;
|
||||||
pc += 3;
|
pc++;
|
||||||
s.reserve(b);
|
s.reserve(b);
|
||||||
for (unsigned i = 0; i < b; ++i)
|
for (unsigned i = 0; i < b; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user