How long delay you need?here are a few lines of my code
mov cx,0ffffh
time:
nop
nop
nop
loop time
i wrote them for creating some time delay...but dont know why its not working... i didn't get any errors even...
Where are the decrement and test for zero instruction(s)?here are a few lines of my code
i wrote them for creating some time delay...but dont know why its not working... i didn't get any errors even...Code:mov cx,0ffffh time: nop nop nop loop time
They are inherent in the "loop" instruction. Take a trip to the 21st century of complex instructions set machines.Where are the decrement and test for zero instruction(s)?
I would rather say these instructions are obsolete. They only support them for compatibility. In early Pentiums these instructions used to run slower than the same thing coded with "regular" instructions. I don't know if they made them any faster by now. I suppose they should've because not that many things they can still squeeze.Take a trip to the 21st century of complex instructions set machines.
--Grin!
Never coded x86 in asm! I save that for PIC. PC stuff I do C and C++.They are inherent in the "loop" instruction. Take a trip to the 21st century of complex instructions set machines.
--Grin!
by Jake Hertz
by Duane Benson
by Robert Keim