11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.3.5.3 Special Addressing ModesThe special addressing modes do not use specific registers to specify an effectiveaddress. These modes specify the operand or the operand address in a field <strong>of</strong> theinstruction, or they implicitly reference an operand. Figure examples are given for each <strong>of</strong>the special addressing modes discussed in the following paragraphs.6.3.5.3.1 Immediate DataClassified as a program reference, this addressing mode requires one word <strong>of</strong> instructionextension containing the immediate data. Figure 6-7 shows three examples. Example Amoves immediate data to register AO without affecting A 1 or A2. Examples Band C zer<strong>of</strong>ill register AO and sign extend register A2.-6.3.5.3.2 Absolute AddressThis addressing mode requires one word <strong>of</strong> instruction extension containing the absoluteaddress. Figure 6-8 shows that MOVE Y:$5432,BO copies the contents <strong>of</strong> address $5432into BO without changing memory location $5432, register B1, or register B2. Thisaddressing mode is classified as both a memory reference and program reference. The16-bit absolute address is stored in the 16 LSBs <strong>of</strong> the extension word; the eight MSBsare zero filled.6.3.5.3.3 Immediate ShortThe 8- or 12-bit operand, which is in the instruction operation word, is classified as a programreference. The immediate data is interpreted as an unsigned integer (low-orderportion) or signed fraction (high-order portion), depending on the destination register. Figure6-9 shows the use <strong>of</strong> immediate short addressing in four examples.6.3.5.3.4 Short Jump AddressThe operand occupies 12 bits in the instruction operation word, which allows addresses$OOOO-$OFFF to be accessed (see Figure 6-10). The address is zero extended to 16 bitswhen used to address program memory. This addressing mode is classified as a programreference.6.3.5.3.5 Absolute ShortThe address <strong>of</strong> the operand occupies six bits in the instruction operation word, allowingaddresses $0000-$003F to be accessed (see Figure 6-11). Classified as both a memoryreference and program reference, the address is zero extended to 16 bits when used toaddress an operand or program memory.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!