Changeset 440 in xtideuniversalbios for trunk/Assembly_Library
- Timestamp:
- Aug 19, 2012, 10:56:59 AM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Memory.asm
r376 r440 142 142 jmp ax 143 143 %endif 144 145 146 ;-------------------------------------------------------------------- 147 ; Memory_SumCXbytesFromESSItoAL 148 ; Parameters 149 ; CX: Number of bytes to sum (0=65536) 150 ; ES:SI: Ptr to buffer containing the bytes to sum 151 ; Returns: 152 ; AL: Sum of bytes 153 ; Corrupts registers: 154 ; CX 155 ;-------------------------------------------------------------------- 156 ALIGN JUMP_ALIGN 157 Memory_SumCXbytesFromESSItoAL: 158 push si 159 xor al, al 160 ALIGN JUMP_ALIGN 161 .AddNextByteToAL: 162 add al, [es:si] 163 inc si 164 loop .AddNextByteToAL 165 pop si 166 ret
Note:
See TracChangeset
for help on using the changeset viewer.