BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Saturday 15 December 2012

PSEUDO-DIRECT ADDRESSING


e)      Pseudo-Direct Addressing
I)                   The memory address is (mostly) embedded in the instructions.
II)                Speciafically used for J-type instructions, j and jal.
III)             Effective address is calculate by taking the upper 4 bits of the PC, concatenated to the 26 bits immediate value, and the lower 2 bits are 00.
IV)             The new effective address will always be word-aligned and we can never have a target address of a jump instruction with 2 bits.
*Word-aligned means that an address (unless you use one of the special instructions for loading or storing bytes) must be a multiple of 4.
*An address that isn’t multiple of 4 can lead to undesirable results.

BY WONG POH LING
B031210033

0 comments: