Jump to content
IGNORED

illegal command: DASM.


RileyP

Recommended Posts

I am using DOSBOX to emulate DOS but after having the assembly code and dasm.exe file in the same directory, going to the directory in DOSBOX, then trying to enter "dasm mygame.asm -f3 -omygame.bin" i get an "Illegal command: dasm."

 

 

PLEASE HELP!!

 

Link to comment
Share on other sites

No worries. I was just checking whether your dasm was actually a DOS program, or Windows command-line. The two are different things.

 

It doesn't really matter. Just grab the Windows version of DASM from this post. Make a new directory c:\dasm and stick the dasm.exe from the zip and your assembly file in there.

 

From Windows, go to "Start -> Search" and type "CMD". This should open a command window. In the command window type "cd \dasm", and then "dasm mygame.asm -f3 -omygame.bin".

 

Good luck!

 

[edit] Also, next time it would be better if you threw questions like these in the 2600 programming forum, instead of the main Atari 2600 one.

Link to comment
Share on other sites

Thanks! That worked for the most part.. but it just says "Fatal assembly error: Check command-line format."

 

 

Usage: dasm sourcefile [options] - is another thing it says....

 

I just saw this after answering your PM, so you can ignore some of the questions I asked in my reply.

 

Assuming the DASM.EXE executable is in the C:\DASM folder, there are a few things that might be causing your problem:

 

(1) The file you're trying to assemble isn't in the C:\DASM folder and you didn't include its file path in the command line.

 

(2) The file you're trying to assemble *is* in the C:\DASM folder, or you *did* include its file path, but the file name itself is wrong-- e.g., it might be "example.asm" but you entered it as "mygame.asm" because that's what the example command line said.

 

(3) The problem might be in the other parts of the command line-- the "-f3" parameter or the "-o" parameter. I think these parameters need to be in lowercase, and "-o" is the letter "o" as in "output." There should be no spaces between the parameters and their arguments.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...