Fujitsu F2MC-8L Series Hardware Manual page 66

8-bit microcontroller
Hide thumbs Also See for F2MC-8L Series:
Table of Contents

Advertisement

Features of General-purpose Registers
General-purpose registers have the following features:
RAM can be accessed at high-speed using short instructions (general-purpose register
addressing).
Registers are grouped in blocks in the form of register banks. This simplifies the process of
protecting register contents and dividing registers by function.
Dedicated register banks can be permanently assigned for each interrupt processing or vector
call (CALLV #0 to #7) processing routine by a general-purpose register. For example, use
"register bank 4 for interrupt 2".
For example, a particular interrupt processing routine only uses a particular register bank which
cannot be written to unintentionally by other routines. The interrupt processing routine only
needs to specify its dedicated register bank at the start of the routine to effectively save the
general-purpose registers in use prior to the interrupt. Therefore, saving the general-purpose
registers to the stack or other memory location is not necessary. This allows high-speed
acceptance and handling of interrupts while maintaining simplicity.
Also, as an alternative to saving general-purpose registers in subroutine calls, register banks
can be used to create reentrant programs (programs that do not use fixed addresses and can
be entered more than once) usually made by the index register (IX).
Check:
If an interrupt processing routine changes the register bank pointer (RP), ensure that the
program does not also change the interrupt level bits in the condition code register (CCR:
IL1, IL0) when specifying the register bank.
3.3 General-Purpose Registers
39

Advertisement

Table of Contents
loading

Table of Contents