Changeset 118 in xtideuniversalbios
- Timestamp:
- Feb 28, 2011, 4:23:58 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/BiosFile.asm
r107 r118 158 158 call Buffers_GetFileBufferToESDI 159 159 call Registers_CopyESDItoDSSI 160 mov ax, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] 161 call EEPROM_GetSmallestEepromSizeInWordsToCXforImageWithWordSizeInAX 160 162 xor dx, dx 161 mov cx, [cs:g_cfgVars+CFGVARS.wImageSizeInWords]162 163 shl cx, 1 163 164 rcl dx, 1 ; WORDs to BYTEs -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
r109 r118 176 176 177 177 call Buffers_GetFileBufferToESDI 178 mov cx, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] 178 mov ax, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] 179 call EEPROM_GetSmallestEepromSizeInWordsToCXforImageWithWordSizeInAX 179 180 shl cx, 1 ; Words to bytes 180 181 dec cx ; Leave space for checksum byte -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r68 r118 1 ; File name : EEPROM.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator v2 3 ; Created date : 19.4.20104 ; Last update : 9.12.20105 2 ; Author : Tomi Tilli 6 3 ; Description : Functions for managing EEPROM contents. … … 31 28 32 29 ;-------------------------------------------------------------------- 30 ; EEPROM_GetSmallestEepromSizeInWordsToCXforImageWithWordSizeInAX 31 ; Parameters: 32 ; AX: Image size in WORDs 33 ; Returns: 34 ; CX: Required EEPROM size in WORDs 35 ; CF: Set if EEPROM size found 36 ; Cleared if no valid EEPROM found 37 ; Corrupts registers: 38 ; BX 39 ;-------------------------------------------------------------------- 40 ALIGN JUMP_ALIGN 41 EEPROM_GetSmallestEepromSizeInWordsToCXforImageWithWordSizeInAX: 42 mov bx, g_rgwEepromTypeToSizeInWords 43 mov cx, NUMBER_OF_EEPROM_TYPES 44 ALIGN JUMP_ALIGN 45 .CheckNextEepromSize: 46 cmp ax, [cs:bx] 47 jbe SHORT .ReturnEepromSizeInAX 48 inc bx 49 inc bx 50 loop .CheckNextEepromSize 51 clc ; None of the supported EEPROMs are large enough 52 ret 53 ALIGN JUMP_ALIGN 54 .ReturnEepromSizeInAX: 55 mov cx, [cs:bx] 56 stc 57 ret 58 59 60 ;-------------------------------------------------------------------- 33 61 ; EEPROM_LoadXtideUniversalBiosFromRomToRamBufferAndReturnSizeInDXCX 34 62 ; Parameters: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm
r108 r118 206 206 ; SS:BP: Ptr to MENU 207 207 ; Returns: 208 ; Nothing208 ; CF: Set if EEPROM too small 209 209 ; Corrupts registers: 210 210 ; AX, BX, DX … … 386 386 .RebootComputer: 387 387 .ResetAT: 388 LOAD_BDA_SEGMENT_TO ds, ax 389 mov [BDA.wBoot], ax ; Make sure soft reset flag is not set 388 390 mov al, 0FEh ; System reset (AT+ keyboard controller) 389 391 out 64h, al ; Reset computer (AT+) -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MainMenu.asm
r114 r118 205 205 call Buffers_NewBiosWithSizeInDXCXandSourceInAXhasBeenLoadedForConfiguration 206 206 mov dx, g_szDlgMainLoadROM 207 jmp Dialogs_DisplayNotificationFromCSDX 207 call Dialogs_DisplayNotificationFromCSDX 208 jmp MainMenu_EnterMenuOrModifyItemVisibility 208 209 209 210
Note:
See TracChangeset
for help on using the changeset viewer.