[net.micro.amiga] "C" source to "fish" animation demo released to net.sources

bart@amiga.UUCP (Barry A. Whitebook) (03/05/86)

< eat this line - please! >

A demo program which runs an AnimOb in a double buffered screen with sequence
  cycled animation has been posted to net.sources. (1699 lines, 51717 chars)

This demo program was orginally written here at Commodore-Amiga by Catherine J.
Wagner and has been stripped down from 6 animation objects to 1 in the interest
of clarity.  It has been compiled, linked loaded and run under v1.1 software 
using Lattice C v3.03.  It works.

This source code is provided for non-commercial use only and no warranties,
express or implied are made for it by myself or by commodore-amiga.

here are the makefiles that were used to test this build locally:

/***************************************************************/
makefish
/***************************************************************/
stack 20000
execute make atest
execute make init
execute make start
execute make fish
execute atomize fish
execute link fish
echo "makefish: DONE..."

/***************************************************************/
fish.with
/***************************************************************/
from df1:lib/Lstartup.obj+*
df1:examples/atest.o+*
df1:examples/init.o+*
df1:examples/start.o+*
df1:examples/fish.o
library df1:lib/lc.lib+*
df1:lib/amiga.lib+*
df1:lib/debug.lib

/***************************************************************/
make
/***************************************************************/
.Key file
;           Compile a C program                       Version 1.02
failat 65535
if not exists df1:examples/<file$t1>.c
echo "File examples/<file$t1>.c does not exist.  Try again."
skip END
endif

copy df1:examples/<file$t1>.c ram:<file$t1>.c

if not exists ram:<file$t1>.c
echo "File <file$t1>.c not copied to ram: Error..."
skip END
endif

echo "-- compiling <file$t1>..."

df1:c/lc1 -oram: -idf1:include/ -idf1:include/lattice/ ram:<file$t1>
df1:c/lc2 -oram: ram:<file$t1>

delete ram:<file$t1>.c

if not exists ram:<file$t1>.o
echo "File ram:<file$t1>.o does not exist. Error..."
skip END
endif

copy ram:<file$t1>.o df1:examples/<file$t1>.o

if not exists df1:examples/<file$t1>.o
echo "File ram:<file$t1>.o not copied to df1:examples/
skip END
endif

delete ram:<file$t1>.o

LAB END
/***************************************************************/
link
/***************************************************************/
.Key file
;           Compile a C program                       Version 1.02
failat 65535
echo "-- Linking <file$t1>..."

df1:c/alink with <file$t1>.with to ram:<file$t1>

if not exists ram:<file$t1>
echo "Link failed: ERROR..."
skip END
endif

if exists df1:<file$t1>
delete df1:<file$t1>
endif

copy ram:<file$t1> df1:<file$t1>

if not exists df1:<file$t1>
echo "Could not copy ram:<file$t1> to df1:<files$t1>..."
skip END
endif

echo "-- done linking '<file$t1>'. --"
LAB END

/***************************************************************/
atomize
/***************************************************************/
.Key file
;           Atomizes a C program                       Version 1.02
failat 65535
if not exists df1:examples/<file$t1>.o
echo "File examples/<file$t1>.o does not exist.  Try again."
skip END
endif

copy df1:examples/<file$t1>.o ram:<file$t1>.o

if not exists ram:<file$t1>.o
echo "File <file$t1>.o not copied to ram: Error..."
skip END
endif

echo "-- atomizing <file$t1>..."

df1:c/atom ram:<file$t1>.o ram:<file$t1>.o.TMP -cdb -pc

if not exists ram:<file$t1>.o.TMP
echo "File ram:<file$t1>.o.TMP does not exist. Error..."
skip END
endif

delete df1:examples/<file$t1>.o

copy ram:<file$t1>.o.TMP df1:examples/<file$t1>.o

if not exists df1:examples/<file$t1>.o
echo "File ram:<file$t1>.o not copied to df1:examples/
copy ram:<file$t1>.o df1:examples/<file$t1>.o
skip END
endif

delete ram:<file$t1>.o

LAB END
/***************************************************************/

have fun!

bart