| |
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.... |
| |
Frantic
Registered: Mar 2003 Posts: 1641 |
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 |
| |
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
|
| |
pmc Account closed
Registered: Sep 2009 Posts: 5 |
@ Frantic - cool, until I read this I didn't realise my little UltraEdit wordfile for KickAssembler was already famous enough to be on Codebase64 ;-D
Nice one :-) |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Conjuror: Im interested. Why don't you upload it to codebase? |
| |
Conjuror
Registered: Aug 2004 Posts: 168 |
Done http://codebase64.org/doku.php?id=base:emulation
I added some 6502 instructions that I noticed were missing as I was working with it. Probably a lot more missing. See asm_instruction_set.xml
Enjoy!
|
| |
MagerValp
Registered: Dec 2001 Posts: 1066 |
TextMate bundle added to codebase.
|
| |
LOGAN Account closed
Registered: Aug 2003 Posts: 71 |
I hope The assembler list will include more than just the modded Acme. And hopefully more symtax highlighting for other editors (preferably free and open source editors like, erm, notepad++ :D |
| |
TWW
Registered: Jul 2009 Posts: 543 |
Small question regarding syntax;
I do this:
:irqEnd #$32 ; #<irq1 ; #>irq1
.pseudocommand irqEnd d12 ; irqlo ; irqhi {
lda d12
sta $d012
lda irqlo
sta $fffe
lda irqhi
sta $ffff
}
This works fine.
Question is, how would i do a:
:irqEnd #$32 ; irq1
.pseudocommand irqEnd d12 ; irq {
lda d12
sta $d012
lda #<irq
sta $fffe
lda #>irq
sta $ffff
}
So I don't need to pass both the lo- & the hi-byte to the Pseudo?
In other words, How can I splitt up the 'irq' parameter (16 bits adress pointer) into hi & lo-byte pointers wich I can pass to $ffff:$fffe inside a Pseudo? |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Look in the manual under pseudo commands. Here is showed how to define 16 bit pseudo commands. There is a move command which is defined like this:
.function _16bit_nextArgument(arg) {
.if (arg.getType()==AT_IMMEDIATE) .return CmdArgument(arg.getType(),>arg.getValue())
.return CmdArgument(arg.getType(),arg.getValue()+1)
}
.pseudocommand mov16 src;tar {
lda src
sta tar
lda _16bit_nextArgument(src)
sta _16bit_nextArgument(tar)
}
With this you can do stuff like:
:mov16 #irq ; $fffe
:mov16 irqTable,x ; $fffe
etc.
You can now define you pseudocommand like this:
pseudocommand irqEnd d12 ; irq {
lda d12
sta $d012
:mov16 irq ; $fffe
}
and use it like this:
:irqEnd #$10 ; #irq1
or
:irqEnd d012Table,y ; irqTable,x
|
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Btw. forgot to tell that if you don't like to code that much then use a normal macro:
.macro endIrq(d012Value, irq) {
lda #d012Value
sta $d012
lda #<irq
sta $fffe
lda #>irq
sta $ffff
}
Pseudo commands gives more flexibility (you can use different addressing modes on the same pseudo command), while macros might be easier. However, once you get the idea, pseudocommands are really effective. |
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... | 61 - Next |