Skip to content

Conversation

@donohoe00
Copy link
Contributor

The standard configurations for the 6300 Plus have drive A as a 1.2MB floppy, with either a hard drive or a 360K floppy as a secondary drive. One thing that's unique to the 6300 Plus is that port 0x65 is used for data rate control.

Since the FDC is on the motherboard, isa8_fdc_6300p_device is unique to the 6300 Plus... I'm wondering if it should go in a machine-specific file, instead of in fdc.cpp?

@rb6502
Copy link
Contributor

rb6502 commented Nov 26, 2025

I'd say just move this to the actual driver since it's on the motherboard. It's small enough that it can probably just go right in the driver, or you can add it as a separate device in mame/olivetti.

@donohoe00
Copy link
Contributor Author

OK, I did the latter - should be good to go.

@rb6502
Copy link
Contributor

rb6502 commented Nov 27, 2025

Almost there. For motherboard devices added via a slot mechanism, you can use set_fixed() to prevent the user from changing them. For the most directly applicable example, the Kaypro 16 PC luggable in pc.cpp does this to lock down the ISA slots it uses:

subdevice<isa8_slot_device>("isa1")->set_fixed(true);

@donohoe00
Copy link
Contributor Author

ISA8_SLOT(config, "mb2", 0, m_isabus, att6300p_mb_isa_devices, "fdc_6300p", true);

I thought that's what the last parameter was doing? If I change it to "false", I can change the device in the "Slot Devices" menu (well, it lets me choose between fdc_6300p or nothing, since there's only one option), otherwise the menu won't let me change it.

@galibert
Copy link
Member

galibert commented Dec 1, 2025

isa8_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&isa_tag, U &&opts, const char *dflt, bool fixed)

Yes, the last bool parameter is the value of "fixed".

Comment on lines +25 to +26
FLOPPY_CONNECTOR(config, "fdc:0", att6300p_floppies, "525hd", isa8_fdc_device::floppy_formats).enable_sound(true);
FLOPPY_CONNECTOR(config, "fdc:1", att6300p_floppies, "525dd", isa8_fdc_device::floppy_formats).enable_sound(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 525hd and 525dd a mistake or the sizes are really uneven by factory default? (I'd add a comment if latter)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the way they are by factory default, according to the User Guide. I can add a comment.

@donohoe00
Copy link
Contributor Author

I didn't mean to push that last commit to this PR/branch since it's unrelated. But the commit is good from my point of view. Let me know if I should back it out and submit a new PR for it. Sorry for the confusion.

@angelosa
Copy link
Member

angelosa commented Dec 1, 2025

I didn't mean to push that last commit to this PR/branch since it's unrelated. But the commit is good from my point of view. Let me know if I should back it out and submit a new PR for it. Sorry for the confusion.

Looks a fairly standard x86 A20 gate control. It's fine as long as it's mentioned in the PR OP message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants