Intel 8XC196NP, 80C196NU manual Sp ← Psw/Intmask Psw/Intmask ←, SP ← INTMASK1/WSR INTMASK1 ←

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 340
Image 340

 

 

 

 

 

 

 

 

 

 

INSTRUCTION SET REFERENCE

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

Operation

 

 

 

Instruction Format

 

 

 

 

PUSHA

PUSH ALL. This instruction is used instead of

 

 

PUSHF, to support the eight additional

PUSHA

 

interrupts. It pushes two words —

 

 

 

 

 

(11110100)

 

PSW/INT_MASK and INT_MASK1/WSR —

 

 

 

onto the stack.

 

 

 

 

 

 

 

 

This instruction clears the PSW, INT_MASK,

 

 

and INT_MASK1 registers and decrements

 

 

the SP by 4. Interrupt calls cannot occur

 

 

immediately following this instruction.

 

 

SP SP – 2

 

 

 

 

 

 

 

 

(SP) PSW/INT_MASK

 

 

 

 

 

PSW/INT_MASK

0

 

 

 

 

 

 

SP SP – 2

 

 

 

 

 

 

 

 

(SP) INT_MASK1/WSR

 

 

 

 

 

INT_MASK1 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

0

0

0

 

0

0

0

 

 

 

 

 

PUSHF

PUSH FLAGS. Pushes the PSW onto the top

 

 

of the stack, then clears it. Clearing the PSW

PUSHF

 

disables interrupt servicing. Interrupt calls

 

(11110010)

 

cannot occur immediately following this

 

 

 

instruction.

 

 

 

 

 

 

 

 

 

SP SP – 2

 

 

 

 

 

 

 

 

(SP) PSW/INT_MASK

 

 

 

 

 

PSW/INT_MASK

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

0

0

0

 

0

0

0

 

 

 

 

 

RET

RETURN FROM SUBROUTINE. Pops the

 

 

PC off the top of the stack.

 

 

 

RET

 

64-Kbyte mode:

1-Mbyte mode:

 

(11110000)

 

PC (SP)

 

PC (SP)

 

 

 

 

 

 

 

 

SP SP + 2

SP SP + 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-35

Page 340
Image 340
Intel 8XC196NP, 80C196NU, Microcontroller manual Sp ← Psw/Intmask Psw/Intmask ←, SP ← INTMASK1/WSR INTMASK1 ←