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..
 
... 590 posts hidden. Click here to view all posts....
 
2012-11-11 01:51
TWW

Registered: Jul 2009
Posts: 541
Hiho

I would like to code some stuff which gets encoded (rearranging bits and such) in the output file. Anyone who can give me a pointer on how to approach this task with the KA-Script language?

instead of:

lda #$00

becomming

#$a9 #$00

it would become somthing else when assembled.

Also, typo in your manual, page 16, table 4.2. String Values, "Converts the string to a oolean value (eg,
“true”.asBoolean())."

Should probably be "boolean value"
2012-11-11 08:38
Mace

Registered: May 2002
Posts: 1799
I suggest you read chapter 10 of the manual, Modifiers.
2012-11-11 15:58
Slammer

Registered: Feb 2004
Posts: 416
As Mace said, look at the modifiers functionality:
http://theweb.dk/KickAssembler/webhelp/content/cpt_Modifiers.ht..

Currently you will need to do it as a java plugin:
http://theweb.dk/KickAssembler/webhelp/content/cpt_Plugins.html

2012-11-11 16:27
TWW

Registered: Jul 2009
Posts: 541
ok mace/slammer, thanx. That's what I thought. Time to brush up on java :-)
2012-11-27 17:32
The Gothicman
Account closed

Registered: Aug 2011
Posts: 40
Since this a Kickass-thread, this might a suitable place for my (surely stupid) question...

After 25 years I decided to have a little fun with c64 again.
Some things work, some not...
Anyway! My problem is:

Back in those days I used the following code to put some datas somewhere:

lda $0f00 (assume this would be located at $1000)
sta $d800,x
inx

blabla.
and then

inc $1001
lda $1001
cmp #$60
beq xxx
...
lda #$00
sta $1001


But how the hell can this be done in Kickass???
I'm sure it's fucking simple, but actually it drives me fuckin' crazy... :(

Thanx in advance...
2012-11-27 17:35
chatGPZ

Registered: Dec 2001
Posts: 11114
simply use labels :)
yourlabel:
lda table,x
...
inc yourlabel+1
...
table:

2012-11-27 17:39
The Gothicman
Account closed

Registered: Aug 2011
Posts: 40
That's exactly what I tried...
And it doesn't work...
As I said: Probably easy as hell, but something turns to be wrong... :(
2012-11-27 17:44
The Gothicman
Account closed

Registered: Aug 2011
Posts: 40
Allright...
I DIDN'T use labels...
I used vars... :(

Haha... I'm so... ... ... ;)

Thanx...
2012-12-04 00:21
raven
Account closed

Registered: Jan 2002
Posts: 137
Hi

I'm trying to convert an old source of mine to KickAss format, but having a problem with something very basic.
I have sections of const declarations and code that sit inside if/else sections (works just like #if, #else in C).

I've been scratching my head for quite some time now, trying to find a simple solution, but couldn't!

If I use .if blocks, the consts I declare inside the .if scope are not seen outside, unless I use .define outside the .if, but thats really annoying with lots of consts...

Also, this does not work with labels & I dont feel like wrapping everything with blocks of .define and .if.
What am I missing?

Thanks :)
2012-12-04 11:09
Cruzer

Registered: Dec 2001
Posts: 1048
Raven: If you use vars you can:
.var value = 0
.if (something) {
	.eval value = 1
}

Previous - 1 | ... | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | ... | 60 - 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
tlr
Smasher/F4CG
yago
GI-Joe/MYD!
Guests online: 120
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

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