Changeset 145 in xtideuniversalbios for trunk/Configurator/Src/BiosFile.asm
- Timestamp:
- Mar 15, 2011, 11:28:17 AM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/BiosFile.asm
r2 r145 1 ; File name : EEPROM.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 20.4.20104 ; Last update : 21.4.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for loading and saving BIOS image file. 7 3 … … 154 150 ; Cleared if supported size 155 151 ; Corrupts registers: 156 ; DX152 ; Nothing 157 153 ;-------------------------------------------------------------------- 158 154 ALIGN JUMP_ALIGN 159 155 BiosFile_GetFileSizeToCX: 160 mov cx, [si+DTA.dwFileSize ]161 mov dx, [si+DTA.dwFileSize+2]162 test dx, dx ; More than 65535 bytes?156 mov cx, [si+DTA.dwFileSize+2] ; High word of file size to CX 157 test cx, cx ; File larger than 65535 bytes? (clears CF) 158 mov cx, [si+DTA.dwFileSize] ; Low word of file size to CX 163 159 jnz SHORT .TooLargeFile 164 160 cmp cx, MAX_EEPROM_SIZE ; Too large? 165 161 ja SHORT .TooLargeFile 166 clc167 ret168 .TooLargeFile:169 162 stc 163 .TooLargeFile: ; CF is always cleared when jumping to here 164 cmc ; So we invert it 170 165 ret 171 166
Note:
See TracChangeset
for help on using the changeset viewer.