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 > KickAss and entry point in Vice
2015-03-28 18:31
Trap

Registered: Jul 2010
Posts: 223
KickAss and entry point in Vice

Hi,

I'm using KickAss with Sublime. When I start a project I use the BasicUpstart to trigger my code when compiling to run in Vice. The way I see it, this limits my options when it comes to memory management. I need to have these few upstart bytes at $0801. If I wanted to place code from say $0400 and on, it complicates things a little bit when I reach $0800. So, my question is - how do you guys manage this? For the sake of clarity assume I have a program that uses $0400-$2000 for code. How do I make the compilation and execution in Vice autorun at $0400?

Hope I'm clear in my question?

Thanks

/Trap
2015-03-28 18:34
chatGPZ

Registered: Dec 2001
Posts: 11386
just add a packer (i use pucrunch because of speed) to your buildchain
2015-03-28 18:34
iAN CooG

Registered: May 2002
Posts: 3193
pucrunch or exomize it, then add -initbreak 0x0400 to your vice cmdline if you want to debug from the start
2015-03-28 19:09
Trap

Registered: Jul 2010
Posts: 223
ah of course :) Another discipline in c64 anno 2015 that I need to understand. Could you give me a quick example or pointer on how to set up pucrunch to achieve this?
2015-03-30 04:41
Oswald

Registered: Apr 2002
Posts: 5094
pucrunch -ffast -x 4096 infile >outfile

4096= start addy of your prg
2015-03-30 21:14
Trap

Registered: Jul 2010
Posts: 223
Excellent. Thanks a bunch.

I don't consider myself particularly stupid (or clever for that sake), but I have spent the entire evening trying to figure out where in the Sublime editor I add this line. I'm using the latest setup with KickAss/Sublime. Hard to find, can somebody help me?

Thanks.

/Trap
2015-03-31 15:08
Dr.j

Registered: Feb 2003
Posts: 277
i join to Trap question and didn't got the bottom of it so mainly i code above $0801-$0810 address (which dedicate to upstart) i can think of alternate option to code on temp address and copy it to $0801 and overwrite upstart . the problem i think when we code on $0400 the compiler maybe goes wrong (haven't checked it for a long time) could be nice to see the cmdline for vice to make it possible .
@Trap: i use Eclipse so i use cmdline out of the editor so i can't help you to edit the compile chain unless you can do it also and ignore the build-in compiler of Sublime
2015-03-31 15:18
iAN CooG

Registered: May 2002
Posts: 3193
It's not a vice problem, it's how c64 acts when loading from $0400, you'll get loading messages overwriting the screen and basic tries to relink the basic line at $0801, destroying part of your data/code. Just pack the prg.
2015-04-01 18:31
Trap

Registered: Jul 2010
Posts: 223
I totally get it, but can somebody tell me what file in the Sublime editor I need to edit to add pucrunch?
2015-04-01 19:26
Digger

Registered: Mar 2005
Posts: 437
Trap, if you're on OS X, the easiest way is to write a custom bash script with KickAss and pucrunch commands and launch it from Sublime. PM me your email if you want more details :)
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
Airwolf/F4CG
Mike
Unlock/Padua/Albion
DJ Gruby/TRiAD
Case/Padua
Zorch
MWR/Visdom
Walt/Bonzai
cadaver/covertbitops
Didi/Laxity
WVL/Xenon
Trap/Bonzai
Steffan/BOOM!
Guests online: 145
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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