ADOUBLE.C@ ||DOUBLE C TEXTmdosTA DOUBLE.LOD@ Ʊ2Ʊ2DOUBLE LODTEXTmdos A DOUBLE.S56@ jԬjDOUBLE S56TEXTmdos 'A DOUBLE.TTP@ FFDOUBLE TTPTEXTmdos -0 LATTICE.EXT@ LATTICE EXT%OUTTOLOD@ OUTTOLOD ; PROSPERO.EXT@ PROSPEROEXT? TURBPURE.EXT@ TURBPUREEXT/* This file accompanies the fifth article of the series on DSP */ /* programming in ST Format issue 78 by Paul A Hills. It is the */ /* copyright of Future Publishing. */ /* This is the 'C' side of the doubler program. It loads the DSP */ /* into memory, runs it, then sends it a sample value. */ #include #include #include /* Reserve plenty of space for program */ #define SIZE 5000 char buffer[SIZE]; void main(void) { int ability, wordsize; long Xavailable, Yavailable, err; long value, doubled; /* Check on word size (if 0 there is no DSP, or old Falcon) */ wordsize = Dsp_GetWordSize(); if (wordsize == 0) { printf("You've either got an old Falcon (see comments in DSPLIB.S) o