home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
529a.lha
/
offset
/
offset.doc
next >
Wrap
Text File
|
1991-07-02
|
3KB
|
59 lines
Show offsets of functions from FD-files, inpired by lvo from Includes-2.0.
1991-04-20 E. Lundevall
This little program shows the offset of a function in its library, or vice
versa. It can mix offsets and function names and show all functions with a
certain string in them. It was inspired by a little utility called lvo.
Offset uses FD files for its devious purposes, and those must reside in a
directory which has FD: assigned to it. All fd files have names like
dos_lib.fd for dos.library, asl_lib.fd for asl.library etc.
Some commercial compilers might have these ones included. They can also be
found in the Native Developers Kit from CATS or the Extras 1.x disk you got
with your Amiga.
This program is written in Rexx, which might cause you a bit of trouble if
you're not running AmigaOS 2.0x, since you need ARexx to run it.
The fix for this is easy; wait for AmigaOS 2.0x and/or buy ARexx. You won't
regret it.
Now, let's see how offset is used.
Usage: offset library [ function | offset ][ function | offset ]...
Examples: (command first, result on the next line(s))
offset dos ParsePattern
$FCB8 -$348 -840 ParsePattern(pat,buf,buflen)(d1/d2/d3)
offset exec.library -684 CacheControl
$FD54 -$2AC -684 AllocVec(byteSize,requirements)(d0/d1)
$FD78 -$288 -648 CacheControl(cacheBits,cacheMask)(d0/d1)
offset intuition !gad
$FFD6 -$2A -42 AddGadget(window,gadget,position)(a0/a1,d0)
$FF52 -$AE -174 OffGadget(gadget,window,requester)(a0/a1/a2)
$FF46 -$BA -186 OnGadget(gadget,window,requester)(a0/a1/a2)
$FF22 -$DE -222 RefreshGadgets(gadgets,window,requester)(a0/a1/a2)
$FF1C -$E4 -228 RemoveGadget(window,gadget)(a0/a1)
$FE32 -$1CE -462 ActivateGadget(gadgets,window,requester)(a0/a1/a2)
$FDC6 -$23A -570 GadgetMouse(gadget,gInfo,mousePoint)(a0/a1/a2)
$FD6C -$294 -660 SetGadgetAttrsA(gadget,window,requester,tagList)(a0/a1/a2/a3)
offset graphics
<This will list all functions in graphics.library, too long to show>
The extensions ".library",".device" and ".resource" for a "library" name
can be omitted as shown above. It doesn't matter if the extension is really valid,
thus you can write dos.resource and get dos.library anyway.
The function name is not case sensitive. If '!' is used as a prefix for the name,
all function names containing that string will be listed. An offset value can be
any of the three formats used; $FEE0, -$120 and -288 would be equivalent for
example. Functions which are private are marked as '*private*'.
-Erik Lundevall
ludde@nada.kth.se
...!cbmvax!cbmehq!cbmswe!adder!ludde