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 > Kick Assembler Thread 2
2009-07-21 17:20
Slammer

Registered: Feb 2004
Posts: 416
Kick Assembler Thread 2

The previous thread took a little long to load, so this is a new fresh one..
 
... 592 posts hidden. Click here to view all posts....
 
2012-05-06 03:06
chatGPZ

Registered: Dec 2001
Posts: 11168
i think this is a bug =) this works:

.import source "../framework/framework.asm"


this gives an error:

.if (1 == 1) {
        .import source "../framework/framework.asm"
}


flex pass 1
        .import source "../music/music2.inc"

        .if (1 == 1) {
        .import source "../framework/framework.asm"
        ^

Error: Unknown import type 'source'


whatthehell ? :)

edit: lol. i already reported it a while ago =) and i still think its an error, its totally not how you'd expect it to work and it makes more complex stuff almost impossible to do. too bad really, things like that drive me back to ca65, despite the many nice features in kickass :/ (.if always adding a scope around the enclosed block also makes it a lot less useful than it should be, unfortunately)
2012-05-06 12:14
ruk

Registered: Jan 2012
Posts: 43
I think what we're lacking is preprocessor stuff à la C since things like conditional compilation can't be solved by the scripting facilities of KickAss.
At least this is what I suspect.

So, I propose the introduction of #if, #ifdef, #ifndef, #else, #elif and #endif directives. It would solve many things, at least for me.
2012-05-06 12:17
Cruzer

Registered: Dec 2001
Posts: 1048
Found a workaround that might do the trick...
.import source 1 == 1 ? "framework.asm" : "emptyFile.asm"
It can't use vars or anything fancy in the condition though, except for command line args.
.import source cmdLineVars.get("importFramework") == "true" ? "framework.asm" : "emptyFile.asm"

2012-05-06 12:20
chatGPZ

Registered: Dec 2001
Posts: 11168
yes, indeed. for the scripting and table generating stuff the current set of features is great.... for anything else not so much.
2012-05-07 05:18
JackAsser

Registered: Jun 2002
Posts: 1997
@Ruk, @Groepaz: Well... cpp is free, easy to use and easy to integrate into your makefiles so... :)
2012-05-07 05:22
chatGPZ

Registered: Dec 2001
Posts: 11168
Quote:
Found a workaround that might do the trick...

that might work for my specific case, thanks :)
Quote:
Well... cpp is free, easy to use and easy to integrate into your makefiles so... :)

that would however add another dependancy, and also completely defeats the point of using kickass as an all-in-one solution (which is the only reason for me to use it really, i can do the same with a bunch of external tools anytime, however the idea is NOT to have to do that)
2012-05-07 06:45
ruk

Registered: Jan 2012
Posts: 43
@JackAsser: Sure, it has struck me to involve another tool for this kind of operations, but as Groepaz said - it would be nice to have an all-in-one solution.

However, this is not a showstopper for me. I'm very happy with KickAssembler, but there's potential for it to become even better =)

Btw, haven't read all posts, but have Slammer ever considered going open source?
2012-05-07 20:47
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Yeah, then perhaps someone could create a Z80-version as well! :D
(Yeah, I know it's blasphemy to even speak about that CPU on this site, but as a multi-platform guy, I really miss KickAssembler when I venture to the non 6502-based systems!)
2012-05-08 06:28
chatGPZ

Registered: Dec 2001
Posts: 11168
try RGBDS then, it has quite some of the features that stand out in kickass (its somewhat buggy though, and afaik no source available and only exes for dos)
2012-05-09 10:45
Frantic

Registered: Mar 2003
Posts: 1635
In fact, there are sources available for RGBDS:
http://www.otakunozoku.com/rednex-gameboy-development-system/
Previous - 1 | ... | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | ... | 61 - 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
Dave/SIDNIFY
Berluskåni/The Gump..
MightyAxle
Bansai/BSILabs
grip
zscs
kenji/dream
rexbeng
Johnny/Abandoneds
iAN CooG/HVSC
bugjam
Smasher/F4CG
JEZ
Guests online: 95
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 No Bounds  (9.6)
9 Aliens in Wonderland  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Birth of a Flower  (9.5)
9 Morph  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Stinsen  (9.7)
3 Jeroen Tel  (9.6)
4 Linus  (9.6)
5 MacMagix  (9.6)

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