240
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.123 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).
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".
■ STILM (Set Immediate Data to Interrupt Level Mask Register)
Assembler format: STILM #u8
Operation: u8 → ILM
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 1 cycle
Instruction format:
Example: STILM #14H
NZVC
––––
MSB LSB
10000111
u8
ILM ILM
11111 10100
Before execution After execution
Instruction bit pattern : 1000 0111 0001 0100