简体   繁体   中英

Assembly move instructions

Hi I just started learning assembly in IA32. Can anyone tell me what these two move instructions do? They seem to be some compound instruction.

movl    (%esi,%edx), %ebx
movl    %ebx, (%edi,%edx)
movl    (%esi,%edx), %ebx

Here you have an array whose base is at %edx . You are accessing an element indexed by %esi , and moving it to a temporary register %ebx .

movl    %ebx, (%edi,%edx)

Here you are moving a value from your temporary register %ebx to an element in your %edx array indexed by %edi .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM