| |
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 |
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
just add a packer (i use pucrunch because of speed) to your buildchain |
| |
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 |
| |
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? |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
pucrunch -ffast -x 4096 infile >outfile
4096= start addy of your prg |
| |
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 |
| |
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 |
| |
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. |
| |
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? |
| |
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 :) |