Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Nicron ! (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....
 
2009-08-23 18:51
TWW

Registered: Jul 2009
Posts: 541
Right.

I guess it depends what you have been used to doing. B4 i used a ms-dos shortcut in the folder of my project which in turn generated the .prg in the same project folder.

But as you said Slammer, It probably isn't suck a big problem to have the .prg file(s) in the kickass directory. I just have to get used to it :) Thanx for a great tool btw.

ps. Headache is gone btw thanx to an execcive order of grease/salt from the local McDonalds ^^
2009-08-24 01:57
TWW

Registered: Jul 2009
Posts: 541
Question:

I am setting up 16 irq's with 5 splitts each and naturally I want to use macros to do this.

Here is what i have:

.var raster1 = 90
.var raster2 = 130
.var raster3 = 170
.var raster4 = 210
.var raster5 = 50

*setup irg here*

irq: :interupt(raster1,$1b,$78,$18,$02)
..code..
:endirq
!irq :interupt(raster2,$1b,$78,$18,$02)
..code..
:endirq
!irq :interupt(raster3,$1b,$78,$18,$02)
..code..
:endirq
!irq :interupt(raster4,$1b,$78,$18,$02)
..code..
:endirq
!irq :interupt(raster5,$1b,$08,$15,$03)
..code..
lda #<irq
sta $0314
lda #>irq
sta $0315
:endirq
and the macros look like this:

.macro interupt(d12,d11,d16,d18,dd0) {
dec $d019
lda #d12
sta $d012
lda #d11
sta $d011
lda #d16
sta $d016
lda #d18
sta $d018
lda #dd0
sta $dd00
lda #>!irq+
sta $0315
lda #<!irq+
sta $0314
}
.macro endirq() {
pla
tay
pla
tax
pla
rti
}


The "lda #>!irq+" inside the macro is reported as an error and it won't compile. Is there a way I can use the same macro including 0314/0315 "preconfigured" or do I have to set up 0314/0315 as passed parameters aswell? And if I need to pass the variables can I do a:

:interupt(raster4,$1b,$78,$18,$02,#<irqx,#>irqx)?

Or maybee there is even an easier method to the whole thing?
2009-08-24 13:51
Slammer

Registered: Feb 2004
Posts: 416
In each interrupt you refer to the next irq, but the last one can't find the next irq symbol because there are no more irq symbols.

Btw. the idea with irq macros works fine. I do it with pseudocommands (takes mnemonic arguments instead of just values). It looks like this:
:irqStart
.. code ..
:irqEnd	#$00 ; #irq2  // D012 value ; next irq

or:
:irqStart_stableRaster
.. code ..
:irqEnd	#$00 ; #irq2  // D012 value ; next irq
2009-08-24 21:06
TWW

Registered: Jul 2009
Posts: 541
Interesting capabilities with this.... I will need to check this out but off on a couple of days travel. I'll check in later if I encounter problems with this :) thanx btw!
2009-09-01 22:19
TWW

Registered: Jul 2009
Posts: 541
Alright. After testing and playing around this will be the preffered assembler for Creators. You will be credited for this very good assembler.

However a small request:

http://qbnz.com/highlighter/

Would be great to have KickAss syntax included here :-)

-TWW
2009-09-02 19:52
Slammer

Registered: Feb 2004
Posts: 416
That would be great, but I must say its not on the top of the todo list. Feel free to do one if you like. There are already a KickAssembler highlighting for Ultra Edit on the web.
2009-09-03 12:47
LOGAN
Account closed

Registered: Aug 2003
Posts: 71
I currently use Notepad++ and it doesnt even have generic 6510 assembly support :(

BTW I noticed that kickass has some support for C64DTV but I seen a highlight file somewhere that had a couple more opcodes defined.... hmm cant remember where or what anymore, but was some downloadable highlight file
2009-09-04 07:13
pmc
Account closed

Registered: Sep 2009
Posts: 5
Quote: That would be great, but I must say its not on the top of the todo list. Feel free to do one if you like. There are already a KickAssembler highlighting for Ultra Edit on the web.

Yes there is, available here:

http://eab.abime.net/showthread.php?t=44124&highlight=ultraedit

Made by me in fact ;-)
2009-09-04 09:50
Frantic

Registered: Mar 2003
Posts: 1629
Just as a side-note, I created a section on Codebase for syntax highlighting files. There is only one file uploaded at the moment (the one just mentioned here), but please add more files, for other editors/assemblers/platforms.

http://codebase64.org/doku.php?id=base:emulation

In order to upload files on codebase, press "edit page", click on the icon that looks like a framed painting, select "sourcecode" in the popup window that appears, select your file (by clicking browse), click on the "upload" button, and when the file is uploaded, click on its name in the list to insert a link to the file on the wiki page. Note that the ".txt" extension is not allowed by the wiki system, so you have to make a ".zip" of it or so. Huh..

//FTC
2009-09-04 10:08
Conjuror

Registered: Aug 2004
Posts: 168
I use Eclipse for all my development including c64 stuff.

I use this plugin: de.fh_zwickau.asmplugin_1.0.1. for asm highlighting. Its not perfect buy its easy to modify the config file. Comments need the semi-colon to make them highlight.

The page for this plugin is down and has been for a while for some reason. If anyone wants it let me know.

Steve
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... | 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
macx
MightyAxle
B.A.
Matt
Guests online: 74
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 No Bounds  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 Bromance  (9.5)
10 Lunatico  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (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 Nostalgia  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

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