<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 30 May 1981 (Satu:00rday) 2033-EDT
From   : PLATTS@WHARTON-10 (Steve Platt)
Subject: Search first/next question

  Concerning the problems using search first/next to muck
around with files...  I spent some time around 4 or 5 years ago reading
a disassembled version of the CPM 1.4 BDOS, and as I remember it:
  Search First was used to initialize a counter into the directory
       area, and to find the first occurance of a ambiguous filename.
  Search next just kept up the search without reinitialization.
 
  As CP/M would use the current DMA area for directory storage, and
not touch that counter elsewise, as long as you don't mess up
the DMA area (by perhaps switching DMA areas for other IO, then switching
back), you'd be OK using other BDOS calls.  But if you mess up the
current DMA area, since the next search continues within the current block
(in all likelyhood, since directory entries are stored 4 per sector),
it'll get all confused when looking at "smashed" filenames (FCB's)
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>