Kick Assembler – First steps
In this category (“Coding”), you have opportunity to see ML routines, real examples which you can use for your projects. All examples will be written by kick assembler format. First, we’ll do some crash course for using this assembler.
Author of kick assembler, Mads Nielsen was working on this project more than 10 years, and he finaly did, superb cross-development utililty. Kick assembler is made for writing assembler code for 6502 (6510) micro processors, also it has integrated script language. When we write code (ML mnemonics), we can also use macros, pseudo commands and many other features (for example, we can import sid files and compile it like ML code). With the integrated script language we can generate arrays and structure data (for example sinus curves). We can use branches (if) and loops (for). Prerequiste for doing anything is to install java, which version should be equal or higher than version 8. Current version of assembler is 4.4.
Check it from “Java Control Panel” which version of java you using (on Windows it looks like this):
We need to unzip KickAssembler.zip file. For our example, zip file is on C: drive (on your drive you can use different path):
C:\c64\bin\kickass\Examples\.. (folder with examples)
To do compile, all we need is KickAss.jar and KickAss.cfg file.
KickAss.jar file is compiler and in KickAss.cfg file we can explore default options which we using when compile source.
For first very simple example we need to do first-program.asm file. This file is ASCII type of file. We can use simple notepad or some better ascii editor .
:BasicUpstart2(loop) .pc = $1000 "Program start" loop: inc $d020 jmp loop
In the same folder we’ll create bat file. So, let create file with this content:
java -jar C:\c64\bin\kickass\KickAss.jar first-program.asm -o first-program.prg pause
In bat file we have java command which execute KickAss.jar. First parameter (first-program.asm) is source file, and with option -o we do output compiled file first-program.prg. If we start compile.bat you can see compile info, and in the same folder we have now new file first-program.prg.
If we open prg file in emulator (VICE) we should see this:
In file first-program.asm we also use macro :BasicUpstart2(mem label/mem address) which generate SYS line for start address $1000 (SYS4096).
This is online help link …
or you can download pdf manual …
Direct download …
Ones agian, we appreciate and praise this project!