简体   繁体   English

装配移动说明

[英]Assembly move instructions

Hi I just started learning assembly in IA32. 嗨,我刚开始在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 . 这里有一个数组,其基数为%edx You are accessing an element indexed by %esi , and moving it to a temporary register %ebx . 您正在访问由%esi索引的元素,并将其移动到临时寄存器%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 . 在这里,您要将临时寄存器%ebx的值移动到%edi索引的%edi %edx数组中的元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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