What are the commons uses of break, cop, nop instructions on many of the
current processors?
thnx for any input,
Joe
what are break and cop?
seems x86 doesn't have a nop.
db 90h is xhchg ax, ax or something which doesn't do anything. :)
I think nop is not a big deal. more importand might be halt - e.g. just wait
for an IRQ which probably can save some energy if HLT somehow helps CPU to
change power consumption mode.
Good Luck
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/
No idea about break and cop, but nop is quite important for compiler
writers. It helps to align code, and to allow a peephole optimizer to run on
code. The peephole optimizer can replace long instruction sequences with
shorter ones, and fill the gaps with nops. This means the code is still
executable, and a later stage which runs through the code to compact and
remove the nops can be developed separately.