Skip to content

Commit

Permalink
Reserve space in system buffer to call XBIOS from interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 20, 2005
1 parent b821b6a commit 14d69a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/audio/mint/SDL_mintaudio_it.S
Expand Up @@ -53,6 +53,9 @@
- Then we swap the buffers
*/

#define savptr 0x4a2
#define savamt 0x46

/*--- GSXB interrupt vector ---*/

.text
Expand Down Expand Up @@ -130,6 +133,9 @@ _SDL_MintAudio_XbiosInterrupt:
/* Callback */
jsr _SDL_MintAudio_Callback

/* Reserve space for registers */
subl #savamt,savptr

/* Set new buffer */

moveq #0,d0
Expand All @@ -149,6 +155,9 @@ _SDL_MintAudio_XbiosInterrupt:
trap #14
lea sp@(12),sp

/* Restore registers space */
addl #savamt,savptr

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

clrw _SDL_MintAudio_mutex
Expand Down

0 comments on commit 14d69a6

Please sign in to comment.