News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Pause.

Started by Bioworm, February 01, 2006, 09:17:36 PM

Previous topic - Next topic

Bioworm

How i can make proc Pause? I don't want use Sleep.

MichaelW

What do you mean by "pause"? IOW what will the procedure be waiting for, the end of a delay period, an event, or ?

eschew obfuscation

Bioworm

Quote from: MichaelW on February 01, 2006, 09:31:36 PM
What do you mean by "pause"? IOW what will the procedure be waiting for, the end of a delay period, an event
Yes.

P1

"I want the money."
"What do you want the money for?"
"Yes, I want the money."
"I need an answer to why and for what you need the money for?"   :dazzled:

Regards,  P1  :8)

u


pause proc tim
invoke Sleep,tim
ret
pause endp



pause proc tim
invoke GetTickCount
add tim,eax
@@:
invoke GetTickCount
cmp eax,tim
jb @B
ret
pause endp
Please use a smaller graphic in your signature.

P1

Quote from: Bioworm on February 01, 2006, 09:17:36 PMI don't want use Sleep.
When did they change their mind?

Regards,  P1  :8)

sluggy

Quote from: Bioworm on February 01, 2006, 09:17:36 PM
How i can make proc Pause? I don't want use Sleep.
Why don't you want to use Sleep? Do you want your thread to pause until an external event happens? If so, what event do you want to wait for?

There are several ways to do this, we just need to know your requirements before suggesting any particular one.

zooba

I'm guessing that since Pause is capitalised he's used it in a different langauge or in a library provided at some point (school perhaps?). The only implementations called Pause that I've seen have either been a delay based on seconds or 'Press any key to continue...' style functions.

Try Google and see if you can find a Pause procedure that does what you want.

GregL