CHAPTER 19 INTERRUPT FUNCTIONS
Page 729 of 920
The AX, BC, DE, and HL registers are used for DIVHU/DIVWU. Use these registers by stacking them for
interrupt servicing.
Caution
When executing DIVHU and DIVWU instructions during the interrupt processing, execute
them in the interrupt disabled (DI) state.
Excepting the instruction execution in RAM area, when NOP instruction is added right after
DIVHU and DIVWU instructions in the assembly language source, DIVHU and DIVWU
instructions can be executed even in the interrupt enabled state.
For the following compilers, when DIVHU and DIVWU instructions are output at building, NOP
instruction is automatically inserted right after the output.
• CA78K0R (compiler product manufactured by Renesas Electronics Corporation) V1.71 or
later: C language source and assembly language source
• EWRL78 (compiler product manufactured by IAR Systems): C language source of Service
pack 1.40.6 or later
• GNURL78 (compiler manufactured by KPIT Technologies Ltd.): C language source of 1.40.6
or later
MOVW AX, #8081H
MOVW BC, #8080H
MOVW DE, #0002H
MOVW HL, #0000H
DIVWU
MOVW !addr16, AX
MOVW AX, BC
MOVW !addr16, AX
MOVW AX, DE
MOVW !addr16, AX
MOVW AX, HL
MOVW !addr16, AX
PUSH AX
PUSH BC
PUSH DE
PUSH HL
DIVWU
POP HL
POP DE
POP BC
POP AX
RETI
Interrupt1
PUSH AX
PUSH BC
PUSH DE
PUSH HL
DIVWU
POP HL
POP DE
POP BC
POP AX
RETI
Interrupt2
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...