Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user psenough ! (Registered 2024-05-21) 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-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: 11147
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
}

2012-12-04 11:15
chatGPZ

Registered: Dec 2001
Posts: 11147
Quote:
this does not work with labels & I dont feel like wrapping everything with blocks of .define and .if. What am I missing?

generally kickass does NOT have a preprocessor as you know from other assemblers, the .if stuff works fundamentally different. i find this very annoying myself, it often requires quite fucked up (and typing intensive) workarounds to do a whole lot of things i am used to from other environments.
2012-12-04 11:17
raven
Account closed

Registered: Jan 2002
Posts: 137
Hi Cruzer

I'm doing this (just an example):

.if (DEBUG == 1) {
.const SomeVar1 = $4000
.const SomeVar2 = $4800
} else {
.const SomeVar1 = $5000
.const SomeVar2 = $5800
}

Problem is, the consts are not seen outside the if/else scope, without also using .define.
And what about labels, how do I make them seen outside?


Previous - 1 | ... | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | ... | 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
KAL_123
csabanw
Guests online: 67
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Bromance  (9.5)
10 Wonderland XII  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 It's More Fun to Com..  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Performers  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

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