















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture was delivered by Prof. Sai Tiwari at B R Ambedkar National Institute of Technology. This lecture is part of lecture series on Microprocessor and Computer Architecture course. It includes: Cervical, Cancer, Women, Sexual, Transmitted, Herpes, Syphilis, Human, Papilloma, Virus, Cervix
Typology: Slides
Uploaded on 07/26/2012
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















Immediate z Direct z Indirect z Register z Register Indirect z Displacement (Indexed) z Stack
Operand is part of instruction z Operand = address field z e.g. ADD 5 z Add 5 to contents of accumulator z 5 is operand z No memory reference to fetch data z Fast z Limited range
Address field contains address of operand z Effective address (EA) = address field (A) z e.g. ADD A z Add contents of cell A to accumulator z Look in memory at address A for operand z Single memory reference to access data z No additional calculations to work outeffective address z Limited address space
Address A Opcode Instruction Memory Operand
Large address space z
n where n = word length z May be nested, multilevel, cascaded z e.g. EA = (((A))) z Multiple memory accesses to find operand z Hence slower
Address A Opcode Instruction Memory Operand Pointer to operand
No memory access z Very fast execution z Very limited address space z Multiple registers helps performance z Requires good assembly programming orcompiler writing z Direct addressing
Register Address R Opcode Instruction Registers Operand
Register Address R Opcode Instruction Memory Operand Pointer to Operand Registers
z Address field hold two values z A = base value z R = register that holds displacement z or vice versa
A version of displacement addressing z R = Program counter, PC z
z i.e. get operand from A cells from currentlocation pointed to by PC
A holds displacement z R holds pointer to base address
Postindex z
z Preindex z
Operand is (implicitly) on top of stack z e.g. z ADD Pop top two items from stackand add