Changeset 621 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
- Timestamp:
- Nov 21, 2021, 2:15:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r620 r621 99 99 ALIGN JUMP_ALIGN 100 100 EEPROM_LoadOldSettingsFromRomToRamBuffer: 101 mov cx, ROMVARS_size - ROMVARS.wFlags ; Number of bytes to load102 mov si, ROMVARS.wFlags ; Offset where to start loading101 mov cx, ROMVARS_size - ROMVARS.wFlags - 2 ; Number of bytes to load 102 mov si, ROMVARS.wFlags + 2 ; Offset where to start loading 103 103 ; Fall to LoadBytesFromRomToRamBuffer 104 104 … … 123 123 jc SHORT .XtideUniversalBiosNotFound 124 124 push es 125 pop ds 125 pop ds ; DS:SI points to ROM 126 126 127 127 call Buffers_GetFileBufferToESDI 128 mov di, si 128 mov di, si ; ES:DI points to RAM buffer 129 129 130 130 %ifdef CLD_NEEDED 131 131 cld 132 132 %endif 133 call Memory_CopyCXbytesFromDSSItoESDI 133 call Memory_CopyCXbytesFromDSSItoESDI ; Clears CF 134 134 135 135 .XtideUniversalBiosNotFound: … … 163 163 call Buffers_IsXtideUniversalBiosSignatureInESDI 164 164 je SHORT .RomFound ; If equal, CF=0 165 add bx, 80h ; Increment by 2kB (minimum possible distance from the beginning of one option ROM to the next) 166 jnc SHORT .SegmentLoop ; Loop until segment overflows 165 sub bx, -80h ; Increment by 2kB (minimum possible distance from the beginning of one option ROM to the next) 166 jc SHORT .SegmentLoop ; Loop until segment overflows 167 stc 167 168 .RomFound: 168 169 pop cx … … 185 186 push ds 186 187 187 mov ds, [cs:g_cfgVars+CFGVARS.wEepromSegment] 188 eMOVZX bx, [g_cfgVars+CFGVARS.bEepromType] 189 mov cx, [bx+g_rgwEepromTypeToSizeInWords] 190 mov ds, [g_cfgVars+CFGVARS.wEepromSegment] 188 191 xor si, si 189 192 call Buffers_GetFlashComparisonBufferToESDI 190 eMOVZX bx, [cs:g_cfgVars+CFGVARS.bEepromType]191 193 %ifdef CLD_NEEDED 192 194 cld 193 195 %endif 194 mov cx, [cs:bx+g_rgwEepromTypeToSizeInWords]195 196 rep movsw 196 197
Note:
See TracChangeset
for help on using the changeset viewer.