tags:

views:

52

answers:

1

Hey, I want to know how i can do delay (Timer) on assembler 16 bit on PC. Thank You for helping, Norm.

OS: Windows

CODE:

 delay:
     inc bx
     cmp bx,WORD ptr[time]
     je delay2
     jmp delay
 delay2:
     inc dx
     cmp dx,WORD ptr[time2]
     je delay3
     jmp delay
     mov bx,0
 delay3:
     inc cx
     cmp cx,WORD ptr[time3]
     je Finish_delay
     jmp delay

its not work good i need less complicated code

A: 

Check here (How can I create a sleep function in 16bit MASM Assembly x86?).

Tarantula