Changeset 118 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
- Timestamp:
- Feb 28, 2011, 4:23:58 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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:
Note:
See TracChangeset
for help on using the changeset viewer.