| |
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.... |
| |
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" |
| |
Mace
Registered: May 2002 Posts: 1799 |
I suggest you read chapter 10 of the manual, Modifiers. |
| |
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
|
| |
TWW
Registered: Jul 2009 Posts: 541 |
ok mace/slammer, thanx. That's what I thought. Time to brush up on java :-) |
| |
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... |
| |
chatGPZ
Registered: Dec 2001 Posts: 11114 |
simply use labels :)
yourlabel:
lda table,x
...
inc yourlabel+1
...
table:
|
| |
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... :( |
| |
The Gothicman Account closed
Registered: Aug 2011 Posts: 40 |
Allright...
I DIDN'T use labels...
I used vars... :(
Haha... I'm so... ... ... ;)
Thanx... |
| |
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 :) |
| |
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 |