1.What was your learning from this experiment module?
Answer:
Addressing Modes:
• Addressing Modes:-
The access of memory and IOs can be calculated in several different ways, normally referred as Addressing Mode.
• These addressing modes greatly extend flexibility and convenience of instruction set.
80386 supports eleven addressing modes.
1. Immediate addressing mode.
2. Register addressing mode.
3. Direct addressing mode.
4. Register Indirect addressing mode.
5. Based Relative addressing mode.
6. Direct Indexed addressing mode.
7. Base Indexed addressing with or without displacement
8. Scaling ( Scaled Indexed, Based Scaled Indexed, Based Scaled Indexed with displacement.)
9. Bit addressing.
LIFO= Last input First Output.
Push, Pop
AX,BX,CX,DX Four resistor address use
2.why we use stack segment?
Stack Memory addressing modes-
Data are placed onto the stack with a PUSH instruction and removed with a POP instruction.
The stack memory is maintained by two registers: the stack pointer (SP or ESP) and the stack segment register (SS).
PUSH and POP store or retrieve words of data –never bytes.
PUSHA and POPA instructions either push or pop all of the registers, except segment registers, onto the stack.