Attn: Bitdog ref. book

Got the "Assembly Language, Master Class" book yesterday, and I'm trying to compile the code using masm 6.11 from this site http://www.csupomona.edu/~vkaramiance/webFiles/soft/soft_main.htm

but I can't get it to make a file and it's giving me messages like
"bad command and file name". It seems the code is error free, and the problem looks to be in the parameters that are used to compile it, I guess. Do you have any experience with that version of masm? Thanks...

Comments

  • : Got the "Assembly Language, Master Class" book yesterday, and I'm trying to compile the code using masm 6.11 from this site http://www.csupomona.edu/~vkaramiance/webFiles/soft/soft_main.htm
    :
    : but I can't get it to make a file and it's giving me messages like
    : "bad command and file name". It seems the code is error free, and the problem looks to be in the parameters that are used to compile it, I guess. Do you have any experience with that version of masm? Thanks...
    :
    [green]
    Hello,
    Bad command and file name is a DOS error message, (I think?)
    have you got your Masm directory in path?
    PATH=c:;C:DOS;c:masm61;
    is what the line looks line in your autoexec.bat
    each field is seperated with a comment ';' char
    MASM FILENAME.ASM;
    is a valid masm command, but I just use a batch file like this ZZZ.BAT:
    @ECHO OFF
    IF NOT EXIST ZZ.ASM GOTO END
    CLS
    IF EXIST ZZ.COM DEL ZZ.COM
    IF EXIST ZZ.EXE DEL ZZ.EXE
    IF EXIST ZZ.OBJ DEL ZZ.OBJ
    C:MASMMASM ZZ;
    IF ERRORLEVEL 1 GOTO ENDING
    C:MASMLINK ZZ;
    IF NOT EXIST ZZ.EXE GOTO END
    C:MASMEXE2BIN ZZ.EXE ZZ.COM
    IF EXIST ZZ.OBJ DEL ZZ.OBJ
    IF EXIST ZZ.EXE DEL ZZ.EXE
    GOTO END
    :ENDING
    ECHO ERRORLEVEL 1
    :END

    for an EXE file, just remove the lines that have .COM in it
    & the line that deletes the .EXE file
    then insert your filename where ZZ is.
    I just made a batch file that makes the batch files and inserts the
    name I want.
    Anyway, "bad command or file name" means that the OS couldn't find
    the file you tryed to run (MASM)
    If that doesn't fix it, report back, er Email me a sample to try.
    bitdog@worldnet.att.net

    Say, how does the book look? good?bad?ugly?
    My mother board burnt up so I'm out of business fer a bit,
    I slapped together an old K6-2 500mhz to get by,
    so I'll be a bit grumpy untill my new MB+CPU combo gets here.
    www.samscomputersonline.com
    seems to have some cheap MB+CPU combo's for under a $100
    Lift up the hood, slide in a new engine, start er up. (thingie)

    Bitdog
    [/green]

  • [b][red]This message was edited by shaolin007 at 2003-10-16 9:11:58[/red][/b][hr]
    : : Got the "Assembly Language, Master Class" book yesterday, and I'm trying to compile the code using masm 6.11 from this site http://www.csupomona.edu/~vkaramiance/webFiles/soft/soft_main.htm
    : :
    : : but I can't get it to make a file and it's giving me messages like
    : : "bad command and file name". It seems the code is error free, and the problem looks to be in the parameters that are used to compile it, I guess. Do you have any experience with that version of masm? Thanks...
    : :
    : [green]
    : Hello,
    : Bad command and file name is a DOS error message, (I think?)
    : have you got your Masm directory in path?
    : PATH=c:;C:DOS;c:masm61;
    : is what the line looks line in your autoexec.bat
    : each field is seperated with a comment ';' char
    : MASM FILENAME.ASM;
    : is a valid masm command, but I just use a batch file like this ZZZ.BAT:
    : @ECHO OFF
    : IF NOT EXIST ZZ.ASM GOTO END
    : CLS
    : IF EXIST ZZ.COM DEL ZZ.COM
    : IF EXIST ZZ.EXE DEL ZZ.EXE
    : IF EXIST ZZ.OBJ DEL ZZ.OBJ
    : C:MASMMASM ZZ;
    : IF ERRORLEVEL 1 GOTO ENDING
    : C:MASMLINK ZZ;
    : IF NOT EXIST ZZ.EXE GOTO END
    : C:MASMEXE2BIN ZZ.EXE ZZ.COM
    : IF EXIST ZZ.OBJ DEL ZZ.OBJ
    : IF EXIST ZZ.EXE DEL ZZ.EXE
    : GOTO END
    : :ENDING
    : ECHO ERRORLEVEL 1
    : :END
    :
    : for an EXE file, just remove the lines that have .COM in it
    : & the line that deletes the .EXE file
    : then insert your filename where ZZ is.
    : I just made a batch file that makes the batch files and inserts the
    : name I want.
    : Anyway, "bad command or file name" means that the OS couldn't find
    : the file you tryed to run (MASM)
    : If that doesn't fix it, report back, er Email me a sample to try.
    : bitdog@worldnet.att.net
    :
    : Say, how does the book look? good?bad?ugly?
    : My mother board burnt up so I'm out of business fer a bit,
    : I slapped together an old K6-2 500mhz to get by,
    : so I'll be a bit grumpy untill my new MB+CPU combo gets here.
    : www.samscomputersonline.com
    : seems to have some cheap MB+CPU combo's for under a $100
    : Lift up the hood, slide in a new engine, start er up. (thingie)
    :
    : Bitdog
    : [/green]
    :
    :

    I finally got it to make a .obj and link, thanks for the help. The program worked like the book said, so the code samples seem to be good so far. The book I am impressed with, it seems well written and easy to comprehend if you have some assembler background. I like how it covers a lot of area's of programming: graphics/sound, device drivers, virus's/antivirus's, ect.. I look forward to reading it once I finish reading the book I'm on right now. Anyways, the disk that is with it is gone, but not needed any way's. Good buy at the price I got it at which was $68.00/used with shipping. Forget those almost new versions people want for $400.00! If you find it around $68 price definitely get!


  • Ok, it works.
    You could always sell the book and get your money back too, I would imagine? (& the price will go up by then?)
    Your post link to the full version of Masm 6.0 looked good too.
    But is it the 6.0 or 6.1 version?
    http://www.csupomona.edu/~vkaramiance/webFiles/soft/soft_main.htm

    Another post linked to MASM32v8.ZIP which I downloaded
    It was a complete/working Masm32 environment for windoze programming and I was very impressed, but haven't got into checking it in detail yet.
    http://www.masm32.com/

    Bitdog

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories