Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Reading Text With Pointers... Message-ID: <22358@well.sf.ca.us> Date: 31 Dec 90 03:17:27 GMT References: <50164@cornell.UUCP> Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 18 In article <50164@cornell.UUCP> wayner@kama.cs.cornell.edu (Peter Wayner) writes: >If I read in a file of text, each character fills a byte. The >problem is that the 68000 doesn't allow unalligned access, but >the 68020/30 does. What is the best way to pull of characters >one by one? Pulling the characters one by one is not a problem on the 68000. Byte access is always legal, alignment doesn't enter into it. The problme comes when you want to access Integer data that is not aligned on an even boundary. Ptr bufferPtr; ... nextChar := bufferPtr^; bufferPtr := bufferPtr + 1; for single char data. -- -- David Phillip Oster - At least the government doesn't make death worse. -- oster@well.sf.ca.us = {backbone}!well!oster