17.05.2015 Views

16-Bit Microprocessor Handbook

16-Bit Microprocessor Handbook

16-Bit Microprocessor Handbook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If indirect addressing with indexing is specified, then a direct address is first computed by adding the displacement. as<br />

a signed binary number, to the contents of the specified Index register; the direct indexed address thus computed provides<br />

the memory location where the indirect address will be found. This is illustrated as follows:<br />

MEMORY<br />

Memory .. OFDC<br />

Address<br />

OFDD<br />

OFDE<br />

AC2 = 1042'6 .. OFDF 217A Direct, indexed addressed word<br />

DISP =90'6<br />

OFEO<br />

1042 + FF9D = OFDF<br />

·<br />

extended sign bit<br />

. i ·<br />

: •<br />

! }<br />

2178<br />

2179<br />

, J<br />

Effective ~ 217A This word addressed indirectly<br />

Memory<br />

217B<br />

Address<br />

217C<br />

INS8900 AND PACE STATUS AND CONTROL FLAGS<br />

The INS8900 has a <strong>16</strong>-bit Status and Control Flag register. This register is on the CPU chip and is illustrated as<br />

follows:<br />

Fourteen of the <strong>16</strong> register bits are used. Three of the 14 bits are status flags as we define a status flag. These<br />

three flags are:<br />

Overflow (OVF), which is a typical Overflow status.<br />

Carry (CRY)'<br />

Link (LINK),<br />

which is set and reset by arithmetic operations, as described for a typical Carry status.<br />

which is set and reset by Shift and Rotate instructions, as described for the hypothetical microcomputer's<br />

Carry status in Volume 1, Chapter 7.<br />

The separation of Carry into two statuses, one for shift and rotate operations, and the other for arithmetic<br />

operations, isa fairly common minicomputer feature; the advantage of separating these two statuses is that the<br />

results of arithmetic operations can be preserved across subsequent Shift and Rotate instructions.<br />

BYTE causes data to be accessed in 8-bit lengths when this status is set to 1, or in <strong>16</strong>-bit lengths when this status is<br />

set to O.<br />

Five bits (lE1 through IES) are reserved for interrupt processing. These five bits selectively enable and disable five<br />

interrupt lines. One of these lines OE1) is reserved for the Stack Overflow interrupt the other four lines are available for<br />

external device interrupt requests. There is also a master interrupt enable and disable bit (INT EN).<br />

<strong>Bit</strong>s F11, F12, F13 and F14 are control flags which are output directly to INS8900 and PACE device pins; they can<br />

be used in any way to control external devices. One use, to select normal or split base page addressing, has already<br />

been described.<br />

Only the three status flags OVF, CRY and LINK are automatically set or reset in the course of instruction execution.<br />

The remaining 11 bits of the Status and Control Flags register are set and reset by instructions or instruction sequences<br />

that read data into, or write data out of, the Status and Control Flags register.<br />

1-9

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

Saved successfully!

Ooh no, something went wrong!