Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Standalone assembler that accepts string defines?
2011-10-11 08:53
MagerValp

Registered: Dec 2001
Posts: 1078
Standalone assembler that accepts string defines?

I need to package up a small assembly project so that even non-coders can use it. My requirements are quite specific though, and I haven't managed to find one that matches all of:

• Must be a standalone executable for Windows, Mac OS X, and Linux.
• Must allow the definition of string constants on the commandline, e.g. -Dfilename="princeofp+8D.prg", which can then be used by .INCBIN filename.

So far I've tested, and rejected:

• ca65: only numeric commandline defines, requires cc65 install.
• acme: no commandline defines.
• dasm: only numeric commandline defines.
• dreamass: only numeric commandline defines.
• kickassembler: string defines, but requires java.
• 64tass: only numeric commandline defines.

Is there anything else?
2011-10-11 09:38
JackAsser

Registered: Jun 2002
Posts: 2014
If you find a standalone CPP (c pre processor) you can fix the define-part yourself...
2011-10-11 09:51
Skate

Registered: Jul 2003
Posts: 494
princeofp+8D.prg :D
2011-10-11 10:20
MagerValp

Registered: Dec 2001
Posts: 1078
Quoting JackAsser
If you find a standalone CPP (c pre processor) you can fix the define-part yourself...

Yeah, or M4, or sed, or anything really... but that's plan B :)
2011-10-11 11:02
Ninja

Registered: Jan 2002
Posts: 411
The source for dreamass is available. I do accept patches, if you nag enough I'll even apply them ;)
2011-10-11 12:12
Frantic

Registered: Mar 2003
Posts: 1648
The wla assembler is apparently able to accept string defines on the command line:

http://www.villehelin.com/wla.html
http://sourceforge.net/projects/wladx/

I also think (but not sure here) that you can do this with the xa assembler:

http://www.floodgap.com/retrotech/xa/
2011-10-11 12:24
chatGPZ

Registered: Dec 2001
Posts: 11386
echo "whatevercrap" > bla.inc
.include "bla.inc"
?

should work with any assembler :)
2011-10-11 15:03
JAC

Registered: Aug 2002
Posts: 57
>kickassembler: string defines, but requires java.

Well, that is not a restriction for any of the mentioned target platforms. "java -jar kickass.jar" will work fine on all of them. You'll end up in more trouble with any other native executable.
2011-10-11 17:24
Count Zero

Registered: Jan 2003
Posts: 1932
@Ninja: as Berlios is closing - where will the project likely move?
2011-10-11 17:30
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
"java -jar kickass.jar" will work fine on all of them.

good one :)
2011-10-11 17:51
MagerValp

Registered: Dec 2001
Posts: 1078
Quoting Frantic
I also think (but not sure here) that you can do this with the xa assembler:

http://www.floodgap.com/retrotech/xa/
xa fits the bill perfectly, thank you! WLA also looks neat, but it seems to be very much cartridge based.
 
... 6 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
ΛΛdZ
Acidchild/Padua
Chesser/Blazon
Scrap/Genesis Project
AMB/Level 64
The Syndrom/TIA/Pret..
Guests online: 97
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.051 sec.