Author: red (04-168.026.popsite.net)
Date: 01-15-2002 02:35
elliot,
check out this site:
e-www.motorola.com/collateral/DSPFAQ1618_56000.zip
motorola's site at e-www.motoral.com
this zip (Dr Bubs DSP examples) contains a full-duplex ADPCM routine, that with slight modification (as detailed in the .hlp file) can run realtime. Its ready to assemble and just need 68030 support code to set up the SDMA :)
MOVE AB,X?
that's not a do-able instruction.
A and B are 56bits each so they would be too large to move into X, IF you could do such a thing. However X can not be the destination of a register to register move. You can only do a long memory move to x (or y).
DSP is much more difficult than 68K because its instruction set is very limited. It doesn't have nearly as many addressing modes and lacks real general purpose registers (those that can be used as an address, or data). But the DSP is good at doing repetative, assembly line, types of operations and really kicks ass here. You can achieve 48 Million ops per second on a stock falcon (compared to the ~2-4 Mops of the 16mhz 68030!). So good DSP code is rewarding, though hard to look at!
-red
|