Well, maybe I should have given the bigger picture. I'm actually wanting just a long delay.
I have to use the LOOP instruction, and I just want to put a loop in a loop
LOOP automatically decrements CX until it is 0.
Thing is, when I try and use different registers other than CX for the loop, it won't work (because obviously, CX is for counting)
I've tried inserting 100 nops, but it won't take too many, and I know it looks rubbish. The loop within loop thing is the only way to go.
DELAY
proc near
mov cx,0FFFFh ;count value for the delay
delay: nop ;twiddle fingers for a while
nop ;again
nop ;and again
nop
nop
loop delay ;loop label = dec CX and then jnz label
ret
DELAY endp
This code doesn't hang. I forgot to put in the ret command in the last code I sent, just because.
Cheers for taking a look
