174k views
4 votes
What is the difference between absolute and immediate addressing?

1 Answer

6 votes

Final answer:

Absolute addressing refers to instructions specifying an actual memory address for the data, while immediate addressing incorporates the data itself within the instruction. Absolute depends on the memory layout, and immediate contains the constant data in the code.

Step-by-step explanation:

The terms absolute and immediate addressing are related to assembly language and programming concepts. Absolute addressing is a method where the instruction specifies the actual memory address of the data. Immediate addressing, on the other hand, is a technique where the instruction itself contains the data, not the address of the data. For example, in absolute addressing, an instruction might refer to a memory location like 0x00F0 which holds the actual data needed. In immediate addressing, the instruction would directly contain the value to be used, such as 5 or 10. Absolute addressing is dependent on the physical memory layout, whereas immediate addressing can be seen as including the constant data directly in the code.

User Bogl
by
7.3k points