home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1516 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: norconnect.no!not-for-mail
  2. From: kenneth@norconnect.no (Kenneth C. Nilsen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: How works SetFunction ?
  5. Date: 20 Jan 1996 06:52:57 +0100
  6. Organization: NorConnect Internet Services AS
  7. Message-ID: <983.6593T392T1297@norconnect.no>
  8. References: <30ff2a88@beachyhd.demon.co.uk>
  9. NNTP-Posting-Host: norconnect.no
  10. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  11.  
  12.  UV>>>>   oldfunc=SetFunction(library,oldFuncOffset,newFuncPtr)
  13.  UV>>>>   what is oldFuncOffset?
  14. > >> It is the offset in the library that you would jump to (in assembler) to
  15. > >> call the library function. For example, the Open() function in
  16. > >> dos.library has an offset of -30.
  17.  KCN>> No no, the oldFuncOffset is the actual pointer to the routine code of
  18.  
  19. >Isn't this what I said..? The constant "_LVOOpenWindowTagList" is set as
  20. >-606. So the instruction "move.l #_LVOOpenWindowTagList,a0" puts the value
  21. >-606 in to a0 (just like I said to put -30 in a0 for dos.library/Open()).
  22.  
  23. >What's the difference?
  24.  
  25. Sorry, my fault. I was mixing the oldFunc and oldFuncOffset in the hurry. I
  26. replied to the oldFunc=, but noticed that he was asking about oldFuncOffset..
  27.  
  28.  
  29. ---
  30. CREATIVE LINKS                       __     Kenneth C. Nilsen
  31. http://www.norconnect.no/~kenneth   /_/\    e-mail: kenneth@norconnect.no
  32. "Everything you want"               \_\/    Software & MultiMedia developer
  33.