From: kevin b. <maj...@gm...> - 2011-03-08 00:00:12
|
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. |
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.) |
From: Frank K. <fbk...@zy...> - 2011-03-08 18:58:53
|
Frank Kotler wrote: > (Incidentally, click "reply all" to reply to the list - otherwise it > goes just to me. Jeez, I did it myself... ---------------------- kevin becker wrote: > uhm > > when i click on the NASM.exe, it pops upon, and then closes before anything can be even SEEN > > it doesn't do anything.... Ah, okay. Nasm is a "command line" utility. That is, at a "command prompt", you'd type "nasm -f win32 -i c:\my\includes\ -o myfile.obj myfile.asm", or so. You can get a command prompt by doing start->run->"cmd" - I think that still works. Alternatively, there's a way to make a "shortcut" to Nasm that will pop up a dialog-box when you click on it that will allow you to enter a command line. I'm afraid I don't remember how that one goes - "properties->advanced" somewhere, no doubt... Or, you might prefer an "IDE" - an "Integrated Development Environment" which will allow you to clickie-clickie to edit, assemble, run, debug, etc. NaGoA was one created for Nasm. It appears to be "abandoned", but still works, AFAIK. http://www.visual-assembler.pt.vu/ (wow! that's *really* looking abandoned!) Probably the most popular IDE is RadAsm... http://radasm.cherrytree.at/radasm/ You can use Nasm with Visual Studio, too, I understand, though it may take more "setup" than with RadAsm(?). I prefer working from a command prompt, myself, and I'm not running Windows, so I can't help you much. Maybe someone who is can give you more specific advice... What you're seeing is "normal behavior" from Nasm. The error message, which goes by too fast to see, says "error: no input file specified". Best, Frank |
From: Frank K. <fbk...@zy...> - 2011-03-08 22:13:16
|
kevin becker wrote: > uhm ok iguess. > ive heard of something called virtual computer which i guess simulates > what happens if you run things/do things on your comp, but since its a > simulation there's no danger of screwing up files. Mmmm, no chance of altering files legitimately either, then? > if i download Mac on it, would Nasm work normally?? Dunno. It "should", if the emulation is correct, I guess. Try it. Seems like it might be the hard way... Try it... no harm done(?) if it doesn't work normally... Best, Frank > > ss simOn Tue, Mar 8, 2011 at 1:13 PM, Frank Kotler <fbk...@zy... > <mailto:fbk...@zy...>> wrote: > > kevin becker wrote: > > uhm > > when i click on the NASM.exe, it pops upon, and then closes > before anything can be even SEEN > > it doesn't do anything.... > > > Ah, okay. Nasm is a "command line" utility. That is, at a "command > prompt", you'd type "nasm -f win32 -i c:\my\includes\ -o myfile.obj > myfile.asm", or so. You can get a command prompt by doing > start->run->"cmd" - I think that still works. Alternatively, there's > a way to make a "shortcut" to Nasm that will pop up a dialog-box > when you click on it that will allow you to enter a command line. > I'm afraid I don't remember how that one goes - > "properties->advanced" somewhere, no doubt... > > Or, you might prefer an "IDE" - an "Integrated Development > Environment" which will allow you to clickie-clickie to edit, > assemble, run, debug, etc. NaGoA was one created for Nasm. It > appears to be "abandoned", but still works, AFAIK. > > http://www.visual-assembler.pt.vu/ > > (wow! that's *really* looking abandoned!) > > Probably the most popular IDE is RadAsm... > > http://radasm.cherrytree.at/radasm/ > > You can use Nasm with Visual Studio, too, I understand, though it > may take more "setup" than with RadAsm(?). I prefer working from a > command prompt, myself, and I'm not running Windows, so I can't help > you much. Maybe someone who is can give you more specific advice... > What you're seeing is "normal behavior" from Nasm. The error > message, which goes by too fast to see, says "error: no input file > specified". > > Best, > Frank > > > > > -- > (>^_^)># I made you a waffle > #<(^_^<) But then I was like... > (>^#^<) "I'm hungry..." > (>^_^)> So I ate it. > > |
From: Frank K. <fbk...@zy...> - 2011-03-09 11:28:59
|
kevin becker wrote: > ok thank you :) > > im trying to learn ASM so i can make an OS, im working on logo You might find some of the information on this site useful: http://wiki.osdev.org/Main_Page Good luck! Best, Frank |