mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-20 01:29:27 +00:00
Tweak - Now only remove Disk][ f/w's track stepping delay in *enhanced* disk mode
- Additionally fix the ADC chksum for "The CIA Files"
This commit is contained in:
parent
6e24203ad8
commit
7ee8d10fd5
|
@ -759,11 +759,18 @@ void DiskLoadRom(LPBYTE pCxRomPeripheral, UINT uSlot)
|
|||
|
||||
memcpy(pCxRomPeripheral + uSlot*APPLE_SLOT_SIZE, pData, DISK2_FW_SIZE);
|
||||
|
||||
// TODO/FIXME: HACK! REMOVE A WAIT ROUTINE FROM THE DISK CONTROLLER'S FIRMWARE
|
||||
if (enhancedisk)
|
||||
{
|
||||
// Disable the track stepping delay in the Disk II controller firmware
|
||||
*(pCxRomPeripheral + (uSlot*APPLE_SLOT_SIZE) + 0x4C) = 0xA9;
|
||||
*(pCxRomPeripheral + (uSlot*APPLE_SLOT_SIZE) + 0x4D) = 0x00;
|
||||
*(pCxRomPeripheral + (uSlot*APPLE_SLOT_SIZE) + 0x4E) = 0xEA;
|
||||
|
||||
// The following maintains the firmware's ADC checksum (used by "The CIA Files")
|
||||
// Correcting for both ADC and EOR checksums is not possible in this case.
|
||||
*(pCxRomPeripheral + (uSlot*APPLE_SLOT_SIZE) + 0x4B) = 0x87; // was 0x56
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
RegisterIoHandler(uSlot, Disk_IORead, Disk_IOWrite, NULL, NULL, NULL, NULL);
|
||||
|
|
Loading…
Reference in New Issue
Block a user