Jump to content

Photo

DASM in Linux Mint 17.3

Linux Atari 2600 Programming. dasm

6 replies to this topic

#1 AtariFan2001 OFFLINE  

AtariFan2001

    Combat Commando

  • 2 posts

Posted Wed Feb 3, 2016 1:34 PM

Hello,

 

I've recently been learning Atari 2600 programming and I was reading some tutorials and it kept on saying that I needed DASM. I tried to download it and it is a Windows/Mac File only (I'm on Linux Mint 17.3). Any one know of a way around this?

 

Thanks


Edited by AtariFan2001, Wed Feb 3, 2016 1:35 PM.


#2 SpiceWare OFFLINE  

SpiceWare

    Quadrunner

  • 11,140 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Wed Feb 3, 2016 2:03 PM

The version here includes a linux build.

http://sourceforge.n...ts/dasm-dillon/



You could also download the source and build it yourself, there's a MakeFile in there.

http://sourceforge.n...dillon/2.20.11/

After you donwload that, open up a terminal session and change into that directory. Then type the command make.

Screen Shot 2016-02-03 at 2.06.25 PM.png

 

You might like to check out my tutorial as well.   Collect covers writing a 2K game from scratch.



#3 AtariFan2001 OFFLINE  

AtariFan2001

    Combat Commando

  • Topic Starter
  • 2 posts

Posted Thu Feb 4, 2016 11:12 AM

The version here includes a linux build.

http://sourceforge.n...ts/dasm-dillon/



You could also download the source and build it yourself, there's a MakeFile in there.

http://sourceforge.n...dillon/2.20.11/

After you donwload that, open up a terminal session and change into that directory. Then type the command make.

attachicon.gifScreen Shot 2016-02-03 at 2.06.25 PM.png

 

You might like to check out my tutorial as well.   Collect covers writing a 2K game from scratch.

 

Thanks Man, It says it Made the file correctly, But how do I open it?



#4 SpiceWare OFFLINE  

SpiceWare

    Quadrunner

  • 11,140 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Thu Feb 4, 2016 11:44 AM

It's a command line program, you run it from the terminal.
 
Quick way is to copy dasm to the directory your source is located at.   While in the directory with your source, type the command:

./dasm game.asm -f3 -v5 -sgame.sym -lgame.lst -ogame.bin

That'll generate 3 files:

  • game.sym - symbol listing.  Shows your labels, defines, etc as well as their values and whether or not they've been referenced(used in your code).
  • game.lst -  detailed listing of how dasm processed your source code. It's very handy to reference this file if your code won't compile.
  • game.bin - your game

The symbol and listing are both optional so you could leave them out like this, but its better to get in the habit of creating them because they're so useful when things go wrong - and they will go wrong :)

./dasm game.asm -f3 -v5 -ogame.bin


#5 SpiceWare OFFLINE  

SpiceWare

    Quadrunner

  • 11,140 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Thu Feb 4, 2016 11:46 AM

Once you get that going, considering Using jEdit for 2600 development.  



#6 Propane13 OFFLINE  

Propane13

    Stargunner

  • 1,645 posts
  • Location:Charleston, SC

Posted Thu Feb 4, 2016 12:20 PM

Random question- would it be possible to host a mirror elsewhere?

Sourceforge has had some... interesting issues as of 2015 that made it a less-than-desirable site to get software from.

 

-John



#7 Gip-Gip OFFLINE  

Gip-Gip

    Chopper Commander

  • 199 posts
  • Location:Georgia, US

Posted Thu May 5, 2016 4:11 PM

Quick way is to copy dasm to the directory your source is located at

 

I would also like to point out that you can move dasm into one of your many bin directories(/bin, /usr/bin, etc.) so that you can build your source without having to move the executable into the source. Running it would be like:

dasm game.asm -f3 -v5 -ogame.bin

Edited by Gip-Gip, Thu May 5, 2016 4:12 PM.






Also tagged with one or more of these keywords: Linux, Atari 2600, Programming., dasm

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users