Jump to content



1

I Can't Get DASM to Run


8 replies to this topic

#1 R. Jones OFFLINE  

R. Jones

    Star Raider

  • 53 posts

Posted Fri Aug 4, 2006 2:14 PM

Whenever I try to run DASM this briefly flashes on the screen before the program exits:dasm.JPG

I've used the 2600IDE for bB to compile several things. Since batari basic uses DASM to assemble games (it does use DASM right?) I don't think there's anything wrong with my version of DASM.

I'm using Windows XP.

I downloaded the latest version of DASM, and extracted it into a DASM folder in C:\program files\DASM. I also tried extracting it into several other folders. None worked so far.

I'm using the bin>DOS>dasm.exe. So I tried downloading a DOS emulator (DOSbox) and opening dasm through that. This message comes up "This program cannot be run in DOS mode."

Anyone know what I'm doing wrong or a way to set up an IDE (preferably crimson editor since I already have and have used it) to use dasm?

#2 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!

  • 16,745 posts
  • Always left from right here!
  • Location:Düsseldorf, Germany

Posted Fri Aug 4, 2006 2:46 PM

Since DASM is a DOS program it is controlled by command line parameters. These seem to be wrong.

#3 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Fri Aug 4, 2006 3:05 PM

I use the Crimson editor as well; this is how I have my user tools configured:

Menu Text: Compile DASM Source Code
Command: D:\Games\Atari2600Dev\DASM\bin\DOS\dasm.exe
Argument: $(FileName) -f3 -o$(FileTitle).bin -l$(FileTitle).lst
Initial Dir: $(FileDir)

Adjust the folders as needed. Basically, to run DASM you need to feed it a bunch of command-line arguments, including the filename of the source file, the output file, and the argument -f3

#4 Andrew Davie OFFLINE  

Andrew Davie

    Stargunner

  • 1,314 posts
  • Location:Tasmania

Posted Fri Aug 4, 2006 7:29 PM

View PostR. Jones, on Sat Aug 5, 2006 6:14 AM, said:

Whenever I try to run DASM this briefly flashes on the screen before the program exits:Attachment attachment

I've used the 2600IDE for bB to compile several things. Since batari basic uses DASM to assemble games (it does use DASM right?) I don't think there's anything wrong with my version of DASM.

I'm using Windows XP.

I downloaded the latest version of DASM, and extracted it into a DASM folder in C:\program files\DASM. I also tried extracting it into several other folders. None worked so far.

I'm using the bin>DOS>dasm.exe. So I tried downloading a DOS emulator (DOSbox) and opening dasm through that. This message comes up "This program cannot be run in DOS mode."

Anyone know what I'm doing wrong or a way to set up an IDE (preferably crimson editor since I already have and have used it) to use dasm?


You know you can't just click on dasm.exe from windows and expect it to work, right?

When you say it just flashes briefly and then exits, it looks very much like you're doing that. To run DASM as a DOS app (as opposed to calling it from within an IDE) you need to go to a DOS command window first. Start/RUN and type in 'cmd' if you're using XP/Windows. Then navigate to the directory where DASM is, and type in the appropriate command line.

Cheers
A

#5 R. Jones OFFLINE  

R. Jones

    Star Raider

  • 53 posts

Posted Sat Aug 5, 2006 9:19 AM

View Postvdub_bobby, on Fri Aug 4, 2006 4:05 PM, said:

I use the Crimson editor as well; this is how I have my user tools configured:

Menu Text: Compile DASM Source Code
Command: D:\Games\Atari2600Dev\DASM\bin\DOS\dasm.exe
Argument: $(FileName) -f3 -o$(FileTitle).bin -l$(FileTitle).lst
Initial Dir: $(FileDir)

Adjust the folders as needed. Basically, to run DASM you need to feed it a bunch of command-line arguments, including the filename of the source file, the output file, and the argument -f3
Thanks. That worked.

View PostAndrew Davie, on Fri Aug 4, 2006 8:29 PM, said:

View PostR. Jones, on Sat Aug 5, 2006 6:14 AM, said:

[ . . . ]


You know you can't just click on dasm.exe from windows and expect it to work, right?

When you say it just flashes briefly and then exits, it looks very much like you're doing that. To run DASM as a DOS app (as opposed to calling it from within an IDE) you need to go to a DOS command window first. Start/RUN and type in 'cmd' if you're using XP/Windows. Then navigate to the directory where DASM is, and type in the appropriate command line.

Cheers
A
I tried to open it like a normal windows application first. When It didn't come up, I assumed it would only run in DOS. I tried to compile the disassembly of Donkey Kong (from the MiniDig) to test it out, using the "dasm source.asm -f3 -game.bin" command line from Kirk Israel's 2600 101 guide. I got an error message.

It might just be the disassembly, though. I succesfully compiled several demos and Adventure with DASM through Crimson Editor, but it won't compile Donkey Kong. (The bin it spits out is just a blank screen with a rapid clicking noise in the background.) I might try to compile several .asm files that worked through DOS later.

#6 xucaen OFFLINE  

xucaen

    Star Raider

  • 94 posts
  • Looking for new owner for commodore 64
  • Location:Ma

Posted Sat Aug 5, 2006 7:00 PM

View PostR. Jones, on Sat Aug 5, 2006 11:19 AM, said:

I tried to compile the disassembly of Donkey Kong (from the MiniDig) to test it out, using the "dasm source.asm -f3 -game.bin" command line from Kirk Israel's 2600 101 guide. I got an error message.

hi there, i'm not sure if this was just a typo in your post or if this was the actual command line you used, but the last parameter that indicates the output bin file should read "-ogame.bin". You probable figured it out already, but just thought i'd mention it for future reference..

take care

Jim

#7 Devin OFFLINE  

Devin

    Moonsweeper

  • 487 posts
  • Its all HCLR to me!
  • Location:Sacramento, California,

Posted Fri Dec 21, 2007 4:55 AM

It also might help to put together a quick-n-dirty batch file to save all that typing.

@echo off
dasm %1.asm -f3 -o%1.bin
start %1.bin

This assumes that you have registered .bin with Stella. I saved by batch file as asm.bat. If my file was called test.asm, I would only have to type

asm test

It will be assembled and then opened by Windows.

#8 Nukey Shay OFFLINE  

Nukey Shay

    Sheik Yerbouti

  • 20,458 posts
  • Location:The land of Gorch

Posted Sun Jan 13, 2008 9:15 AM

That's a very good tip.
I use a similar batch file all the time:

dasm %1.asm -f3 -o%1.bin
z26 %1 -n

...tho I just named it j.bat (for joystick input). If I'm constantly making edits and trying them out for a specific program, I just use the actual names in a batch file named a.bat.

#9 Cybergoth OFFLINE  

Cybergoth

    Quadrunner

  • 8,207 posts
  • This is Sparta!
  • Location:Bavaria

Posted Sun Jan 13, 2008 11:51 PM

I have just configured Textpad so that with CTRL-1 it will compile any source code and with CTRL-2 it will launch the BIN in Z26 :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users