Changeset 109 in xtideuniversalbios


Ignore:
Timestamp:
Feb 22, 2011, 4:39:45 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to Configurator v2:

  • Updated for v1.2.0_wip BIOS.
  • IRQ selection is now properly hidden when disabling IRQ.
  • Load BIOS from ROM should now properly appear on main menu.
Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2
Files:
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Inc/Variables.inc

    r68 r109  
    1 ; File name     :   Variables.inc
    21; Project name  :   XTIDE Univeral BIOS Configurator v2
    3 ; Created date  :   5.10.2010
    4 ; Last update   :   6.12.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Global variables for configuration program.
    73%ifndef VARIABLES_INC
     
    95
    106; Equates and defines
    11 MAX_ALLOWED_IDE_CONTROLLERS         EQU     5   ; Maximum number of IDE controllers
     7MAX_ALLOWED_IDE_CONTROLLERS         EQU     4   ; Maximum number of IDE controllers
    128EEPROM_POLLING_TIMEOUT_TICKS        EQU     3   ; 1 tick = 54.9 ms
    139XTIDE_SIGNATURE_LENGTH              EQU     8   ; XTIDE Universal BIOS signature string length
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm

    r68 r109  
    1 ; File name     :   Buffers.asm
    21; Project name  :   XTIDE Universal BIOS Configurator v2
    3 ; Created date  :   6.10.2010
    4 ; Last update   :   6.12.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for accessing file and flash buffers.
    73
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Dialogs.asm

    r108 r109  
    173173.InitializeProgressDialogIoInDSSIwithFlashvarsInDSBX:
    174174    call    InitializeDialogInputFromDSSI
    175     mov     WORD [si+DIALOG_INPUT.fszTitle], g_szEEPROM
     175    mov     WORD [si+DIALOG_INPUT.fszTitle], g_szFlashTitle
    176176
    177177    xor     ax, ax
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm

    r68 r109  
    1 ; File name     :   main.asm
    21; Project name  :   XTIDE Univeral BIOS Configurator v2
    3 ; Created date  :   5.10.2010
    4 ; Last update   :   7.12.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Program start and exit.         
    73
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuEvents.asm

    r63 r109  
    1 ; File name     :   MenuEvents.asm
    21; Project name  :   XTIDE Universal BIOS Configurator v2
    3 ; Created date  :   5.10.2010
    4 ; Last update   :   30.11.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Menu event handling.
    73
     
    7975    CALL_DISPLAY_LIBRARY GetColumnsToALandRowsToAH
    8076    mov     [si+MENUINIT.bHeight], ah
     77    call    MainMenu_EnterMenuOrModifyItemVisibility
    8178    stc
    8279    ret
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupage.asm

    r57 r109  
    1 ; File name     :   Menupage.asm
    21; Project name  :   XTIDE Universal BIOS Configurator v2
    3 ; Created date  :   5.10.2010
    4 ; Last update   :   1.11.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for accessing MENUPAGE structs.
    73
     
    3228
    3329;--------------------------------------------------------------------
    34 ; Menupage_SetActiveMenupageFromDSDI
     30; SetActiveMenupageFromDSDI
    3531;   Parameters:
    3632;       DS:DI:  Ptr to MENUPAGE to set active
     
    3935;       Nothing
    4036;   Corrupts registers:
    41 ;       AX, DI
     37;       Nothing
    4238;--------------------------------------------------------------------
    4339ALIGN JUMP_ALIGN
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/BootMenuSettingsMenu.asm

    r108 r109  
    3636    at  MENUITEM.itemValue + ITEM_VALUE.wMinValue,                  dw  0
    3737    at  MENUITEM.itemValue + ITEM_VALUE.wMaxValue,                  dw  0FFh
    38 iend
    39 
    40 g_MenuitemBootMnuStngsDisplayRomBoot:
    41 istruc MENUITEM
    42     at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
    43     at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
    44     at  MENUITEM.szName,            dw  g_szItemBootRomBoot
    45     at  MENUITEM.szQuickInfo,       dw  g_szNfoBootRomBoot
    46     at  MENUITEM.szHelp,            dw  g_szHelpBootRomBoot
    47     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE
    48     at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    49     at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.wFlags
    50     at  MENUITEM.itemValue + ITEM_VALUE.szDialogTitle,              dw  g_szDlgBootRomBoot
    51     at  MENUITEM.itemValue + ITEM_VALUE.szMultichoice,              dw  g_szMultichoiceBooleanFlag
    52     at  MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup,    dw  g_rgszValueToStringLookupForFlagBooleans
    53     at  MENUITEM.itemValue + ITEM_VALUE.wValueBitmask,              dw  FLG_ROMVARS_ROMBOOT
    5438iend
    5539
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm

    r108 r109  
    6363iend
    6464
    65 g_MenuitemConfigurationQuinaryIdeController:
    66 istruc MENUITEM
    67     at  MENUITEM.fnActivate,        dw  QuinaryIdeController
    68     at  MENUITEM.szName,            dw  g_szItemCfgIde5
    69     at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgIde
    70     at  MENUITEM.szHelp,            dw  g_szNfoCfgIde
    71     at  MENUITEM.bFlags,            db  NULL
    72     at  MENUITEM.bType,             db  TYPE_MENUITEM_PAGENEXT
    73 iend
    74 
    7565g_MenuitemConfigurationBootMenuSettings:
    7666istruc MENUITEM
     
    7969    at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgBootMenu
    8070    at  MENUITEM.szHelp,            dw  g_szNfoCfgBootMenu
    81     at  MENUITEM.bFlags,            db  NULL
    82     at  MENUITEM.bType,             db  TYPE_MENUITEM_PAGENEXT
    83 iend
    84 
    85 g_MenuitemConfigurationBootLoaderType:
    86 istruc MENUITEM
    87     at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
    88     at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
    89     at  MENUITEM.szName,            dw  g_szItemCfgBootLoader
    90     at  MENUITEM.szQuickInfo,       dw  g_szNfoCfgBootLoader
    91     at  MENUITEM.szHelp,            dw  g_szNfoCfgBootLoader
    92     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_BYTEVALUE
    93     at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    94     at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.bBootLdrType
    95     at  MENUITEM.itemValue + ITEM_VALUE.szDialogTitle,              dw  g_szItemCfgBootLoader
    96     at  MENUITEM.itemValue + ITEM_VALUE.szMultichoice,              dw  g_szMultichoiceCfgBootLoader
    97     at  MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup,     dw  g_rgwChoiceToValueLookupForBootLoaderType
    98     at  MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup,    dw  g_rgszValueToStringLookupForBootLoaderType
     71    at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE
     72    at  MENUITEM.bType,             db  TYPE_MENUITEM_PAGENEXT
    9973iend
    10074
     
    142116    at  MENUITEM.itemValue + ITEM_VALUE.szDialogTitle,              dw  g_szDlgCfgIdeCnt
    143117    at  MENUITEM.itemValue + ITEM_VALUE.wMinValue,                  dw  1
    144     at  MENUITEM.itemValue + ITEM_VALUE.wMaxValue,                  dw  5
    145 iend
    146 
    147 
    148 g_rgwChoiceToValueLookupForBootLoaderType:
    149     dw  BOOTLOADER_TYPE_MENU
    150     dw  BOOTLOADER_TYPE_SIMPLE
    151     dw  BOOTLOADER_TYPE_NONE
    152 g_rgszValueToStringLookupForBootLoaderType:
    153     dw  g_szValueCfgBootLoaderMenu
    154     dw  g_szValueCfgBootLoaderAthenC
    155     dw  g_szUnidentified
    156     dw  g_szValueCfgBootLoaderSystem
     118    at  MENUITEM.itemValue + ITEM_VALUE.wMaxValue,                  dw  4
     119iend
    157120
    158121
     
    175138    call    .DisableAllIdeControllerMenuitems
    176139    call    .EnableIdeControllerMenuitemsBasedOnConfiguration
    177     call    .EnableOrDisableBootMenuSettings
    178140    call    .EnableOrDisableKiBtoStealFromRAM
    179141    call    .EnableOrDisableIdeControllerCount
     
    239201    mov     cx, 1
    240202    ret
    241 
    242 
    243 ;--------------------------------------------------------------------
    244 ; .EnableOrDisableBootMenuSettings
    245 ;   Parameters:
    246 ;       SS:BP:  Menu handle
    247 ;   Returns:
    248 ;       Nothing
    249 ;   Corrupts registers:
    250 ;       AX, BX, CX
    251 ;--------------------------------------------------------------------
    252 ALIGN JUMP_ALIGN
    253 .EnableOrDisableBootMenuSettings:
    254     mov     bx, ROMVARS.bBootLdrType
    255     call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    256     mov     bx, g_MenuitemConfigurationBootMenuSettings
    257     cmp     ax, BYTE BOOTLOADER_TYPE_MENU
    258     jne     SHORT .DisableMenuitemFromCSBX
    259     jmp     SHORT .EnableMenuitemFromCSBX
    260 
    261203
    262204;--------------------------------------------------------------------
     
    291233    mov     bx, g_MenuitemConfigurationIdeControllers
    292234    test    ax, FLG_ROMVARS_FULLMODE
    293     jz      SHORT .DisableMenuitemFromCSBX
    294     jmp     SHORT .EnableMenuitemFromCSBX
     235    jnz     SHORT .EnableMenuitemFromCSBX
     236.LimitIdeControllerCountToOneForLiteMode:
     237    call    Buffers_GetFileBufferToESDI
     238    mov     BYTE [es:di+ROMVARS.bIdeCnt], 1
     239    jmp     SHORT .DisableMenuitemFromCSBX
    295240
    296241;--------------------------------------------------------------------
     
    343288QuaternaryIdeController:
    344289    mov     bx, ROMVARS.ideVars3
    345     jmp     SHORT DisplayIdeControllerMenu
    346 
    347 ALIGN JUMP_ALIGN
    348 QuinaryIdeController:
    349     mov     bx, ROMVARS.ideVars4
    350290    ; Fall to DisplayIdeControllerMenu
    351291
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm

    r108 r109  
    198198    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    199199    mov     bx, g_MenuitemIdeControllerIdeIRQ
    200     test    ax, ax
     200    test    al, al
    201201    jz      SHORT .DisableMenuitemFromCSBX
    202202    ; Fall to .EnableMenuitemFromCSBX
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

    r108 r109  
    77; Menu title
    88g_szProgramTitle:
    9     db  "Configuration and Flashing program for XTIDE Universal BIOS v1.1.5.",LF,CR,NULL
    10 g_szXtideUniversalBiosSignature:    db  "XTIDE110",NULL
     9    db  "Configuration and Flashing program for XTIDE Universal BIOS v1.2.0.",LF,CR,NULL
     10g_szXtideUniversalBiosSignature:    db  "XTIDE120",NULL
    1111g_szBiosIsNotLoaded:                db  "BIOS is not loaded!",NULL
    1212g_szEEPROM:                         db  "EEPROM",NULL
     
    3838
    3939; Flashing related strings
     40g_szFlashTitle:         db  "Flashing EEPROM, please wait.",NULL
    4041g_szErrEepromTooSmall:  db  "Image is too large for selected EEPROM type!",NULL
    4142g_szErrEepromPolling:   db  "Timeout when polling EEPROM.",LF
     
    8081g_szItemCfgIde3:        db  "Tertiary IDE Controller",NULL
    8182g_szItemCfgIde4:        db  "Quaternary IDE Controller",NULL
    82 g_szItemCfgIde5:        db  "Quinary IDE Controller",NULL
    8383g_szItemCfgBootMenu:    db  "Boot menu settings",NULL
    84 g_szItemCfgBootLoader:  db  "Boot loader type",NULL
    8584g_szItemCfgFullMode:    db  "Full operating mode",NULL
    8685g_szItemCfgStealSize:   db  "kiB to steal from RAM",NULL
     
    9392g_szNfoCfgIde:          db  "IDE controller and drive configuration.",NULL
    9493g_szNfoCfgBootMenu:     db  "Boot menu configuration.",NULL
    95 g_szNfoCfgBootLoader:   db  "Boot loader selection for INT 19h.",NULL
    9694g_szNfoCfgFullMode:     db  "Full mode supports multiple controllers and has more features.",NULL
    9795g_szNfoCfgStealSize:    db  "How many kiB's to steal from Conventional memory for XTIDE Universal BIOS variables.",NULL
     
    102100g_szHelpCfgStealSize:   incbin  "Configuration_StealSize.txt"
    103101                        db  NULL
    104 
    105 g_szMultichoiceCfgBootLoader:
    106                         db  "Boot menu",LF
    107                         db  "Drive A then C",LF
    108                         db  "System boot loader",NULL
    109 
    110 g_szValueCfgBootLoaderMenu:     db  "Menu",NULL
    111 g_szValueCfgBootLoaderAthenC:   db  "A, C",NULL
    112 g_szValueCfgBootLoaderSystem:   db  "System",NULL
    113102
    114103
     
    190179g_szItemBootFloppyDrvs: db  "Number of Floppy Drives",NULL
    191180g_szItemBootSwap:       db  "Swap boot drive numbers",NULL
    192 g_szItemBootRomBoot:    db  "Display ROM boot",NULL
    193181
    194182g_szDlgBootTimeout:     db  "Enter Boot Menu selection timeout in seconds (1...60, 0 disables timeout).",NULL
     
    196184g_szDlgBootFloppyDrvs:  db  "Enter number of Floppy Drives to display on boot menu.",NULL
    197185g_szDlgBootSwap:        db  "Enable drive number translation?",NULL
    198 g_szDlgBootRomBoot:     db  "Show ROM Boot option on boot menu?",NULL
    199186
    200187g_szNfoBootTimeout:     db  "Menu item selection timeout in seconds.",NULL
     
    202189g_szNfoBootFloppyDrvs:  db  "Number of Floppy Drives to display on boot menu.",NULL
    203190g_szNfoBootSwap:        db  "Drive Number Translation (swap first drive with selected).",NULL
    204 g_szNfoBootRomBoot:     db  "Show ROM Basic or ROM DOS boot option.",NULL
    205191
    206192g_szHelpBootTimeout:    incbin  "Bootmenu_Timeout.txt"
     
    211197                        db  NULL
    212198g_szHelpBootSwap:       incbin  "Bootmenu_SwapDrives.txt"
    213                         db  NULL
    214 g_szHelpBootRomBoot:    incbin  "Bootmenu_RomBoot.txt"
    215199                        db  NULL
    216200
Note: See TracChangeset for help on using the changeset viewer.