I am trying to wait about 0.02 seconds in assembly, emu8086. That is my code so far:
mov ah, 00h
int 1ah ; Interrupt "get system time"
mov si, dx
mov bx, 1h ; How many ticks to wait (9/18=0.5 second)
tick:
mov ah, 00h
int 1ah
cmp si, dx ; Checks how many ticks has passed
jz tick
mov si, dx
dec bx
jnz tick
ret
endp
bx is the time it should wait (1 tick equals 1/18 seconds). Apparently, I am not able to put less than 1 tick, and for 0.02 seconds i need 0.36 ticks. Thank you very much!