Changeset 425 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2
- Timestamp:
- May 16, 2012, 4:25:29 PM (13 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Inc/MenuStructs.inc
r376 r425 71 71 .wMinValue resb 2 ; Minimum allowed integer value 72 72 .wMaxValue: 73 .wValueBitmask resb 2 ; Bitmask for item value flag 73 .wValueBitmask resb 2 ; Bitmask for item value flag or field 74 74 .fnValueReader resb 2 ; Called just after ROMVARS is read, providing a hook for further action 75 75 .fnValueWriter resb 2 ; Called just before ROMVARS is written, providing a hook for further action 76 .bFieldPosition resb 1 ; Bit field position 76 77 endstruc 77 78 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r376 r425 258 258 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_MASKVALUE 259 259 jz SHORT .StoreByteOrWord 260 push cx 261 mov cl, [si+MENUITEM.itemValue+ITEM_VALUE.bFieldPosition] 262 shl ax, cl 263 pop cx 260 264 or [es:di], ax 261 265 jmp SHORT .SetUnsavedChanges … … 344 348 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_MASKVALUE 345 349 jz SHORT .TestIfFlagValue 350 346 351 and ax, [si+MENUITEM.itemValue+ITEM_VALUE.wValueBitmask] 352 push cx 353 mov cl, [si+MENUITEM.itemValue+ITEM_VALUE.bFieldPosition] 354 shr ax, cl 355 pop cx 347 356 ret 348 357 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MasterSlaveMenu.asm
r376 r425 26 26 at MENUPAGE.fnEnter, dw MasterSlaveMenu_EnterMenuOrModifyItemVisibility 27 27 at MENUPAGE.fnBack, dw IdeControllerMenu_EnterMenuOrModifyItemVisibility 28 at MENUPAGE.wMenuitems, dw 928 at MENUPAGE.wMenuitems, dw 10 29 29 iend 30 30 … … 55 55 iend 56 56 57 g_MenuitemMasterSlaveChsTranslateMode: 58 istruc MENUITEM 59 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 60 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI 61 at MENUITEM.szName, dw g_szItemDrvXlateMode 62 at MENUITEM.szQuickInfo, dw g_szNfoDrvXlateMode 63 at MENUITEM.szHelp, dw g_szNfoDrvXlateMode 64 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MASKVALUE 65 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 66 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL 67 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvXlateMode 68 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiseXlateMode 69 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForXlateMode 70 at MENUITEM.itemValue + ITEM_VALUE.rgszChoiceToStringLookup, dw g_rgszChoiceToStringLookupForXlateMode 71 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw MASK_DRVPARAMS_TRANSLATEMODE 72 at MENUITEM.itemValue + ITEM_VALUE.bFieldPosition, db TRANSLATEMODE_FIELD_POSITION 73 iend 74 57 75 g_MenuitemMasterSlaveWriteCache: 58 76 istruc MENUITEM … … 70 88 at MENUITEM.itemValue + ITEM_VALUE.rgszChoiceToStringLookup, dw g_rgszChoiceToStringLookupForWriteCache 71 89 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw MASK_DRVPARAMS_WRITECACHE 90 at MENUITEM.itemValue + ITEM_VALUE.bFieldPosition, db 0 72 91 iend 73 92 … … 101 120 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvCyls 102 121 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 103 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 16383122 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw MAX_USER_CYLINDERS 104 123 %define MASTERSLAVE_CYLINDERS_DEFAULT 65 105 124 iend … … 117 136 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvHeads 118 137 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 119 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 16120 %define MASTERSLAVE_HEADS_DEFAULT 16138 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw MAX_USER_HEADS 139 %define MASTERSLAVE_HEADS_DEFAULT MAX_USER_HEADS 121 140 iend 122 141 … … 133 152 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvSect 134 153 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 135 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 63136 %define MASTERSLAVE_SECTORS_DEFAULT 63154 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw MAX_USER_SECTORS_PER_TRACK 155 %define MASTERSLAVE_SECTORS_DEFAULT MAX_USER_SECTORS_PER_TRACK 137 156 iend 138 157 … … 165 184 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL 166 185 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvLbaSectors 167 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 ; 512 MiB186 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 16 ; 8 GiB 168 187 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 10000000h / (1024 * 1024) ; Limit to 28-bit LBA 169 188 at MENUITEM.itemValue + ITEM_VALUE.fnValueReader, dw ValueReaderForUserLbaValue 170 189 at MENUITEM.itemValue + ITEM_VALUE.fnValueWriter, dw ValueWriterForUserLbaValue 171 %define MASTERSLAVE_USERLBA_DEFAULT 1190 %define MASTERSLAVE_USERLBA_DEFAULT 64 172 191 iend 173 192 … … 183 202 dw g_szValueDrvWrCaEn 184 203 204 g_rgwChoiceToValueLookupForXlateMode: 205 dw TRANSLATEMODE_NORMAL 206 dw TRANSLATEMODE_LARGE 207 dw TRANSLATEMODE_ASSISTED_LBA 208 dw TRANSLATEMODE_AUTO 209 210 g_rgszChoiceToStringLookupForXlateMode: 211 dw g_szValueDrvXlateNormal 212 dw g_szValueDrvXlateLarge 213 dw g_szValueDrvXlateLBA 214 dw g_szValueDrvXlateAuto 215 185 216 186 217 ; Section containing code … … 200 231 lea ax, [bx+DRVPARAMS.wFlags] 201 232 mov [cs:g_MenuitemMasterSlaveBlockModeTransfers+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 233 mov [cs:g_MenuitemMasterSlaveChsTranslateMode+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 202 234 mov [cs:g_MenuitemMasterSlaveWriteCache+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 203 235 mov [cs:g_MenuitemMasterSlaveUserCHS+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r403 r425 24 24 g_szProgramTitle: 25 25 db "Configuration and Flashing program for XTIDE Universal BIOS v2.0.0.",LF,CR,NULL 26 g_szXtideUniversalBiosSignature: db "XTIDE20 0",NULL26 g_szXtideUniversalBiosSignature: db "XTIDE201",NULL 27 27 g_szBiosIsNotLoaded: db "BIOS is not loaded!",NULL 28 28 g_szEEPROM: db "EEPROM",NULL … … 309 309 g_szItemDrvBackToIde: db "Back to IDE Controller Menu",NULL 310 310 g_szItemDrvBlockMode: db "Block Mode Transfers",NULL 311 g_szItemDrvXlateMode: db "CHS translation method",NULL 311 312 g_szItemDrvWriteCache: db "Internal Write Cache",NULL 312 313 g_szItemDrvUserCHS: db "User specified CHS",NULL … … 318 319 319 320 g_szDlgDrvBlockMode: db "Enable Block Mode Transfers?",NULL 321 g_szDlgDrvXlateMode: db "Select P-CHS to L-CHS translation method.",NULL 320 322 g_szDlgDrvWriteCache: db "Select hard drive internal write cache settings.",NULL 321 323 g_szDlgDrvUserCHS: db "Specify (P-)CHS parameters manually?",NULL … … 324 326 g_szDlgDrvSect: db "Enter number of sectors per track (1...63).",NULL 325 327 g_szDlgDrvUserLBA: db "Limit drive capacity?",NULL 326 g_szDlgDrvLbaSectors: db "Enter maximum capacity in millions of sectors (1 ...256).",NULL328 g_szDlgDrvLbaSectors: db "Enter maximum capacity in millions of sectors (16...256).",NULL 327 329 328 330 g_szNfoDrvBlockMode: db "Transfer multiple sectors per data request.",NULL 331 g_szNfoDrvXlateMode: db "P-CHS to L-CHS translation method.",NULL 329 332 g_szNfoDrvWriteCache: db "Hard Drive Internal Write Cache settings (WARNING!).",NULL 330 333 g_szNfoDrvUserCHS: db "Specify (P-)CHS parameters manually instead of autodetecting them.",NULL … … 343 346 g_szHelpDrvUserLBA: incbin "Drive_UserLBA.txt" 344 347 db NULL 348 349 g_szMultichoiseXlateMode: 350 db "NORMAL",LF 351 db "LARGE",LF 352 db "Assisted LBA",LF 353 db "Autodetect",NULL 354 355 g_szValueDrvXlateNormal:db "NORMAL",NULL 356 g_szValueDrvXlateLarge: db "LARGE",NULL 357 g_szValueDrvXlateLBA: db "LBA",NULL 358 g_szValueDrvXlateAuto: db "Auto",NULL 345 359 346 360 g_szMultichoiseWrCache: db "Drive Default",LF -
trunk/XTIDE_Universal_BIOS_Configurator_v2/makefile
r370 r425 108 108 .PHONY: all at xtplus xt clean release 109 109 110 all: clean xt110 all: clean release 111 111 @echo All done! 112 112
Note:
See TracChangeset
for help on using the changeset viewer.