Changeset 65 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
- Timestamp:
- Dec 5, 2010, 6:52:11 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r57 r65 2 2 ; Project name : XTIDE Univeral BIOS Configurator v2 3 3 ; Created date : 19.4.2010 4 ; Last update : 10.10.20104 ; Last update : 3.12.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for managing EEPROM contents. 7 8 ; Section containing initialized data 9 SECTION .data 10 11 ALIGN WORD_ALIGN 12 g_rgwEepromTypeToSizeInWords: 13 dw (2<<10) / 2 ; EEPROM_TYPE.2816_2kiB 14 dw (8<<10) / 2 15 dw (32<<10) / 2 16 dw (64<<10) / 2 17 18 g_rgwEepromPageToSizeInBytes: 19 dw 1 ; EEPROM_PAGE.1_byte 20 dw 2 21 dw 4 22 dw 8 23 dw 16 24 dw 32 25 dw 64 26 27 7 28 8 29 ; Section containing code … … 134 155 135 156 ;-------------------------------------------------------------------- 136 ; EEPROM_ GetPointerForFlashingToESDI157 ; EEPROM_LoadFromRomToRamComparisonBuffer 137 158 ; Parameters: 138 159 ; Nothing 139 160 ; Returns: 140 ; ES:DI: Ptr to EEPROM to be flashed161 ; Nothing 141 162 ; Corrupts registers: 142 ; Nothing163 ; BX, CX, SI, DI 143 164 ;-------------------------------------------------------------------- 144 165 ALIGN JUMP_ALIGN 145 EEPROM_GetPointerForFlashingToESDI: 146 mov es, [cs:g_cfgVars+CFGVARS.wEepromSegment] 147 xor di, di 166 EEPROM_LoadFromRomToRamComparisonBuffer: 167 push es 168 push ds 169 170 mov ds, [cs:g_cfgVars+CFGVARS.wEepromSegment] 171 xor si, si 172 call Buffers_GetFlashComparisonBufferToESDI 173 eMOVZX bx, BYTE [cs:g_cfgVars+CFGVARS.bEepromType] 174 mov cx, [cs:bx+g_rgwEepromTypeToSizeInWords] 175 cld 176 rep movsw 177 178 pop ds 179 pop es 148 180 ret
Note:
See TracChangeset
for help on using the changeset viewer.