C++ Learning Community Forum
August 01, 2010, 03:09:50 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Addressing Modes  (Read 823 times)
syazhani
I wonder how long can titles be... because the longer it is the more attention I can get!
Dr. of C++ology
****
Posts: 529


Cats > Dogs


View Profile
« on: February 16, 2008, 05:11:48 AM »

What is the importance of knowing addressing modes?
Logged

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."- Brian W. Kernighan

What people misunderstood about Islam presented in comical way: http://ummahfilms.com
FrozenKnight
ASM Freak
Global Moderator
Dr. of C++ology
*****
Posts: 546


Do it yourself it's the only way to learn.


View Profile
« Reply #1 on: February 21, 2008, 12:33:22 AM »

They allow you to know how to access memory correctly. In some cases you will be able to intuitively figure it out but if you have something like.
Code:
mov  dword [A], [B]
knowing the addressing modes will allow you to figure out who your assembler will kick this out. but at the same time allow
Code:
mov  dword [A + ecx*4 + ebx], B
Logged


Imagine the impossible, then make it happen.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!