Can someone explain me the difference between mov eax, msg and mov eax, [msg] ? Thanks a lot! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone explain me the difference between mov eax, msg and mov eax, [msg] ? Thanks a lot!

I'm not sure, but I think that : mov eax, [msg] moves the address of msg in eax register... If someone can explain me... with : dd msg 'Hello world!'

6th Nov 2018, 6:17 PM
Théophile
Théophile - avatar
3 Answers
+ 9
Yes mov is an statement which is used to transfer information one address information(data) to the other stated location MOV eax,[msg] Will move the content of msg to eax which is hello world or you can do MVI A,msg MOV eax,A
6th Nov 2018, 6:20 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 1
Jamie thanks a lot. I began learning assembly few days ago, and some things weren't clear for me... I know how assembly language is difficult but I want to know how does a computer work. Once again : thanks guys ! 😉
6th Nov 2018, 10:10 PM
Théophile
Théophile - avatar
0
Thanks a lot!
6th Nov 2018, 6:32 PM
Théophile
Théophile - avatar