|
From: Frank K. <fbk...@zy...> - 2011-03-08 14:52:05
|
kevin becker wrote:
>
> i have ap orblem whenever i try to run it it shuts down instantly. It
> does the same thing when i run a program in Dev C++, but that i can just
> type system("PAUSE);
> please help me
> thanx
> --
> (>^_^)># I made you a waffle
> #<(^_^<) But then I was like...
> (>^#^<) "I'm hungry..."
> (>^_^)> So I ate it.
FUNEM?
SIFM.
FUNEX?
SIFX.
OKMNX.
(since you've eaten all the waffles...) :)
Hi Kevin,
I'm not quite clear what "it" is. (like Bill Clinton :) )
Is Nasm quitting on you before it assembles your file? Or is your
program exiting before you can see the result? The mention of
"system("pause"); sounds like the latter(?). We can call system() from
assembly, too, of course. Probably you want to wait for a keystroke(?).
How you do that depends on your OS, or if you're linking against a C
library, getc()...
I think we need more information about exactly what you did, and what
happened (as opposed to what you wanted to happen).
Best,
Frank
(Incidentally, click "reply all" to reply to the list - otherwise it
goes just to me. I've cleared your "moderation flag", so your message
ought to appear right away, this time. Sorry for the delay.)
|