•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileDsp_LoadProg()
Dsp_Reserve()
Dsp_ExecProg()                                                        XBIOS

Syntax

VOID Dsp_ExecProg( codeptr, codesize, ability )
char *codeptr;
LONG codesize;
WORD ability;

Function      Dsp_ExecProg() transfers a DSP program stored in binary
              format in memory to the DSP and executes it.

Opcode        109 (0x6D)

Availability  Available only when bit #3 of the '_SND' cookie is set.

Parameters    codeptr points to the start of the binary program in memory.
              codesize indicates the number of DSP words to transfer.
              ability indicates the program's unique ability code.

Binding       move.w   ability,-(sp)
              move.l   codesize,-(sp)
              pea      codeptr
              move.w   #$6D,-(sp)
              trap     #14
              lea      12(sp),sp

Comments      codesize should not exceed the amount of memory reserved by
              the Dsp_Reserve() call.

See Also      Dsp_LoadProg(), Dsp_Reserve()