Skip to content

Commit

Permalink
Save all registers on interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 17, 2005
1 parent 58d69ac commit b05392b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/audio/mint/SDL_mintaudio_it.S
Expand Up @@ -66,7 +66,7 @@ _SDL_MintAudio_GsxbInterrupt:
/* Swap buffers */
eorw #1,_SDL_MintAudio_numbuf

moveml d0-d2/a0-a2,sp@-
moveml d0-d7/a0-a6,sp@-

/* Callback */
jsr _SDL_MintAudio_Callback
Expand All @@ -90,7 +90,7 @@ _SDL_MintAudio_GsxbInterrupt:
trap #14
lea sp@(12),sp

moveml sp@+,d0-d2/a0-a2
moveml sp@+,d0-d7/a0-a6

clrw _SDL_MintAudio_mutex
_SDL_MintAudio_EmptyGsxbInterrupt:
Expand Down Expand Up @@ -125,7 +125,7 @@ _SDL_MintAudio_XbiosInterrupt:
/* Swap buffers */
eorw #1,_SDL_MintAudio_numbuf

moveml d0-d2/a0-a2,sp@-
moveml d0-d7/a0-a6,sp@-

/* Callback */
jsr _SDL_MintAudio_Callback
Expand All @@ -149,7 +149,7 @@ _SDL_MintAudio_XbiosInterrupt:
trap #14
lea sp@(12),sp

moveml sp@+,d0-d2/a0-a2
moveml sp@+,d0-d7/a0-a6

clrw _SDL_MintAudio_mutex
SDL_MintAudio_XbiosEnd:
Expand All @@ -173,7 +173,7 @@ _SDL_MintAudio_Dma8Interrupt:
/* Swap buffers */
eorw #1,_SDL_MintAudio_numbuf

moveml d0-d1/a0-a1,sp@-
moveml d0-d7/a0-a6,sp@-

/* Callback */
jsr _SDL_MintAudio_Callback
Expand Down Expand Up @@ -205,7 +205,7 @@ _SDL_MintAudio_Dma8Interrupt:
rorl #8,d1
moveb d1,a0@(0x0f)

moveml sp@+,d0-d1/a0-a1
moveml sp@+,d0-d7/a0-a6

clrw _SDL_MintAudio_mutex
SDL_MintAudio_Dma8End:
Expand All @@ -229,7 +229,7 @@ _SDL_MintAudio_StfaInterrupt:
/* Swap buffers */
eorw #1,_SDL_MintAudio_numbuf

moveml d0-d1/a0-a1,sp@-
moveml d0-d7/a0-a6,sp@-

/* Callback */
jsr _SDL_MintAudio_Callback
Expand All @@ -249,7 +249,7 @@ _SDL_MintAudio_StfaInterrupt:
addl _SDL_MintAudio_audiosize,d1
movel d1,a1@(STFA_SOUND_END)

moveml sp@+,d0-d1/a0-a1
moveml sp@+,d0-d7/a0-a6

clrw _SDL_MintAudio_mutex
SDL_MintAudio_StfaEnd:
Expand Down

0 comments on commit b05392b

Please sign in to comment.