Intel 80C196NU, 8XC196NP, Microcontroller manual Est, Addressing Modes

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 63
Image 63

8XC196NP, 80C196NU USER’S MANUAL

EST

Extended store word. Stores the value of the source (leftmost) word operand

 

into the destination (rightmost) operand. This instruction allows you to move

 

data from the lower register file to anywhere in the address space. It operates in

 

extended indirect and extended indexed modes.

ESTB

Extended store byte. Stores the value of the source (leftmost) byte operand into

 

the destination (rightmost) operand. This instruction allows you to move data

 

from the lower register file to anywhere in the address space. It operates in

 

extended indirect and extended indexed modes.

4.2ADDRESSING MODES

The instruction set uses four basic addressing modes:

direct

immediate

indirect (with or without autoincrement)

indexed (short-, long-, or zero-indexed)

The stack pointer can be used with indirect addressing to access the top of the stack, and it can also be used with short-indexed addressing to access data within the stack. The zero register can be used with long-indexed addressing to access any memory location.

Extended variations of the indirect and indexed modes support the extended load and store in- structions. An extended load instruction moves a word (ELD) or a byte (ELDB) from any location in the address space into the lower register file. An extended store instruction moves a word (EST) or a byte (ESTB) from the lower register file into any location in the address space. An instruction can contain only one immediate, indirect, or indexed reference; any remaining oper- ands must be direct references.

This section describes the addressing modes as they are handled by the hardware. An understand- ing of these details will help programmers to take full advantage of the architecture. The assembly language hides some of the details of how these addressing modes work. “Assembly Language Addressing Mode Selections” on page 4-11 describes how the assembly language handles direct and indexed addressing modes.

The examples in this section assume that temporary registers are defined as shown in this segment of assembly code and described in Table 4-3.

 

Oseg

at 1ch

AX

DSW

1

BX

DSW

1

CX

DSW

1

DX

DSW

1

EX

DSL

1

4-6

Page 63
Image 63
Intel 80C196NU, 8XC196NP, Microcontroller manual Est, Addressing Modes