Delay On Assembler?

Posted by Norm on Stack Overflow See other posts from Stack Overflow or by Norm
Published on 2010-06-10T17:03:28Z Indexed on 2010/06/10 19:33 UTC
Read the original article Hit count: 477

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about assembly

Related posts about x86