Difference between SIM and RIM instructions in 8085 microprocessor
Set Interrupt Mask (SIM) :
In 8085 Instruction set, SIM stands for “Set Interrupt Mask”. It is 1-Byte instruction and it is a multi-purpose instruction.

The main uses of SIM instruction are –
- Masking/unmasking of RST7.5, RST6.5, and RST5.5
- Reset to 0 RST7.5 flip-flop.
- Perform serial output of data.
Read Interrupt Mask (RIM) :
In 8085 Instruction set, RIM stands for “Read Interrupt Mask”. It is a 1-Byte multi-purpose instruction.

It is used for the following purposes –
- To check whether RST7.5, RST6.5, and RST5.5 are masked or not.
- To check whether interrupts are enabled or not.
- To check whether RST7.5, RST6.5, or RST5.5 interrupts are pending or not.
- To perform serial input of data.
Difference between SIM and RIM instructions in 8085 microprocessor:
| Sr. No. | Sim Instruction | Rim Instruction |
|---|---|---|
| 1 | SIM stands for Set Interrupt Mask. | RIM stands for Read Interrupt Mask. |
| 2 | It is responsible for masking/unmasking of RST 7.5, RST 6.5 and RST 5.5. | It checks whether RST 7.5, RST 6.5, RST 5.5 are masked or not. |
| 3 | It resets to 0 RST 7.5 flip flop. | It checks whether interrupts are enabled or not and to check whether RST 7.5, RST 6.5 or RST 5.5 interrupts are pending or not. |
| 4 | The content of the Accumulator decides the action to be taken. So before executing the SIM instruction, it is mandatory to initialize Accumulator with the required value. | The contents of the Accumulator after the execution of the RIM instruction provide this information.Thus, it is essential to look into the Accumulator contents after the RIM instruction is executed. |
| 5 | SIM instruction can be used for serial output of data. | RIM instruction can be used for serial input of data. |
| 6 | Its opcode(in Hex) is 30. | Its opcode(in Hex) is 20. |
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
Recommended Posts:
- Arithmetic instructions in 8085 microprocessor
- Branching instructions in 8085 microprocessor
- Logical instructions in 8085 microprocessor
- Data transfer instructions in 8085 microprocessor
- Difference between 8080 and 8085 Microprocessor
- Machine Control Instructions in Microprocessor
- Logical instructions in 8086 microprocessor
- Arithmetic instructions in 8086 microprocessor
- Process control instructions in 8086 microprocessor
- String manipulation instructions in 8086 microprocessor
- Data transfer instructions in 8086 microprocessor
- Program execution transfer instructions in 8086 microprocessor
- ROTATE Instructions in 8085
- COMPARE Instructions in 8085
- 8085 program to multiply two 8 bit numbers using logical instructions
- Bus organization of 8085 microprocessor
- Pin diagram of 8085 microprocessor
- Registers of 8085 microprocessor
- Interrupts in 8085 microprocessor
- Flag register in 8085 microprocessor
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

