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