BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Saturday 15 December 2012

PC-RELATIVE ADDRESSING


d)      PC-Relative Addressing
I)                   A data or instruction memory location is specified as an offset relative to the incremented PC.
II)                It usually used in condition branches. PC refers to special purpose register, Program Counter that stores the address of next instruction to be fetched.
III)             The offset value can be an immediate or an interpreted label value.
IV)             The effective address is the sum of the Program Counter and offset value in the instruction. It determines the branch target.
V)                This addressing inplements position-independent codes. Only a small offset is adequate for shorter loops.

BY CHONG CAI NING
B031210080

0 comments: