Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!cynic!pevans From: pevans@cynic.wimsey.bc.ca (Phillip Evans) Newsgroups: comp.os.cpm Subject: Re: UUCP and CPM Plus Message-ID: Date: 20 Dec 90 22:37:22 GMT References: <1524@tharr.UUCP> Organization: Mad Artists' Techno-Hangout, Vancouver, Canada Lines: 22 pm111@tharr.UUCP (Paul Martin) writes: > In article ns@iddth2.id.dk (Nick Sandru (langt haar)) w > > >>What is the convention for the "true" file length byte in CPM Plus? > >>(It's set by setting flag f6' and putting the byte value in CR). > >>I assume it is the number of unused bytes in the last sector. Is this right > > > >It is the number of the _used_ bytes in the last 128-byte record. > > If that's so, is a value of zero in this place mean that the last block > contains 128 used bytes? The "unused bytes" scenario seems more natural... > > Clarification anyone? > The DR CP/M 3 manual says "This facility can identify THE LAST BYTE of the last record of the file." Whether DR counts beginning at 0 or at 1 is not stated. However, the value is set to 0 when the file is created and has a zero length. Maybe you have to look at the record count in this case to deduce what number DR starts with.