Renesas Technology, Tools FAQs
Last Updated: July 5, 2001
Document Number: 01062002_e
Q.
When programming a register access (write, read) to the interrupt control register in C language, NC79WA compiler generates
codes based on the AND instruction. Yet the MCU manual indicates that the interrupt control register should be accessed with STA
or MOV instructions. Can I have NC79WA generate STA and MOV instructions for this access?
A.
The SFR area registers include some interrupt registers that must be accessed using specific assembler instructions. When you need
to access the interrupt register with the STA or MOV instruction, use the asm function in your C program, which will allow you to
describe the register access with either instruction.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales