At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
The HLT instruction halts the CPU until the next external interrupt is fired. The interrupts are used to signal the CPU that something has happened so it can act on it. This instruction can be used to reduce power consumption. Now, all x86 processors from the 8086 onwards have the HLT instruciton. So 8051 does not have this instruction because i was produced before the 8086..... I hope that helps
And in 8051, since SJMP effectively halts the microprocessor, there is no need for a separate halt instruction.
@Tushara my question is why are we using a jump instruction to end the program in micro controller 8051 instead of a HLT instruction.. i dont think its because 8051 was produced before x86 processor.The question was asked to me during our university practical exam.
anyway thanks for the reply