home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,410 of 2,978   
   Bart to All   
   Re: Bart /Vol-Drive   
   03 Mar 07 19:41:56   
   
   From: broersma.juda_ANTISPAM_@tiscali.nl   
      
   Op Sat, 03 Mar 2007 10:53:27 GMT schreef nobody   
   :   
      
   >Hallo Bart,   
   >   
   >just tried it: In naked DOS I get the same error.( does'nt   
   >global_dos_alloc for accessing dos-memory only work in protected   
   >mode?). The author of the DOS70 routines, where I got this interrupt   
   >from, states, that they will only work with DOS7  AND windows   
   >running.   
   > I use it in win 98SE DOSbox, here no Extra needed.   
   >   
   >Robert   
      
   Well WinMe says it DOS 8.0 ...   
      
   this peace of code   
      
   var reg: Registers;   
     with Reg do   
     begin   
       ah := $44;   
       al := $0d;   
       bl := Ord(UpCase(Drive)) - Ord('A') + 1;   
       ch := $08;   
       cl := $6f;   
       ds := seg(buf);   
       dx := ofs(buf);   
       flags := 0;   
       msdos(reg);   
       write(Drive,': ');   
       if (flags and fcarry) > 0 then   
       begin   
         if ax = 1 then write('Illegal function '); else   
         if ax = 2 then write('Invalid drive '); else   
         write('Unknown error');   
       end;   
      
   throws me an "Unknown error" for every drive I've got, no matter if I   
   run it from a WinMe Dosbox or plain DOS.   
      
   If I set CL to $60 then it gives me drive information for existing   
   drives in plain DOS and Dosbox, but in a Dosbox it throws "Unknown   
   error", with AX set to $0F, for a non valid drive letter, when it   
   should throw "Invalid drive" error, as it in fact does in plain DOS.   
   (compiled in TP 6.0)   
      
   I'll see what it does in Win98 (have no SE available here) and report   
   back.   
      
   Bart   
   --   
   Bart Broersma   
   broersma.juda_ANTISPAM_@tiscali.nl   
   (ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca