Mercurial > sdl-ios-xcode
changeset 987:d9f3b5bb7870
Do not use registers when not necessary
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Mon, 22 Nov 2004 20:36:59 +0000 |
parents | 952ec1ddcb58 |
children | 24b5c3ad4852 |
files | src/video/ataricommon/SDL_xbiosinterrupt.S |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_xbiosinterrupt.S Mon Nov 22 10:18:04 2004 +0000 +++ b/src/video/ataricommon/SDL_xbiosinterrupt.S Mon Nov 22 20:36:59 2004 +0000 @@ -113,7 +113,7 @@ .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 @@ 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,7 +152,7 @@ .ascii "LSDL" .comm oldjoystickvector,4*1 _SDL_AtariXbios_JoystickVector: - moveml d0/a1,sp@- + movel d0,sp@- /* New joystick state */ moveb a0@(1),d0 @@ -161,10 +160,9 @@ 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