•  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_DoBlock()
Dsp_BlkUnpacked()                                                     XBIOS

Syntax

VOID Dsp_BlkUnpacked( data_in, size_in, data_out, size_out )
LONG *data_in;
LONG size_in;
LONG *data_out;
LONG size_out;

Function      Dsp_BlkUnpacked() transfers data to the DSP from a longword
              array. Data processed by the running subroutine or program
              is returned.

Opcode        98 (0x62)

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

Parameters    data_in is a pointer to an array of LONGs from which data is
              transferred to the DSP. As many bytes are transferred from
              each LONG as there are bytes in a DSP WORD. For example, if
              Dsp_GetWordSize() returns 3, the lower three bytes of each
              LONG are transferred into each DSP WORD. size_in represents
              the number of LONGs in the array to transfer. data_out is
              a pointer to an array of LONGs size_out in length in which
              data sent from the DSP is returned.

Binding       move.l   size_out,-(sp)
              pea      data_out
              move.l   size_in,-(sp)
              pea      data_in
              move.w   #$62,-(sp)
              trap     #14
              lea      18(sp),sp

Caveats       This function only works with DSP's which return 4 or less
              from Dsp_GetWordSize(). In addition, no handshaking is
              performed with this call. Data which is sensitive to errors
              should use Dsp_BlkHandShake().

See Also      Dsp_DoBlock()