Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) 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: 222
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: 11100
just add a packer (i use pucrunch because of speed) to your buildchain
2015-03-28 18:34
iAN CooG

Registered: May 2002
Posts: 3132
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: 222
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: 5017
pucrunch -ffast -x 4096 infile >outfile

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

Registered: Jul 2010
Posts: 222
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: 276
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: 3132
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: 222
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: 421
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
CA$H/TRiAD
hedning/G★P
wil
Acidchild/Padua
acrouzet/G★P
megasoftargentina
Paladin/G★P
A3/AFL
Flex/Artline Designs
aegis/ascraeus/r3turn
psych
Mr. Lee
Guests online: 172
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 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (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 Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.6)
4 Mutetus  (9.6)
5 Linus  (9.6)

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