Fujitsu FR81 Computer Hardware User Manual


 
FR81 Family
408 FUJITSU MICROELECTRONICS LIMITED CM71-00105-1E
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.165
7.165 STILM (Set Immediate Data to Interrupt Level Mask
Register)
Transfers the immediate data to the interrupt level mask register (ILM) in the program
status (PS).
Assembler Format
STILM #u8
Operation
if (ILM < 16)
u8 ILM
else if (u8 < 16)
u8+16 ILM
else
u8 ILM
This is a privilege instruction, which is only available in privilege mode. If this instruction is executed in
user mode, it causes an invalid instruction exception (privilege instruction execution).
Only the lower 5 bits (bit4 to bit0) of the immediate data are valid. At the time this instruction is executed,
if the value of the interrupt level mask register (ILM) is in the range 16 to 31, only new ILM settings
between 16 and 31 can be entered. If the value u8 is in the range 0 to 15, the value 16 will be added to that
data before being transferred to the ILM. If the original ILM value is in the range 0 to 15, then any value
between 0 and 31 can be transferred to the ILM.
Flag Change
N, Z, V, C: Unchanged.
Classification
Other instructions, Instruction with delay slot, FR81 updating
NZVC
----