The Wayback Machine - https://web.archive.org/web/20211117194756/https://www.geeksforgeeks.org/machine-control-instructions-in-microprocessor/
Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

Machine Control Instructions in Microprocessor

  • Difficulty Level : Basic
  • Last Updated : 29 Jun, 2021

These type of instructions control machine functions such as Halt, Interrupt, or do nothing. This type of instructions alters the different type of operations executed in the processor. 

Following are the type of Machine control instructions: 
 

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

1. NOP (No operation)
2. HLT (Halt)
3. DI (Disable interrupts)
4. EI (Enable interrupts)
5. SIM (Set interrupt mask)
6. RIM (Reset interrupt mask)

 



  1. NOP (No operation) – 
     
Opcode- NOP
Operand- None
Length- 1 byte
M-Cycles- 1
T-states- 4
Hex code- 00
  1. It is used when no operation is performed. No flags are affected during the execution of NOP. The instruction is used to fill in time delay or to delete and insert instructions while troubleshooting. 

     

  2. HLT (Halt and enter wait state) – 
     
Opcode- HLT
Operand- None
Length- 1 byte
M-Cycles- 2 or more
T-states- 5 or more
Hex code- 76
  1. The Microprocessor finishes executing the current instruction and halts any further execution. The contents of the registers are unaffected during the HLT state. 

     

  2. DI (Disable interrupts) – 
     
Opcode- DI
Operand- None
Length- 1 byte
M-Cycles- 1
T-states- 4
Hex code- F3
  1. Disable interrupt is used when the execution of a code sequence cannot be interrupted. For example, in critical time delays, this instruction is used at the beginning of the code and the interrupts are enabled at the end of the code. The 8085 TRAP cannot be disabled. 

     

  2. EI (Enable interrupts) – 
     
Opcode- EI
Operand- None
Length- 1 byte
M-Cycles- 1
T-states- 4
Hex code- FB
  1. After a system reset or the acknowledgement of an interrupt, the Interrupt Enable the flip-flop is reset, thus disabling the interrupts. 

     

  2. SIM (Set interrupt mask) – 
     
Opcode- SIM
Operand- None
Length- 1 byte
M-Cycles- 1
T-states- 4
Hex code- 30
  1. This SIM instruction is used to implementation of different interrupts of 8085 microprocessor like RST 7.5, 6.5 and 5.5 and also serial data output. It does not affect TRAP interrupt. 

     

  2. RIM (Reset interrupt mask) – 
     
Opcode- RIM
Operand- None
Length- 1 byte
M-Cycles- 1
T-states- 4
Hex code- 20
  1. This is a multipurpose instruction used to read the status of 8085 interrupts 7.5, 6.5, 5.5 and to read serial data input bit. 
     

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :