Assembler Developer

Moderators: None (Apply to moderate this forum)
Number of threads: 1030
Number of posts: 1826

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Delay or system pause Posted by karma4561 on 29 Sept 2008 at 1:58 PM
Hello, there is some way to do a system pause in assembly? or make a delay?

It could be with interruptions?

Best regards,
Report
Re: Delay or system pause Posted by anthrax11 on 29 Sept 2008 at 2:53 PM
Depends on the operating system.

In DOS you can hook interrupt 1ch or use int 15h function 86h.
In Windows you can use the Sleep() function.
With Linux you have the wait command.

edit:
If you only need to wait for the user to press a key in DOS,
use the keyboard interrupt:
xor  ah, ah    ; function 00h - get character
int  16h
Report
Re: Delay or system pause Posted by karma4561 on 5 Oct 2008 at 8:38 AM
thanks for the information, it was very valuable!!

best regards




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.