What are the differences among addressing modes like immediate, indirect and indexed?

What are the differences among addressing modes like immediate, indirect and indexed? The difference is all in...

how you access memory on the CPU.

Immediate addressing is when a hard coded number (the immediate) is part of the instruction. In x86 assembly language, MOV EAX , 8 is the instruction for moving the hard coded value 8 into the EAX register and is immediate addressing.

Indirect addressing is when memory is read out of what a register points to. For example, MOV EAX , [ECX] shows the indirect addressing of the ECX register and can be thought of a *pVar in the C programming language.

Finally, indexed addressing is when a value is added to the register and the resultant value as used as the indirect value. MOV EAX , {ECX + 10] means add 10 hex bytes to the value in ECX and get the memory at that location.

This was first published in April 2002

Dig Deeper



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:









  • Virtual desktop security guide

    To secure virtual desktops, consider antivirus, certificates and network vulnerabilities. Just remember, VDI doesn't always ...

  • Guide to low-cost desktop virtualization

    In this guide, learn to virtualize desktops without spending more than you would when deploying PCs, and what VDI vendors are ...

  • VDI pilot project guide

    A VDI pilot project should start with a VDI project plan. Know what pitfalls to avoid and test product options to achieve a ...