377 |
|
// Update mouse position (absolute) |
378 |
|
if (mx != old_mouse_x || my != old_mouse_y) { |
379 |
|
#ifdef POWERPC_ROM |
380 |
< |
static const uint8 proc[] = { |
381 |
< |
0x2f, 0x08, // move.l a0,-(sp) |
382 |
< |
0x2f, 0x00, // move.l d0,-(sp) |
383 |
< |
0x2f, 0x01, // move.l d1,-(sp) |
384 |
< |
0x70, 0x01, // moveq #1,d0 (MoveTo) |
385 |
< |
0xaa, 0xdb, // CursorDeviceDispatch |
386 |
< |
M68K_RTS >> 8, M68K_RTS & 0xff |
380 |
> |
static const uint16 proc[] = { |
381 |
> |
PW(0x2f08), // move.l a0,-(sp) |
382 |
> |
PW(0x2f00), // move.l d0,-(sp) |
383 |
> |
PW(0x2f01), // move.l d1,-(sp) |
384 |
> |
PW(0x7001), // moveq #1,d0 (MoveTo) |
385 |
> |
PW(0xaadb), // CursorDeviceDispatch |
386 |
> |
PW(M68K_RTS) |
387 |
|
}; |
388 |
|
r.a[0] = ReadMacInt32(mouse_base + 4); |
389 |
|
r.d[0] = mx; |