I am a student student learning assembly language at one time. I noticed that although there are instructions like add and mul, arithmetic operators are often used in instructions. For instance:
mov eax,[ebx+ecx]
Is the following equivalent ?
add ebx,ecx mov eax,[ebx]
(ignoring ebx content change)
- , . , , [ebx + ecx] ebx . , . x86 , , , , .
, , (ARM, thumb, mips, msp430, avr ..). , , , . , , , . , , , , , , , .
... ([ebx + ecx] ) - . ebx , ecx - . , , . , . relase ( , ), .
, . , . , , . ebx, .
ebx
Update: I just saw your last suggestion to ignore the change ... If you want to ignore this, then yes, I think the two fragments are equivalent.
Source: https://habr.com/ru/post/1780636/More articles:I need to create a smartphone app that can be run on all smartphones. How can i do this? - javaLINQ XML query does not return data - c #Multithreaded web server versus single-threaded - pythonHow to check if Flash is installed? - androidHow can I fix this "missing, before statement" error in javascript? - javascriptКак определить фактическое тело и получателей SMS с MFMessageComposeViewController для iPhone? - iphoneTemplating Language, such as Smarty, available for dotnet - c #compiling lua script into a standalone executable - compiler-constructionHow to enable authentication for Mercurial push / pull operation when using TortoiseHg? - dvcsRegular expression to clear XML - xmlAll Articles