Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > x-ass beginners guide.
2010-05-30 17:14
Case

Registered: Aug 2002
Posts: 138
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.
2010-05-30 17:20
TWW

Registered: Jul 2009
Posts: 541
Kickass is very nice. dowenload it and check the manual for answers to your remaining questions.

happy coding man!
2010-05-30 18:09
AlexC

Registered: Jan 2008
Posts: 293
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.
2010-05-30 19:49
Oswald

Registered: Apr 2002
Posts: 5017
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 &quot;$(FULL_CURRENT_PATH)&quot; &quot;$(CURRENT_DIRECTORY)\$(NAME_PART).prg&quot; &quot;$(CURRENT_DIRECTORY)&quot;</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.
2010-05-30 19:58
Oswald

Registered: Apr 2002
Posts: 5017
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

2010-05-31 10:05
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.
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
Honesty/Covenant/Ons..
Yogibear/Protovision
Apollyon/ALD
jmin
Airwolf/F4CG
iceout/Avatar/HF
mutetus/Ald ^ Ons
Guests online: 117
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (10)
2 Mirage  (9.8)
3 Lobo  (9.7)
4 Mikael  (9.7)
5 Archmage  (9.7)

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