Re: [stella] Dasm for Linux

Subject: Re: [stella] Dasm for Linux
From: Julian Squires <tek@xxxxxxx>
Date: Mon, 29 Mar 2004 07:36:00 -0500
On Mon, Mar 29, 2004 at 01:12:42AM -0500, Rob wrote:
> On Friday 26 March 2004 19:40, A Braunsdorf wrote:
> > > I'm using debain so a binary would be better than an RPM ;)
> > Bah, just compile it.  Should compile right up.  If you're
> > gonna be a UNIX user, learn to walk like a UNIX user. :-)
> This might carry more weight if the dasm source package weren't a 
> weird, bastardized dos/amiga thing that won't build under modern 
> OSes without a carrot and stick ;)

Well, for the benefit of the original poster, attached is a small patch
that allows it to compile on my linux/ppc box.  This is for DASM
2.20.07.  As you can see inside it, there isn't that much that needs
changing, though it compiles with a lot of warnings.

So, to use this, just run
$ cd DASM
$ patch -p1 < dasm.patch
$ cd src
$ make

> But I did package it some time ago for Mandrake, me being one of 
> those people who thinks linux users should avoid being unix 
> users whenever possible.  I'm sure it's quite outdated but it 
> was the only one I could find that would build at all:

Unfortunately, I think that linux users who avoid being unix users by
pretending that x86 is the only architecture in use have caused a lot of
problems for other linux users.


Julian Squires
diff -ru DASM.old/src/Makefile DASM/src/Makefile
--- DASM.old/src/Makefile	1980-01-01 00:00:00.000000000 -0330
+++ DASM/src/Makefile	2004-03-29 08:56:21.000000000 -0330
@@ -7,10 +7,10 @@
 #   Modifications Copyright 1995 by Olaf Seibert. All Rights Reserved.
-GWARN=	-ansi -pedantic -Wall -Wstrict-prototypes
+GWARN=	-pedantic -Wall -Wstrict-prototypes
 GDB=	# -g
-#CC=	gcc -noixemul $(GDB) $(GOPTIM) $(GWARN)
-CC=	dcc
+CC=	gcc $(GDB) $(GOPTIM) $(GWARN)
+#CC=	dcc
 OBJS= main.o ops.o globals.o exp.o symbols.o \
diff -ru DASM.old/src/asm.h DASM/src/asm.h
--- DASM.old/src/asm.h	2003-04-25 21:20:52.000000000 -0230
+++ DASM/src/asm.h	2004-03-29 08:55:49.000000000 -0330
@@ -105,7 +105,7 @@
 typedef unsigned char ubyte;
 typedef unsigned uword;
-typedef long ulong;
+typedef unsigned long ulong;
 #define MNE            struct _MNE
 #define MACRO        struct _MACRO
Current Thread