Operation was confirmed with Arduino UNO R4.
Thank you for providing this very useful software.
I got an error when writing because of the missing () in line 226 of pxdisk_mega.ino.
Before fix
File dsk = SD.open(diskNames[device], O_READ | O_WRITE | O_CREAT);
After modification
File dsk = SD.open(diskNames[device], (O_READ | O_WRITE | O_CREAT));
Now it works.
Note that I can successfully create a text file to the A: drive using PIP.COM in PX4UTILS.IMG mounted on D:, though,
PIP A:HELLO.TXT=CON:.
For other drives (D:E:F:G:)
PIP E:HELLO.TXT=CON:
the following message appears and an error occurs.
BDOS ERR ON G: BAD SECTOR
The model is PX-4.
Thank you.
Translated with DeepL.com (free version)