Skip to content

Commit

Permalink
Default to single-sided floppy disk at boot
Browse files Browse the repository at this point in the history
Like Atari TOS, until the actual disk geometry is read from the boot sector,
EmuTOS now assumes a single-sided disk.

This fixes a crash with bootable floppy disks created by "Multi TOS booter".

Thank you to Matthias Arndt for reporting this issue.
  • Loading branch information
czietz committed Dec 5, 2021
1 parent 0b57c78 commit 819011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bios/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static void flop_add_drive(WORD dev)
b->mediachange = MEDIACHANGE;
b->start = 0;
b->size = 0; /* unknown size */
b->geometry.sides = 2; /* default geometry of 3.5" DD */
b->geometry.sides = 1; /* default geometry of 3.5" 1S DD */
b->geometry.spt = 9;
b->unit = dev;
b->bpb.recsiz = SECTOR_SIZE;
Expand Down

0 comments on commit 819011e

Please sign in to comment.