YASM questions [NEVER MIND]

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
jakelstr
Member
Member
Posts: 52
Joined: Wed Jul 05, 2006 9:30 am

YASM questions [NEVER MIND]

Post 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 :!:
Last edited by jakelstr on Fri Jul 21, 2006 6:59 am, edited 1 time in total.
"Real corn makes it special!" -The Grim Adventures of Billy and Mandy

MMM...Caffeine

Intel Inside, Idiot Outside
User avatar
carbonBased
Member
Member
Posts: 389
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Post 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
User avatar
JAAman
Member
Member
Posts: 880
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Post 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
User avatar
jakelstr
Member
Member
Posts: 52
Joined: Wed Jul 05, 2006 9:30 am

Post 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?
"Real corn makes it special!" -The Grim Adventures of Billy and Mandy

MMM...Caffeine

Intel Inside, Idiot Outside
User avatar
jakelstr
Member
Member
Posts: 52
Joined: Wed Jul 05, 2006 9:30 am

Soory

Post 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:
"Real corn makes it special!" -The Grim Adventures of Billy and Mandy

MMM...Caffeine

Intel Inside, Idiot Outside
Post Reply