Path: utzoo!utgpu!watmath!clyde!att!rutgers!rochester!uhura.cc.rochester.edu!sunybcs!bingvaxu!leah!itsgw!steinmetz!uunet!wucs1!wuphys!lel
From: lel@wuphys.UUCP (Lyle E. Levine)
Newsgroups: comp.sys.amiga.tech
Subject: Re: IFF.LIBRARY
Message-ID: <587@wuphys.UUCP>
Date: 5 Dec 88 03:20:41 GMT
References: <62827UH2@PSUVM>
Reply-To: lel@wuphys.UUCP (Lyle E. Levine)
Organization: Physics Dept., Washington U. in St. Louis
Lines: 43

In article <62827UH2@PSUVM> UH2@PSUVM.BITNET (Lee Sailer) writes:
>I will cede to Leo that the recently distributed iff.library is not
>the ultimate word on iff, but it would do exacly what I need IF I used
>Manx and not Lattice 4.01.  So, I am gonna try to Lattice-ify it.
>
>      Will the lattice supplied asm handle that simple piece of asm source,
>or do I have to change some of the mnemonics, or add some magic at the
>beginning or end, or ???
>
Sorry I took so long on this one. A two week vacation can do wonders
for generating a huge backlog of USENET articles!  The easiest way
to Lattice-ify this stuff is to replace the #asm code with some
Lattice #pragma statements.  The correct statements are:

#pragma libcall IFFBase OpenIFF 1e 801
#pragma libcall IFFBase CloseIFF 24 901
#pragma libcall IFFBase FindChunk 2a 0902
#pragma libcall IFFBase GetBMHD 30 901
#pragma libcall IFFBase GetColorTab 36 8902
#pragma libcall IFFBase DecodePic 3c 8902
#pragma libcall IFFBase SaveBitMap 42 0A9804
#pragma libcall IFFBase SaveClip 48 43210A9808
#pragma libcall IFFBase IffError 4e 00
#pragma libcall IFFBase GetViewModes 54 901

>                        thanks

You're very welcome.    :^)

P.S.  Has anyone gotten FindChunk() to work?  If so, how about a
witto hint?  

P.P.S. The IFF loader is FAST!!!


==========
IBM is a Division of Sirius Cybernetics Corporation
"their fundamental design flaws are completely hidden by their
superficial design flaws."  
			- "So Long And Thanks For All The Fish"

Lyle Levine: Paths -> ihnp4!wuphys!lel       Best way: (314)889-6379
		      uunet!wucs!wuphys!lel