hi to all..
could someone help me how to write a code in a86 assembly language? only 30 seconds coundown.
i haved my code but it doesn't work.

thanks..!!

normally you can use bios interrupt 015h (well known as tsr interrupt)

following code will just wait one second:
mov cx,000fh
mov dx,4240
mov ah,086h
int 015h

you have to put the timeout in milliseconds in register pair cx:dx
000f4240 = 1000000 (one million micro seconds)
you can multiply this value with 30 or you can wait smaller amount of time (0.1 seconds for example) to do something else in your code

have fun ;)

in post above i wrote about milliseconds.
that was wrong, i meant microseconds.
just to point out.
:-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.