| |
Case
Registered: Aug 2002 Posts: 142 |
x-ass beginners guide.
I think it's about I tried my hand at some coding again, so here's my question(s).
I want to use notepad++ or crimson-editior as the editor, but cannot decide what assember to use. KICKASS or TASM?.
Either way, I would be greatful for some help to get started, firstly how to configure the them so i can write the code and then assemble and test it using vice.
secondly, how do i add gfx and music files to my code, is there some kind of include command i can use ?
maybe .include "filename",$startaddress ????
I'd appreciate any help in this matter. |
|
| |
TWW
Registered: Jul 2009 Posts: 545 |
Kickass is very nice. dowenload it and check the manual for answers to your remaining questions.
happy coding man! |
| |
AlexC
Registered: Jan 2008 Posts: 299 |
Don't forget dreamass as a third option. I really like it but it lacks some of cool features kickass has.
As for adding music just link the final file with SID data. You can use "include" like capabilities but I believe kickass has some additional support for msx - check the docs. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
I use notepad++. Here's my setup:
locate shortcuts.xml at documents and settings\user\application data\notepad++.
add this command line into user defined commands:
<UserDefinedCommands>
...
<Command name="launch in VICE" Ctrl="no" Alt="yes" Shift="no" Key="114">c:\64start.bat "$(FULL_CURRENT_PATH)" "$(CURRENT_DIRECTORY)\$(NAME_PART).prg" "$(CURRENT_DIRECTORY)"</Command>
...
</UserDefinedCommands>
the first few parameters define the shortcut to invoke the command, I've set it to alt+f3 because I've used F3 on the c64 tass to compile & run.
this will laucn c:\64start.bat with the following parameters given: full ptah & edited file's name, full path & edited file's name with extension replaced to .prg, full path to edited file (without filename!)
contents of 64start.bat:
c:\64tass.exe -a -i -l labellist %1 -o %2
pause
c:\pucrunch.exe %2 %3\!a.prg -c64 -ffast -i0 -g35 -x0x1100
D:\WinVICE-2.1\x64.exe %3\!a.prg
comments:
1st line: assembling file
2nd line: commandline window will pause so one can see if there were errors
3rd line: pucrunching assembled file into source's path + !a.prg ___start address is hardcoded to $1100___. $01 will be set to $35 and interrupts disabled when your code starts.
4th line: launch vice
you HAVE to change paths to get it work on your computer.
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
64tass syntax:
.include
Include source file here
.include macros.asm
.binary
Include binary data
.binary stuffz.bin
.binary "stuffz.bin",2 ;skip start address
.binary "stuffz.bin",2,1000 ;skip start address, 1000 bytes max
|
| |
Slammer
Registered: Feb 2004 Posts: 416 |
KickAss has several ways of importing graphics and music. The Basic ways are:
.import binary "music.bin" // Imports a file
.import c64 "music.prg" // Imports a c64 file (skips the first two adress bytes)
KickAss knows several fileformats which makes possible to read, reallocate and manipulate data before storing them to the assembled file. Eg if you want to import a sid music file from HVSC, you can read the location, start and play address from the file. If you want to split up a fli file (eg. store the d800 colors in a different place etc.) this can be done while assembling.
You can also import graphics from gif and jpg files.
To start Vice after successful assembling you can use the execute option. Eg: java jar kickass.jar mySource.asm -execute "c:/c64/winvice/x64.exe -confirmexit" As AlexC writes, there is much more info in the docs. |