DOS2 disk routines from BASIC, should it work?

By lintweaker

Champion (307)

lintweaker의 아바타

29-08-2020, 17:08

I am trying to read a file using the DOS2 'open file handle', 'read from file handle' and 'close file handle' from BASIC (using assembly) by calling 0f37dh. So far I only get error messages like 214 (Directory not found) or 217 (Invalid path name). The path is correct, I have tried full path (e.g. 'c:\path\to\file.ext',0) or file name only 'file.ext',0 (changed to correct dir via chdir in BASIC).

I've used the same code successfully from DOS2. Should this work from BASIC?

Login or 등록 to post comments

By zeilemaker54

Champion (281)

zeilemaker54의 아바타

29-08-2020, 18:51

Yes, it should work. Keep in mind that datastructures must reside in page 2 or 3.

By lintweaker

Champion (307)

lintweaker의 아바타

29-08-2020, 19:43

These DOS2 functions (43h,48h and 45h) work without FCB. Code and data reside in page 2 and 3. Not sure why it is not working from BASIC.