assembly - x64 CMPS instruction (Compare String Operands) -


this instruction confusing, here's description 64-bit version on page 558 of intel x64 manual:

compares quadword @ address (r|e)si quadword @ address (r|e)di , sets status flags accordingly

so it, rsi , rdi or esi , edi?? there way set it?

for microsoft ml64.exe, syntax be:

        cmpsq                  ;64 bit addressing mode         cmpsq   [rsi],[rdi]    ;64 bit addressing mode         cmpsq   [esi],[edi]    ;32 bit addressing mode override                                ;which may invalid addresses (seg fault) 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -