Implement Direct Addressing mode for SheepShaver.

This commit is contained in:
gbeauche 2004-11-13 14:28:49 +00:00
parent 3ace37f4eb
commit 7533cac203
2 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ void ADBInterrupt(void)
r.a[0] = ReadMacInt32(mouse_base + 4);
r.d[0] = mx;
r.d[1] = my;
Execute68k((uint32)proc, &r);
Execute68k(Host2MacAddr((uint8 *)proc), &r);
#else
WriteMacInt16(0x82a, mx);
WriteMacInt16(0x828, my);

View File

@ -633,7 +633,7 @@ int16 SoundInStatus(uint32 pb, uint32 dce)
0x70, 0x01, // moveq #1,d0
M68K_RTS >> 8, M68K_RTS & 0xff
};
Execute68k((uint32)proc, &r);
Execute68k(Host2MacAddr((uint8 *)proc), &r);
if (r.d[0]) {
param[0] = 4; // Length of returned data
param[1] = r.a[2]; // Handle to icon suite