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

  1. Path: grafix.xs4all.nl!john.hendrikx
  2. Date: Wed, 07 Feb 96 21:14:54 GMT+1
  3. Newsgroups: comp.sys.amiga.programmer
  4. Distribution: world
  5. Subject: Re: ds.l
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=iso-8859-1
  8. Content-Transfer-Encoding: 8bit
  9. From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
  10. Message-ID: <john.hendrikx.4co1@grafix.xs4all.nl>
  11. Organization: Grafix Attack BBS Holland
  12.  
  13. In a message of 06 Feb 96 Grzegorz Calkowski wrote to All:
  14.  
  15.  GC>> Patrik Nilsson (patrik.nilsson@mbox3.swipnet.se) wrote:When using
  16.  GC>> FileInfoBlock it must be long word aligned.Q: In asm you have 'ds.l'.
  17.  GC>> Is there any equal in C?
  18.  
  19.  GC> You're wrong!! FIB must be on 8 bytes boundary, not 4 bytes! The best
  20.  GC> way to achieve that is to use AllocDosObject(), which returns an
  21.  GC> allocated & initialized fib for you.
  22.  
  23. You're the one who's wrong.  FIBs should be located at 4 byte boundaries.  The
  24. reason for this is simple, as a FIB has to be referenced to with BPTRs, which
  25. can only point to LONG-aligned addresses.
  26.  
  27. Grtz John
  28.  
  29. -----------------------------------------------------------------------
  30.  John.Hendrikx@grafix.xs4all.nl   TextDemo/FastView/Etc... development
  31. -----------------------------------------------------------------------
  32. -- Via Xenolink 1.981, XenolinkUUCP 1.1
  33.