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

  1. Path: sable.ox.ac.uk!worc0223
  2. From: worc0223@sable.ox.ac.uk (Benjamin Hutchings)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ds.l
  5. Date: 7 Feb 1996 21:10:15 GMT
  6. Organization: Oxford University, England
  7. Message-ID: <4fb4fn$3dr@news.ox.ac.uk>
  8. References: <497.6609T1129T586@mbox3.swipnet.se> <4f7j1k$dfs@helios.cto.us.edu.pl>
  9. NNTP-Posting-Host: sable.ox.ac.uk
  10.  
  11. In article <4f7j1k$dfs@helios.cto.us.edu.pl>,
  12. Grzegorz Calkowski <calkowsk@usctoux1.cto.us.edu.pl> wrote:
  13. >Patrik Nilsson (patrik.nilsson@mbox3.swipnet.se) wrote:
  14. >: When using FileInfoBlock it must be long word aligned.
  15. >: Q: In asm you have 'ds.l'. Is there any equal in C?
  16. >
  17. >You're wrong!! FIB must be on 8 bytes boundary, not 4 bytes! The best way
  18. >to achieve that is to use AllocDosObject(), which returns an allocated &
  19. >initialized fib for you.
  20.  
  21. Go on then, genius. Explain to us all exactly why we need to align our
  22. FileInfoBlocks on 8-byte boundaries. I suppose it is because BPTRs are
  23. shifted right 3 places from APTRs, right? Sort your facts out.
  24. -- 
  25. --
  26. Ben Hutchings, student. Finger me on worc0223@sable.ox.ac.uk for various info.
  27. email: benjamin.hutchings@worc.ox.ac.uk  WWW: http://sable.ox.ac.uk/~worc0223/
  28. Users of the world unite! You have nothing to lose but your Micro$oft software
  29.