MEGA65 / mega65-core

MEGA65 FPGA core
Other
241 stars 88 forks source link

Errors with physical floppy when no D81 image gets automounted on boot #767

Closed KiDraDragon closed 9 months ago

KiDraDragon commented 9 months ago

Test Environment (required)

Describe the bug When no D81 image gets automounted on boot (e.g. MEGA65.D81 is not present on the SD-Card), then there are errors with the physical floppy drive. When cold booting the MEGA65 and doing MOUNT, then HEADER"DDFLOPPY",I01 DOS throws 75,FORMAT ERROR,40,00. Additionally, when cold booting the MEGA65 and doing DIR a 73,MEGA65 CBDOS 920391,00,00 appears in red after the listing. When doing a cold boot, then MOUNT, DIR or LOAD"$",8and then HEADER"DDFLOPPY",I01, it works.

When a MEGA65.D81 image is present and gets automounted, the red message after the directory listing and the error after HEADER, do not appear and everything works.

To Reproduce Steps to reproduce the behavior: For HEADER error:

  1. Cold boot MEGA65 without any D81 automounting.
  2. Execute MOUNTwith a physical floppy inserted
  3. Execute HEADER"DDFLOPPY",I01

For red message after directory listing:

  1. Cold boot MEGA65 without any D81 automounting.
  2. Insert physical floppy into drive.
  3. Execute MOUNT
  4. Execute DIR

Expected behavior HEADER should just work and after DIR no red message should appear, no matter if a floppy image gets automounted on boot or not.

Screenshots 1 2 3

Additional context I tested this with the original physical drive that the MEGA65 shipped with and another, new-old-stock floppy of the same type (which works better in general).

johnwayner commented 9 months ago

FYI, this is a ROM issue -- not a core one. Basic wasn't fully mounting the internal drive.

lydon42 commented 9 months ago

Not a core issue, and #760 will address better HYPPO interface so ROM needs not to worry about mounting the physical drive it self.