mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-15 22:04:44 +00:00
Implement Direct Addressing mode for SheepShaver.
This commit is contained in:
parent
3ace37f4eb
commit
7533cac203
@ -388,7 +388,7 @@ void ADBInterrupt(void)
|
|||||||
r.a[0] = ReadMacInt32(mouse_base + 4);
|
r.a[0] = ReadMacInt32(mouse_base + 4);
|
||||||
r.d[0] = mx;
|
r.d[0] = mx;
|
||||||
r.d[1] = my;
|
r.d[1] = my;
|
||||||
Execute68k((uint32)proc, &r);
|
Execute68k(Host2MacAddr((uint8 *)proc), &r);
|
||||||
#else
|
#else
|
||||||
WriteMacInt16(0x82a, mx);
|
WriteMacInt16(0x82a, mx);
|
||||||
WriteMacInt16(0x828, my);
|
WriteMacInt16(0x828, my);
|
||||||
|
@ -633,7 +633,7 @@ int16 SoundInStatus(uint32 pb, uint32 dce)
|
|||||||
0x70, 0x01, // moveq #1,d0
|
0x70, 0x01, // moveq #1,d0
|
||||||
M68K_RTS >> 8, M68K_RTS & 0xff
|
M68K_RTS >> 8, M68K_RTS & 0xff
|
||||||
};
|
};
|
||||||
Execute68k((uint32)proc, &r);
|
Execute68k(Host2MacAddr((uint8 *)proc), &r);
|
||||||
if (r.d[0]) {
|
if (r.d[0]) {
|
||||||
param[0] = 4; // Length of returned data
|
param[0] = 4; // Length of returned data
|
||||||
param[1] = r.a[2]; // Handle to icon suite
|
param[1] = r.a[2]; // Handle to icon suite
|
||||||
|
Loading…
Reference in New Issue
Block a user