Ignore:
Timestamp:
Jun 10, 2021, 4:56:34 PM (13 months ago)
Author:
krille_n_
Message:

Changes:

  • BIOSDRVS should now build again (broke in r613).
  • Removed the NO_ATAID_CORRECTION define from the Tiny build.
  • Added a new configuration option to skip detection of slave drives.
  • Made FLASH_SIGNATURE 2 bytes shorter to free up ROM space.
  • "Auto Configure" in XTIDECFG should now detect if running on an Olivetti M24, AT&T PC6300, Xerox 6060 or Logabax Persona 1600 and automatically select the fastest compatible transfer mode/device type for any IDE controllers found in the system.
  • Cleaned out some duplicate/unused definitions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm

    r607 r614  
    475475;--------------------------------------------------------------------
    476476.EnableOrDisableSerial:
    477     mov     bx, g_MenuitemIdeControllerSerialBaud
    478     call    DisableMenuitemFromCSBX
    479 
    480     mov     bx, g_MenuitemIdeControllerSerialCOM
    481     call    DisableMenuitemFromCSBX
    482 
    483     mov     bx, g_MenuitemIdeControllerSerialPort
    484     call    DisableMenuitemFromCSBX
    485 
    486477    mov     bx, [g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
    487478    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    488479    cmp     al, DEVICE_SERIAL_PORT
    489     jne     SHORT .DisableAllSerial
    490 
    491     mov     bx, g_MenuitemIdeControllerSerialCOM
    492     call    EnableMenuitemFromCSBX
    493 
    494     mov     bx, g_MenuitemIdeControllerSerialBaud
    495     call    EnableMenuitemFromCSBX
    496 
     480    mov     ax, DisableMenuitemFromCSBX
     481    jne     SHORT .DisableSerialControllerMenuitems
     482    mov     ax, EnableMenuitemFromCSBX
     483    call    .EnableSerialControllerMenuitems
    497484    mov     bx, [g_MenuitemIdeControllerSerialCOM+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
    498485    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
     486    cmp     al, 'x'
     487    mov     ax, DisableMenuitemFromCSBX
     488    jne     SHORT .DisableCustomPortMenuitem
     489    ret
     490.DisableSerialControllerMenuitems:
     491.EnableSerialControllerMenuitems:
     492    mov     bx, g_MenuitemIdeControllerSerialCOM
     493    call    ax
     494    mov     bx, g_MenuitemIdeControllerSerialBaud
     495    call    ax
     496.DisableCustomPortMenuitem:
    499497    mov     bx, g_MenuitemIdeControllerSerialPort
    500     cmp     al, 'x'
    501     je      SHORT .EnableMenuitemFromCSBX
    502     jmp     SHORT .DisableMenuitemFromCSBX
    503 .DisableAllSerial:
    504     ret
     498    jmp     ax
    505499
    506500
     
    516510ALIGN JUMP_ALIGN
    517511MasterDrive:
     512    mov     bx, g_MenuitemMasterSlaveDisableDetection
     513    call    DisableMenuitemFromCSBX
    518514    mov     bx, [cs:g_MenuitemIdeControllerMasterDrive+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
    519515    jmp     SHORT DisplayMasterSlaveMenu
     
    521517ALIGN JUMP_ALIGN
    522518SlaveDrive:
     519    mov     bx, g_MenuitemMasterSlaveDisableDetection
     520    call    EnableMenuitemFromCSBX
    523521    mov     bx, [cs:g_MenuitemIdeControllerSlaveDrive+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
    524522    ; Fall to DisplayMasterSlaveMenu
    525523
    526 ALIGN JUMP_ALIGN
    527524DisplayMasterSlaveMenu:
    528 ;
    529 ; "Block Mode Transfers" and "Internal Write Cache" are not supported on serial drives, disable/enable the options as appropriate
    530 ;
    531     push    bx
    532     mov     bx, [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
    533     call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    534     mov     bx, g_MenuitemMasterSlaveBlockModeTransfers
    535 
    536     cmp     al, DEVICE_SERIAL_PORT
    537     je      .isSerial
    538 
    539     call    EnableMenuitemFromCSBX
    540     mov     bx, g_MenuitemMasterSlaveWriteCache
    541     call    EnableMenuitemFromCSBX
    542     jmp     .isDone
    543 
    544 .isSerial:
    545     call    DisableMenuitemFromCSBX
    546     mov     bx, g_MenuitemMasterSlaveWriteCache
    547     call    DisableMenuitemFromCSBX
    548 
    549 .isDone:
    550     pop     bx
    551 
    552525    call    MasterSlaveMenu_InitializeToDrvparamsOffsetInBX
    553526    jmp     MasterSlaveMenu_EnterMenuOrModifyItemVisibility
     
    657630    mov     ax, DEVICE_XTIDE_DEFAULT_PORT       ; Defaults for 8-bit XTIDE and XT-CF devices
    658631    mov     bx, DEVICE_XTIDE_DEFAULT_PORTCTRL
    659    
     632
    660633    ; XT-CF does not support IRQ so it must be disabled (IRQ setting is not visible for XT-CF)
    661634    ; XTIDE does not use IRQs by default
Note: See TracChangeset for help on using the changeset viewer.