Ignore:
Timestamp:
Oct 27, 2012, 12:52:21 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Configurator v2:

  • Now up to date with recent changes in XTIDE Universal BIOS device numberings.
File:
1 edited

Legend:

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

    r459 r481  
    188188
    189189g_rgwChoiceToValueLookupForDevice:
    190     dw  DEVICE_8BIT_JRIDE_ISA
    191     dw  DEVICE_8BIT_XTCF
    192     dw  DEVICE_8BIT_XTIDE_REV2
    193     dw  DEVICE_8BIT_XTIDE_REV1
    194190    dw  DEVICE_16BIT_ATA
    195191    dw  DEVICE_32BIT_ATA
     192    dw  DEVICE_8BIT_ATA
     193    dw  DEVICE_8BIT_XTIDE_REV1
     194    dw  DEVICE_8BIT_XTIDE_REV2
     195    dw  DEVICE_8BIT_XTCF_PIO8
     196    dw  DEVICE_8BIT_XTCF_DMA
     197    dw  DEVICE_8BIT_XTCF_MEMMAP
     198    dw  DEVICE_8BIT_JRIDE_ISA
    196199    dw  DEVICE_SERIAL_PORT
    197200g_rgszValueToStringLookupForDevice:
    198     dw  g_szValueCfgDeviceJrIdeIsa
    199     dw  g_szValueCfgDeviceFast
    200     dw  g_szValueCfgDeviceRev2
    201     dw  g_szValueCfgDeviceRev1
    202201    dw  g_szValueCfgDevice16b
    203202    dw  g_szValueCfgDevice32b
     203    dw  g_szValueCfgDevice8b
     204    dw  g_szValueCfgDeviceRev1
     205    dw  g_szValueCfgDeviceRev2
     206    dw  g_szValueCfgDevicePioXTCF
     207    dw  g_szValueCfgDeviceDmaXTCF
     208    dw  g_szValueCfgDeviceMemXTCF
     209    dw  g_szValueCfgDeviceJrIdeIsa
    204210    dw  g_szValueCfgDeviceSerial
    205211
     
    297303    mov     [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax
    298304
    299     lea     ax, [bx+IDEVARS.wPort]
     305    lea     ax, [bx+IDEVARS.wBasePort]
    300306    mov     [cs:g_MenuitemIdeControllerCommandBlockAddress+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax
    301307
     
    306312    mov     [cs:g_MenuitemIdeControllerSerialBaud+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax
    307313
    308     lea     ax, [bx+IDEVARS.wPortCtrl]
     314    lea     ax, [bx+IDEVARS.wControlBlockPort]
    309315    mov     [cs:g_MenuitemIdeControllerControlBlockAddress+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax
    310316
     
    358364    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    359365    mov     bx, g_MenuitemIdeControllerEnableInterrupt
    360     cmp     al, DEVICE_SERIAL_PORT
     366    cmp     al, DEVICE_8BIT_XTIDE_REV2
    361367    jae     SHORT .DisableMenuitemFromCSBX
    362     cmp     al, DEVICE_8BIT_XTCF
    363     jbe     SHORT .DisableMenuitemFromCSBX
    364368
    365369    call    .EnableMenuitemFromCSBX
     
    536540        mov     bl,[es:di]                          ; what is the current Device?
    537541
    538         add     di,IDEVARS.wPort - IDEVARS.bDevice  ; Get ready to set the Port addresses
     542        add     di,IDEVARS.wBasePort - IDEVARS.bDevice  ; Get ready to set the Port addresses
    539543
    540544        cmp     al,DEVICE_SERIAL_PORT
     
    556560
    557561.writeNonSerial:
    558         stosw                                       ; Store defaults in IDEVARS.wPort and IDEVARS.wPortCtrl
     562        stosw                                       ; Store defaults in IDEVARS.wBasePort and IDEVARS.wBasePortCtrl
    559563        xchg    bx, ax
    560564        stosw
     
    566570        jz      .done                               ; if we were already serial, nothing to do
    567571
    568         mov     byte [es:di+IDEVARS.bSerialBaud-IDEVARS.wPort],SERIAL_DEFAULT_BAUD
     572        mov     byte [es:di+IDEVARS.bSerialBaud-IDEVARS.wBasePort],SERIAL_DEFAULT_BAUD
    569573
    570574        mov     al,SERIAL_DEFAULT_COM
    571         add     di,IDEVARS.bSerialCOMPortChar-IDEVARS.wPort
     575        add     di,IDEVARS.bSerialCOMPortChar-IDEVARS.wBasePort
    572576        call    IdeControllerMenu_SerialWriteCOM
    573577        stosb
Note: See TracChangeset for help on using the changeset viewer.