CBM Prg Studio

You need an actual VIC.

Moderator: Moderators

Post Reply
PhilRanger
Vic 20 Hobbyist
Posts: 143
Joined: Thu Aug 25, 2011 10:04 am

CBM Prg Studio

Post by PhilRanger »

Hi,

I'm using the new CBM Prg Studio for an assembler project. It is GREAT compared to developping directly on the VIC (far better editing, tools for screen and custom characters, etc. + if the vic crashes I loose nothing + very fast saves and compiles!) Some questions:

1- I'd like to divide my project in several assembly files, but since thier size are variable at least during the development stage, I can't specify the beginning address for each file, only the first one. Anyone knows how I could still split the code (not on the vic, but the source files in CBM Studio)

2- Can I just add a file for my redefined characters and specify address 7168 for it? What would happen with the hole between the end of my program and this address? Even if it would store unuseful stuff on tape/disk, can I even load in the basic area and in 7168++ from the same file?

Thanks!
Phil Ranger
-------------
"Don't eat the trees 2" for the VIC 20 : http://www.box.net/shared/u398kj0nr0lkauzm1k67
on line: http://www.mdawson.net/vic20chrome/vic2 ... otrees.prg
ajordison
Vic 20 Enthusiast
Posts: 179
Joined: Fri Mar 19, 2010 4:31 pm
Website: http://www.ajordison.co.uk/
Location: Hartlepool, UK
Occupation: Software Engineer

Post by ajordison »

Hi Phil,
First, you need to specify the start address in one of your project files. Then, change the build order (project, then properties from the build menu) then 'change assembly build order'. Make sure that the file with the start address is file number one then arrange the other files in your project as you need.

After that, bring up the prg studio configuration, select the 'assembler' section and then click 'Use specified build order'. This tells prg studio to just assemble all the files into one prg with no 'padding' bytes between them.

To answer your second question, you can set a start address in the character data file but you have to change the assembler option back to 'Determine build order...' so that prg studio uses the address.

Hope that helps. If not let me know.

Cheers
Post Reply