| |
Slammer
Registered: Feb 2004 Posts: 416 |
Kick Assembler
I recently did a new 6510 assembler and I hereby make it open to the public so you can use it too.
Kick Assembler is the combination of an assembler for doing 6510 machine code and a high level script language. With the assembler functionalities, you can write your assembler programs, and with the script language, you can write programs that generate data to use in the assembler programs. This could be data such as sine waves, coordinates for a vector object, or graphic converters. In addition, you can combine assembler commands and scripting commands which is a powerful combination. A little example: Where other assemblers can do simple unrolling of loops, Kick Assembler can base the unrolling of a loop on a list generated by the script language and select the content of the loop body based on the content of the list. This makes it more flexible when generating speed code.
The script language can handle values such as Numbers, Booleans, Strings, Lists, Vectors, Hashtables, Matrixes and you can define your own structures if the build in doesnt meet your needs. The assembler contains a replica of the java math library + a special 3d library for doing vector math (Rotation, move and projection matrixes). You can also define your own functions.
Finally, I want to mention that the assembler contains some special objects that makes it easy to import graphics (and convert it into you own spooky format which fits into the part you are working on) and music. Since finding the correct play address for a tune has recently been an issue in the *stupid* ASM Sid Player Example- thread I will here show how its done in kick Assembler. You simply load you PSID file into a variable in the script language and then read the things you need to know from the variable.
// Load the music into an object in the script language
.var music = LoadSid("C:/C64Music/Tel_Jeroen/Closing_In.sid")
// init the music
lda #music.startSong-1
jsr music.init
// play the music
jsr music.play
(The full example is listed in the manual)
Feel free to check out the assembler at http://www.theweb.dk/KickAssembler.htm
|
|
... 251 posts hidden. Click here to view all posts.... |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Slang can do that easily. Read up on how the linker works.
|
| |
tlr
Registered: Sep 2003 Posts: 1790 |
@BastetFurry: I believe that Kick Assembler would be extremly well suited for complex games!
It supports all sorts of importing of graphics, generation of tables, ...
I currently use Dasm which is a quite good all purpose assembler, but no specific c64 features.
I haven't used Kick Assembler yet. Mainly because the syntax is a bit different I guess.
@Slammer: Did you implement the .transform directive? :)
(i.e call an external program to transform the enclosed code/data)
A switch to enable support for DTV opcodes would be nice too. (SAC #<imm>/SIR #<imm>/BRA <rel>)
|
| |
Jetboy
Registered: Jul 2006 Posts: 337 |
> A switch to enable support for DTV opcodes would be nice too. (SAC #<imm>/SIR #<imm>/BRA <rel>)
DTV emulator would be cooler :)
Anyway - they sait at the Lipsk game fair, that they intend to do new version of DTV with build in keyboard plug, though they dont intend to add disc drive support. Maybe some kind of flash rom. Atleast that's what my workmate was able to get out of them.
btw. Commodore keychain I got, is so friggin cool! |
| |
tlr
Registered: Sep 2003 Posts: 1790 |
@Jetboy: It already has flashrom you know. 2Mb Flash + 2Mb RAM.
Keyboard connector sounds nice, but no IEC? Pretty daft considering the chip has both keyboard and IEC implemented.
There is some fuzz about it here aswell:
http://jledger.proboards19.com/index.cgi?board=dtvhacking&actio..
|
| |
Bastet
Registered: Jul 2005 Posts: 88 |
Ok, read the manual, nice features and i will give it a try.
But, why for goddes sake fucking java? ;) |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
@BastetFurry: Try nice language, try platform independant, try has lots of stuff, try doesn't depend on zillions of libs... :D
|
| |
Cruzer
Registered: Dec 2001 Posts: 1048 |
Agree with JackAsser. I can't see any reason why to make something like this in anything else than Java. It's nice that it automagically works on my PowerBook, even though it's developed on a Windoze box. |
| |
Bastet
Registered: Jul 2005 Posts: 88 |
Cant agree as i dislike OO-Languages, interoperabilty bought with interpreter, good point, depends on rather large download (Java interpreter)....
OTOH, who cares, use what you like and what gets the job done ;)
|
| |
enthusi
Registered: May 2004 Posts: 677 |
though Im not totally fond of Java either this is an amazing example of a perfect java-code/use.
I mean 'compilers' love OOP and actually I love being able to run it on most unix-machines too...
I dont want java in anything that needs performance though but who am I? :)
|
| |
tlr
Registered: Sep 2003 Posts: 1790 |
The worst thing about java command line utilities is the terrible command line they require.
java -jar program.jar ...
Sure you could do an alias, but it leaves a bad aftertaste.
That said, Kick Assembler looks very good, and I intend to try it out.
|
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... | 27 - Next |