MSXPi: MSX-DOS driver development help needed

By ronivon

Expert (73)

ronivon의 아바타

09-03-2017, 20:49


I am developing MSX-DOS driver for the MSXPi interface.
I been trying to understand the relationship between these tow routines:

The docs for these routines are not very much helpful, and reading other drivers helped a little bit but I am still confused in how I use GETDPB to update the DPB with info about the new disk in the drive.

Anyone has gone through this, would give me some advice?
Appreciate, thanks

Login or 등록 to post comments

By st1mpy

Hero (531)

st1mpy의 아바타

10-03-2017, 02:24

I was reading a doc I found, I'm not sure if it contains good info but, it says things like dpb is updated when msx-dos is started and when the disk media is changed, and goes on to explain the details of 21 byte dpb. (the doc is in Japanese)

By ronivon

Expert (73)

ronivon의 아바타

10-03-2017, 09:21

This is in english, the better I could find:

The one you found has more details?

By Eugeny_Brychkov

Paragon (1151)

Eugeny_Brychkov의 아바타

24-03-2017, 20:45

In the course of disk access, ROM can call DSKCHG routine to see if media had been changed. If it was not changed, ROM reuses existing DPB. If DSKCHG says that media had been changed, then ROM calls GETDBP so that this routine reads the new media, and fills drive parameter block pointed by the disk-ROM so that disk-ROM starts using new media. What is being put into DPB is another story - either it is dummy data assuming that drive can only have some fixed media configuration, or driver really reads sector 0 (boot sector), or MBR and then boot sector (in case of HDD) to identify configuration and calculate required valued for DPB.

By ronivon

Expert (73)

ronivon의 아바타

31-03-2017, 13:03

Thanks Eugeny, valuable information.

I am ignoring the DPB routines, and can boot MSXDOS1 from usb stick, on a 16MB partition.
Now I need to enable DPB functions to allow full access to the USB file system in the partition.

Any helpful resource you may know or have, on how to get/calculate DPB for a hdd partition?