Changeset 620 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
- Timestamp:
- Oct 5, 2021, 1:01:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
r614 r620 173 173 ret 174 174 175 ;-------------------------------------------------------------------- 176 ; Buffers_GetSelectedEepromSizeInWordsToAX 177 ; Parameters: 178 ; Nothing 179 ; Returns: 180 ; AX: Selected EEPROM size in WORDs 181 ; Corrupts registers: 182 ; BX 183 ;-------------------------------------------------------------------- 184 ALIGN JUMP_ALIGN 185 Buffers_GetSelectedEepromSizeInWordsToAX: 186 eMOVZX bx, [cs:g_cfgVars+CFGVARS.bEepromType] 187 mov ax, [cs:bx+g_rgwEepromTypeToSizeInWords] 188 189 cmp bl, EEPROM_TYPE.SST_39SF 190 jnz SHORT .HaveEepromSize 191 cmp ax, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] 192 jae SHORT .HaveEepromSize 193 shl ax, 1 ; Auto-double SST size when too small. 194 .HaveEepromSize: 195 ret 175 196 176 197 ;-------------------------------------------------------------------- … … 181 202 ; Nothing 182 203 ; Corrupts registers: 183 ; AX, CX, DI204 ; AX, BX, CX, DI 184 205 ;-------------------------------------------------------------------- 185 206 ALIGN JUMP_ALIGN … … 187 208 push es 188 209 189 eMOVZX di, [cs:g_cfgVars+CFGVARS.bEepromType]190 mov cx, [cs:di+g_rgwEepromTypeToSizeInWords]210 call Buffers_GetSelectedEepromSizeInWordsToAX 211 mov cx, ax 191 212 sub cx, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] ; CX = WORDs to append 192 213 jbe SHORT .NoNeedToAppendZeroes
Note:
See TracChangeset
for help on using the changeset viewer.