Question: what are rim and sim instructions?
Answer: RIM instruction means Read Interrupt Mask which is used to read the status of interrupts which are pending or yet to be executed. SIM means Set Interrupt Mask which is used to set those interrupts. In both the cases the operation is done through the accumulator only. Here's and insight to the process.