My problem is that I wrote code that should output the result to a set of LEDs connected to the parallel port. When I ran the code, it did almost nothing. My instructor told me that the code ran too fast, that my eyes did not see what happened.
I found that there are several ways to make a time delay, I tried to loop the NOP, but I think I can not determine what is happening. Is there a better way?
I have a piece of code where I have to add a time delay to:
org 100h mov ax, 0 mov dx, 378 out dx, ax mov ax, 1 ; 1st mov cx, 1ah start1st: mov ax, 1 left: out dx, ax ; --------------------------------> how to loop? mov bx, 2 mul bx cmp ax, 80h jl left dec cx cmp cx,0 jg start1st ; end 1st
source share