NEC 78K/0 Series User Manual page 97

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
Table of Contents

Advertisement

BRK
[Instruction format]
[Operation]
[Operand]
None
[Flag]
Z
AC
[Description]
• This is a software interrupt instruction.
• PSW and the next instruction address (PC+1) are saved to the stack. After that, the IE flag is cleared (0)
and the saved data is branched to the address indicated with the word data at the vector address (003EH).
Because the IE flag is cleared (0), the subsequent maskable vectored interrupts are disabled.
• The RETB instruction is used to return from the software vectored interrupt generated with this instruction.
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
BRK
(SP–1) ← PSW,
(SP–2) ← (PC+1)
,
H
(SP–3) ← (PC+1)
,
L
← 0,
IE
← SP–3,
SP
← (3FH),
PC
H
← (3EH)
PC
L
CY
User's Manual U12326EJ4V0UM
Break
Software Vectored Interrupt
97

Advertisement

Table of Contents
loading

Table of Contents