Changeset 181 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2
- Timestamp:
- Nov 13, 2011, 3:38:40 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/BiosFile.asm
r138 r181 92 92 call Registers_ExchangeDSSIwithESDI 93 93 call FileIO_ReadDXCXbytesToDSSIusingHandleFromBX 94 jnc SHORT .StoreFileNameToCfgvarsFromESDI 95 96 pop es 97 ret 98 99 ALIGN JUMP_ALIGN 100 .StoreFileNameToCfgvarsFromESDI: 94 jc SHORT .ReturnError 95 96 ; Store filename to Cfgvars from ESDI 101 97 push cx 102 98 … … 107 103 cld 108 104 call String_CopyDSSItoESDIandGetLengthToCX 105 clc 109 106 110 107 pop cx 108 ALIGN JUMP_ALIGN 109 .ReturnError: 111 110 pop es 112 clc113 111 ret 114 112 … … 157 155 xor dx, dx 158 156 shl cx, 1 159 rcl dx, 1 ; WORDs to BYTEs 157 rcl dx, 1 ; WORDs to BYTEs 160 158 161 159 mov al, FILE_ACCESS.WriteOnly -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Dialogs.asm
r170 r181 159 159 ALIGN JUMP_ALIGN 160 160 Dialogs_DisplayProgressDialogForFlashingWithDialogIoInDSSIandFlashvarsInDSBX: 161 call .InitializeProgressDialogIoInDSSIwithFlashvarsInDSBX 162 mov dx, ds 163 mov ax, bx 164 CALL_MENU_LIBRARY StartProgressTaskWithIoInDSSIandParamInDXAX 165 ret 166 167 ALIGN JUMP_ALIGN 168 .InitializeProgressDialogIoInDSSIwithFlashvarsInDSBX: 161 ; Initialize progress dialog I/O in DS:SI with flashvars in DS:BX 169 162 call InitializeDialogInputFromDSSI 170 163 mov WORD [si+DIALOG_INPUT.fszTitle], g_szFlashTitle … … 177 170 mov WORD [si+PROGRESS_DIALOG_IO.fnTaskWithParamInDSSI], Flash_EepromWithFlashvarsInDSSI 178 171 mov [si+PROGRESS_DIALOG_IO.fnTaskWithParamInDSSI+2], cs 172 ; Init done 173 174 mov dx, ds 175 mov ax, bx 176 CALL_MENU_LIBRARY StartProgressTaskWithIoInDSSIandParamInDXAX 179 177 ret 180 178 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r159 r181 169 169 call Buffers_IsXtideUniversalBiosSignatureInESDI 170 170 je SHORT .RomFound 171 add b x, 200h; Increment by 8kB171 add bh, 2 ; Increment by 8kB 172 172 jnc SHORT .SegmentLoop ; Loop until segment overflows 173 173 clc -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Flash.asm
r159 r181 1 ; File name : Flash.asm2 1 ; Project name : XTIDE Universal BIOS Configurator v2 3 ; Created date : 1.12.20104 ; Last update : 3.12.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for flashing the EEPROM. 7 3 … … 37 33 38 34 loop .FlashNextPage 35 %if FLASH_RESULT.success = 0 ; Just in case this should ever change 36 mov [bp+FLASHVARS.flashResult], cl 37 %else 39 38 mov BYTE [bp+FLASHVARS.flashResult], FLASH_RESULT.success 39 %endif 40 40 ret 41 41 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuEvents.asm
r138 r181 135 135 .KeyStrokeInAX: 136 136 cmp ah, KEY_DISPLAY_ITEM_HELP 137 je SHORT .DisplayHelp 138 jmp SHORT .EventNotHandled 139 140 ALIGN JUMP_ALIGN 141 .DisplayHelp: 137 jne SHORT .EventNotHandled 138 139 ;ALIGN JUMP_ALIGN 140 ;.DisplayHelp: 142 141 call Menupage_GetActiveMenupageToDSDI 143 142 CALL_MENU_LIBRARY GetHighlightedItemToAX -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r108 r181 150 150 add di, [si+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 151 151 jmp [cs:bx+.rgfnJumpToStoreValueBasedOnItemType] 152 .InvalidItemType:153 ret154 152 155 153 ALIGN WORD_ALIGN … … 242 240 CALL_MENU_LIBRARY GetHighlightedItemToAX 243 241 CALL_MENU_LIBRARY RefreshItemFromAX 242 .InvalidItemType: 244 243 ret 245 244 … … 268 267 ALIGN JUMP_ALIGN 269 268 Menuitem_GetValueToAXfromMenuitemInDSSI: 270 call .GetMenuitemValueToAX271 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_BYTEVALUE272 jnz SHORT .ConvertWordToByteValue273 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_FLAGVALUE274 jnz SHORT .ConvertWordToFlagValue275 ret276 277 ALIGN JUMP_ALIGN278 .GetMenuitemValueToAX:279 269 push es 280 270 push di … … 284 274 pop di 285 275 pop es 286 ret 287 276 277 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_BYTEVALUE 278 jnz SHORT .ConvertWordToByteValue 279 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_FLAGVALUE 280 jz SHORT .Return 281 282 test ax, [si+MENUITEM.itemValue+ITEM_VALUE.wValueBitmask] 283 mov ax, TRUE<<1 ; Shift for lookup 284 jnz SHORT .Return 285 xor ax, ax 288 286 ALIGN JUMP_ALIGN 289 287 .ConvertWordToByteValue: 290 288 xor ah, ah 291 ret 292 293 ALIGN JUMP_ALIGN 294 .ConvertWordToFlagValue: 295 test ax, [si+MENUITEM.itemValue+ITEM_VALUE.wValueBitmask] 296 jnz SHORT .ReturnTrue 297 xor ax, ax 298 ret 299 ALIGN JUMP_ALIGN 300 .ReturnTrue: 301 mov ax, TRUE<<1 ; Shift for lookup 289 ALIGN JUMP_ALIGN, ret 290 .Return: 302 291 ret 303 292 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm
r153 r181 168 168 call .GetIdeControllerCountToCX 169 169 dec cx ; Primary always enabled 170 j cxz.PrimaryControllerAlreadyEnabled170 jz .PrimaryControllerAlreadyEnabled 171 171 mov bx, g_MenuitemConfigurationSecondaryIdeController 172 172 ALIGN JUMP_ALIGN … … 191 191 call Buffers_GetRomvarsFlagsToAX 192 192 test ax, FLG_ROMVARS_FULLMODE 193 mov al, 1 ; Assume lite mode 193 194 jz SHORT .AllowOnlyOneIdeControllerInLiteMode 194 195 195 196 mov bx, ROMVARS.bIdeCnt 196 197 call Buffers_GetRomvarsValueToAXfromOffsetInBX 197 eMOVZX cx, al198 ret199 198 ALIGN JUMP_ALIGN 200 199 .AllowOnlyOneIdeControllerInLiteMode: 201 mov cx, 1 200 cbw ; A maximum of 127 controllers should be sufficient 201 xchg cx, ax 202 202 ret 203 203 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm
r159 r181 390 390 mov al, 0FEh ; System reset (AT+ keyboard controller) 391 391 out 64h, al ; Reset computer (AT+) 392 mov a x, 10392 mov al, 10 393 393 call Delay_MicrosecondsFromAX 394 394 .ResetXT: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/makefile
r145 r181 58 58 # Assembler preprocessor defines. # 59 59 ################################################################# 60 DEFINES = 60 DEFINES = EXCLUDE_FROM_XTIDECFG 61 61 DEFINES_XT = ELIMINATE_CGA_SNOW 62 62 DEFINES_XTPLUS = USE_186 ELIMINATE_CGA_SNOW
Note:
See TracChangeset
for help on using the changeset viewer.