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....
 
2010-11-24 13:28
Mace

Registered: May 2002
Posts: 1799
Do some SID hacking, find the register that shows the song has ended.
Or find the editor in which the SID is made and change the end into a loop.
Of use a SID that loops.
2010-11-24 13:32
Lobogris
Account closed

Registered: Oct 2010
Posts: 22
thanks mace, I was asking here to avoid doing things like that, wondering if kickass has an easier or comfortable way to know the end of the sid.
2010-11-24 15:40
Slammer

Registered: Feb 2004
Posts: 416
Guess there is a little misunderstanding. KickAssebler just helps you read the sid file format. Inside is the musicdata and a player, so when you do jsr music.init / jsr music.play you call the init routine and player thats stored in that particular sidfile.

KickAssembler has nothing to do with how the player works, so if you do some SidHacking, you have to do it each time you change sid.


2010-11-24 17:15
Frantic

Registered: Mar 2003
Posts: 1641
The brute force no-brain way would be to just increase a counter each time the player is called, and then find out which value that actually corresponds to the end of the song, without looking inside the tune at all... Not necessarily that much of a hassle, and may not have take more time than peeking into the player flow anyway.
2010-11-24 17:21
Lobogris
Account closed

Registered: Oct 2010
Posts: 22
@Slammer: much clearer. I thought so. Just wondering what if there was something that escaped me in this regard.

an excellent idea, Frantic. I was thinking about a timer too.
I'll try it.
2010-11-24 21:05
Slammer

Registered: Feb 2004
Posts: 416
Frantic: With Warpmode your approach might be the fastest way.
2011-01-15 09:51
Lobogris
Account closed

Registered: Oct 2010
Posts: 22
hi!
strings are not working with .import directive...

I am trying to do:

.var workpath="c:\kickass\Retroinvaders\"
.import source workpath+"include\macroslib.asm"
.import source workpath+"include\16bitcmds.asm"
.import source workpath+"include\graphics.asm"

and I have the following error:

Error: Unknown symbol 'workpath'

It will be cool if this little detail is corrected as a little improvement to kickass. Or maybe, I am doing something wrong? Thanks in advance!
2011-01-15 13:06
Slammer

Registered: Feb 2004
Posts: 416
Hi Lobogris,

It not an error. The import directive is executed in a preparse so functions, macros and pseudo commands are imported and ready to use anywhere in your sourcecode.
Try using the -libdir parameter instead. Something like:
java -jar KickAss.jar -libdir "c:\kickass\Retroinvaders\" source.asm

You can have as many libdir's as you like. Now, everytime you import stuff, the assembler will look in the libdirs if it cant find the file in the current dir. So now you just do:
.import source "include\macroslib.asm"
.import source "include\16bitcmds.asm"
.import source "include\graphics.asm"
2011-01-15 13:09
Lobogris
Account closed

Registered: Oct 2010
Posts: 22
Thats good. Many thanks! I have -libdir now added in kickass.cfg file

One last question, if I wanna add more paths to -libdir it will work separating it with ";"? or maybe ","?
for example:
-libdir "C:\kickass\Retroinvaders\;c:\mainlibs\"
2011-01-15 21:23
bepp

Registered: Jun 2010
Posts: 265
You can specify the -libdir parameter multiple times on the command line. See top of page 14 in the manual.
Previous - 1 | ... | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | ... | 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
chesser
Ghost/Quantum
Zorch
4gentE/ΤRIΛD
Airwolf/F4CG
Alakran_64
zscs
Max/Flat3
iAN CooG/HVSC
TheRyk/MYD!
mutetus/Ald ^ Ons
wil
Acidchild/Padua
psych
Scooby/G★P/Light
Edhellon/Resource
Guests online: 80
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Morph  (9.5)
8 Dawnfall V1.1  (9.5)
9 Onscreen 5k  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Performers  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.6)
4 Mutetus  (9.6)
5 Linus  (9.6)

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