1 |
|
/* |
2 |
|
* adb.cpp - ADB emulation (mouse/keyboard) |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
372 |
|
// Update mouse position (absolute) |
373 |
|
if (mx != old_mouse_x || my != old_mouse_y) { |
374 |
|
#ifdef POWERPC_ROM |
375 |
< |
static const uint16 proc[] = { |
376 |
< |
0x2f08, // move.l a0,-(sp) |
377 |
< |
0x2f00, // move.l d0,-(sp) |
378 |
< |
0x2f01, // move.l d1,-(sp) |
379 |
< |
0x7001, // moveq #1,d0 (MoveTo) |
380 |
< |
0xaadb, // CursorDeviceDispatch |
381 |
< |
M68K_RTS |
375 |
> |
static const uint8 proc[] = { |
376 |
> |
0x2f, 0x08, // move.l a0,-(sp) |
377 |
> |
0x2f, 0x00, // move.l d0,-(sp) |
378 |
> |
0x2f, 0x01, // move.l d1,-(sp) |
379 |
> |
0x70, 0x01, // moveq #1,d0 (MoveTo) |
380 |
> |
0xaa, 0xdb, // CursorDeviceDispatch |
381 |
> |
M68K_RTS >> 8, M68K_RTS & 0xff |
382 |
|
}; |
383 |
|
r.a[0] = ReadMacInt32(mouse_base + 4); |
384 |
|
r.d[0] = mx; |