Changeset 8e3f47b3 in mainline for arch/ia32/src/asm.S
- Timestamp:
- 2005-10-04T22:06:07Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1084a784
- Parents:
- ce031f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/asm.S
rce031f0 r8e3f47b3 40 40 .global memsetb 41 41 .global memsetw 42 .global memcmp43 44 42 45 43 ## Turn paging on … … 200 198 pop %eax 201 199 202 ret203 204 205 ## Compare memory regions for equality206 #207 # Compare a given number of bytes (3rd argument)208 # at memory locations defined by 1st and 2nd argument209 # for equality. If the bytes are equal, EAX contains 0.210 #211 SRC=12212 DST=16213 CNT=20214 memcmp:215 push %esi216 push %edi217 218 movl CNT(%esp),%ecx219 movl DST(%esp),%edi220 movl SRC(%esp),%esi221 222 repe cmpsb %es:(%edi),%ds:(%esi)223 movl %ecx,%eax # %ecx contains the return value (zero on success)224 225 pop %edi226 pop %esi227 228 200 ret 229 201
Note:
See TracChangeset
for help on using the changeset viewer.