Skip to content
Permalink
Browse files

Do not use registers when not necessary

  • Loading branch information
pmandin committed Nov 22, 2004
1 parent f322521 commit e1acab172f2638d79f9f735475c6e2e98bdb7595
Showing with 6 additions and 8 deletions.
  1. +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

0 comments on commit e1acab1

Please sign in to comment.