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
Post a Comment