Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Do not use registers when not necessary
- Loading branch information
Showing
with
6 additions
and
8 deletions.
-
+6
−8
src/video/ataricommon/SDL_xbiosinterrupt.S
|
@@ -113,7 +113,7 @@ no_restore_joystick: |
|
|
.ascii "LSDL" |
|
|
.comm oldmousevector,4*1 |
|
|
_SDL_AtariXbios_MouseVector: |
|
|
moveml d0/a1,sp@- |
|
|
movel d0,sp@- |
|
|
|
|
|
/* Mouse buttons */ |
|
|
moveb (a0),d0 |
|
@@ -131,10 +131,9 @@ _SDL_AtariXbios_MouseVector: |
|
|
addw d0,_SDL_AtariXbios_mousey |
|
|
|
|
|
/* Jump through old vector */ |
|
|
movel oldmousevector,a1 |
|
|
jsr (a1) |
|
|
movel sp@+,d0 |
|
|
|
|
|
moveml sp@+,d0/a1 |
|
|
movel oldmousevector,sp@- |
|
|
rts |
|
|
|
|
|
.data |
|
@@ -153,18 +152,17 @@ _SDL_AtariXbios_MouseVector: |
|
|
.ascii "LSDL" |
|
|
.comm oldjoystickvector,4*1 |
|
|
_SDL_AtariXbios_JoystickVector: |
|
|
moveml d0/a1,sp@- |
|
|
movel d0,sp@- |
|
|
|
|
|
/* New joystick state */ |
|
|
moveb a0@(1),d0 |
|
|
andw #0x8f,d0 |
|
|
movew d0,_SDL_AtariXbios_joystick |
|
|
|
|
|
/* Jump through old vector */ |
|
|
movel oldjoystickvector,a1 |
|
|
jsr (a1) |
|
|
movel sp@+,d0 |
|
|
|
|
|
moveml sp@+,d0/a1 |
|
|
movel oldjoystickvector,sp@- |
|
|
rts |
|
|
|
|
|
.data |
|
|