Page 1 of 1

YASM questions [NEVER MIND]

Posted: Sat Jul 08, 2006 11:17 am
by jakelstr
Hi,
Can anyone tell me how to download YASM? When i run any of the pre-compiled binarys, all I get is a CMD window with a bliking cursor.
HELP ME :!:

Posted: Sun Jul 09, 2006 8:46 am
by carbonBased
How are you trying to run it?

You do realize, yasm is a command line tool, and if you're double clicking on the executable, you're launching the executable, with no arguments, potentially defaulting to reading from stdin.

Have you used an assembler before?

The command line syntax is usually pretty similar through each of them. To assemble a file in yasm, try:

yasm -o file.o file.asm

Posted: Sun Jul 09, 2006 8:55 am
by JAAman
im not familier with yasm, but if its like most assemblers,

when you run it, it doesnt do anything -- you have to give it a file name on the command line when you run it, then it will assemble that file in the manner specified on the commandline

if you just run it without any commandline parameters, it wont do anything, and will just immediately quit

you must first write your ASM file in a text editor, then pass it on the commandline -- generally something like:

yasm myfile.asm

you may also want to specify other parameters (such as output filename, output format (binary or some form of object)

read the file that comes with yasm, and it should tell you what the commandline options are


a black window with a blinking cursor is what is left when a windows console program (or emulated dos program) terminates, and the window isnt automatically closed



edit: oops -- i guess someone types faster than i do!! -- and shorter

Posted: Sun Jul 09, 2006 11:24 am
by jakelstr
Having used NASM before, I realize that it has to have a file to run. But even if I run it from CMD, should it at least give me an error if I type something stupid like pie?

Soory

Posted: Sun Jul 09, 2006 11:30 am
by jakelstr
scratch that last statement. Typing C:\yasm pie does give me an error. My brain was just having a moment. That happens, a lot :roll: