- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can anybody help me know the difference between HLT and JMP $ ?
Is there any possibility that NMI is generated during processor HLT state andif it occurs, how the processor reacts to it.
If NMI occurs during HLT where will the processor return after handling it.
Thanks in advance.
Regards,
Vikranth
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An enabled interrupt, NMI, or a reset will resume execution after the HLT.
JMP stays at JMP location
HLT is privleged of course.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how about:
WAITFOREVER:
HLT
JMP WAITFOREVER
not sure on energy efficiency but i'd think HLT when no interrupts take place takes less effort than bouncing the jmp to itself all the time. (someone from intel is kindly invited to give energy efficiency details on both methods for all models, 8088 and up :P (it's probably a lot different for newer cpus with powersaving modes and tons of cache inside).. it can just sit there and wait for an interrupt and do nothing but on the other hand, compared to the JMP to itself, on that last one the instruction pointer doesn't change, not sure what takes more 'effort' for the cpu and therefore more power.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page