home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 529a.lha / offset / offset.doc next >
Text File  |  1991-07-02  |  3KB  |  59 lines

  1. Show offsets of functions from FD-files, inpired by lvo from Includes-2.0.
  2.  
  3.             1991-04-20    E. Lundevall
  4.  
  5. This little program shows the offset of a function in its library, or vice
  6. versa. It can mix offsets and function names and show all functions with a
  7. certain string in them. It was inspired by a little utility called lvo.
  8.  
  9. Offset uses FD files for its devious purposes, and those must reside in a
  10. directory which has FD: assigned to it. All fd files have names like
  11. dos_lib.fd for dos.library, asl_lib.fd for asl.library etc.
  12. Some commercial compilers might have these ones included. They can also be
  13. found in the Native Developers Kit from CATS or the Extras 1.x disk you got
  14. with your Amiga.
  15. This program is written in Rexx, which might cause you a bit of trouble if
  16. you're not running AmigaOS 2.0x, since you need ARexx to run it.
  17. The fix for this is easy; wait for AmigaOS 2.0x and/or buy ARexx. You won't
  18. regret it.
  19. Now, let's see how offset is used.
  20.  
  21. Usage: offset library [ function | offset ][ function | offset ]...
  22.  
  23. Examples: (command first, result on the next line(s))
  24.  
  25. offset dos ParsePattern
  26. $FCB8 -$348 -840 ParsePattern(pat,buf,buflen)(d1/d2/d3)
  27.  
  28. offset exec.library -684 CacheControl
  29. $FD54 -$2AC -684 AllocVec(byteSize,requirements)(d0/d1)
  30. $FD78 -$288 -648 CacheControl(cacheBits,cacheMask)(d0/d1)
  31.  
  32. offset intuition !gad
  33. $FFD6 -$2A -42 AddGadget(window,gadget,position)(a0/a1,d0)
  34. $FF52 -$AE -174 OffGadget(gadget,window,requester)(a0/a1/a2)
  35. $FF46 -$BA -186 OnGadget(gadget,window,requester)(a0/a1/a2)
  36. $FF22 -$DE -222 RefreshGadgets(gadgets,window,requester)(a0/a1/a2)
  37. $FF1C -$E4 -228 RemoveGadget(window,gadget)(a0/a1)
  38. $FE32 -$1CE -462 ActivateGadget(gadgets,window,requester)(a0/a1/a2)
  39. $FDC6 -$23A -570 GadgetMouse(gadget,gInfo,mousePoint)(a0/a1/a2)
  40. $FD6C -$294 -660 SetGadgetAttrsA(gadget,window,requester,tagList)(a0/a1/a2/a3)
  41.  
  42. offset graphics
  43. <This will list all functions in graphics.library, too long to show>
  44.  
  45. The extensions ".library",".device" and ".resource" for a "library" name
  46. can be omitted as shown above. It doesn't matter if the extension is really valid,
  47. thus you can write dos.resource and get dos.library anyway.
  48. The function name is not case sensitive. If '!' is used as a prefix for the name,
  49. all function names containing that string will be listed. An offset value can be
  50. any of the three formats used; $FEE0, -$120 and -288 would be equivalent for
  51. example. Functions which are private are marked as '*private*'.
  52.  
  53. -Erik Lundevall
  54.  
  55. ludde@nada.kth.se
  56. ...!cbmvax!cbmehq!cbmswe!adder!ludde
  57.  
  58.  
  59.