Displacement and Stack Addressing mode - computer architecture:
Displacement Addressing:
In displacement addressing mode there are three types of addressing mode. They are following:
I. Base register addressing
II. Indexing addressing.
III. Relative addressing
This is a grouping of register indirect addressing and direct addressing. The value contained in 1 address field. Directly A is used and the other address refers to a register whose contents are added to A to generate the effective address.
Stack Addressing:
Stack is a linear array of locations which referred to as last-in first out queue. The stack is a booked block of location, deleted and appended only at the top of the stack. Stack pointer is a register which hold the address of top of stack location. This mode of addressing is also called as implicit addressing.