Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 348, Interrupt Enable

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 355
Image 355

MSM80C154S/83C154S/85C154HVS

89. RETI (Return from interrupt routine)

 

 

7

 

 

 

 

 

 

 

0

Instruction code

:

0

0

1

1

 

0

0

1

0

Operations

:

(PC8~15)((SP))

 

 

 

 

 

 

(SP)(SP)–1 (PC0~7)((SP)) (SP)(SP)–1

*INTERRUPT ENABLE

Byte 1

Number of bytes

: 1

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

Flags

: C AC F0 RS1 RS0 OV F1 P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: This return instruction functions as an interrupt routine terminat-

 

 

ing instruction. If a priority interrupt is generated while a non

 

 

priority interrupt routine is being executed, the CPU commences

 

 

to process the priority interrupt. And once processing of this

 

 

interrupt is commenced, no other interrupts can be processed

 

 

until the RETI instruction is executed.

 

 

Stack contents addressed by the stack pointer are popped in

 

 

the upper order 8 thru 15 of the program counter, and the stack

 

 

pointer is decremented by 1. Then the stack contents address-

 

 

ed by the updated stack pointer are popped in the lower order 0

 

 

thru 7 of the program counter, again decrementing the stack

 

 

pointer by 1. The program counter is updated with the stack

 

 

contents, and control is shifted to the address after updating. If

 

 

a new interrupt is generated, the CPU commences to process

 

 

the interrupt.

348

Page 355
Image 355
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 348, Interrupt Enable