Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!eris!bryce From: bryce@eris (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: LVOs and SetFunction Message-ID: <7407@agate.BERKELEY.EDU> Date: 6 Mar 88 05:33:54 GMT References: <5136@pyr.gatech.EDU> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 47 In article <5136@pyr.gatech.EDU> davidc%yak@gatech.edu (Dave Corbin) writes: >First off, where do the LVOs come from? Is there some file (I hope) with them >defined? Where does one get this file? The ultimate source of everything is the ".fd" files. These contains the definitions from which all others can be built. They are not *directly* useable. Lattice C V4.0 comes with the .fds, and they are also available from CATS. (Some CATS person should post the catalog of CATS offerings, BTW). The Library Vector Offsets (LVOs) are also stored in the amiga.lib library, and referenced indirectly: XREF _LVODeleteLayer move.w #_LVODeleteLayer,d0 For assembly language use, my "small.lib" is much better, since it contains *only* the LVOs and not a 70K of other junk. (See fish #72 or #92). Blink has a bug that Gurus on this file, but you can get arround this by not telling Blink that it is really a library. For getting a neat printed reference chart, look in the comp.source.amiga archives for "library_referencer". Compile it. Cd to the fd.files directory and execute it. This will show the LVO offsets in a nice, readable way. >Second. I want to start do some mucking with SetFunction. I understand the >principals of how to use it, but I'm not a real assembly-jock. Does anyone >have a nice example(entire program) that just does one simple stupid >SetFunction. >If it is mostly in C, I'd be even happier. C and SetFunction() don't mix well. You need to at least write an assebly stub for the program you are SetFunction()ing. The comp.sources.amiga archives have "Cancel!", an assembly program I wrote that uses SetFunction. (Cancel! will reboot the machine if a Guru occurs while you are gone, and Cancel any requesters that show up). |\_/| . ACK!, NAK!, EOT!, SOH! {O_o} . Bryce Nesbitt (") BIX: mleeds (temporarily) U USENET: bryce@eris.berkeley.EDU -or- ucbvax!eris!bryce