Page 1 of 2

CBM Prg Studio & 2 Part Programmes

Posted: Wed Jun 13, 2012 11:18 am
by Perseus
I'm attempting to input a type-in that is listed in two parts but forms one complete programme. How does one accomplish this within CBM? Do you create two BASIC files within the project? Any help would be appreciated. :?

Posted: Thu Jun 14, 2012 2:26 pm
by nbla000
You may write 2 different prg then put them in a D64 file with DirMaster

Posted: Thu Jun 14, 2012 4:12 pm
by Perseus
Ahh! Thank you very much for the tip!

Posted: Thu Jun 14, 2012 7:52 pm
by Perseus
I tried this but it didn't work :( The programme hangs on "press play on tape" ; is there something I'm missing?

Posted: Thu Jun 14, 2012 10:06 pm
by Mayhem
If it wants tape, you'll either have to alter the first program to make it load from disk instead, or create a TAP and save both programs to that in Vice.

What's the program btw? It might already be archived and would save you all the trouble heh. If not, then you could post the files here and let someone fudge it together for you.

Posted: Fri Jun 15, 2012 3:22 pm
by Perseus
It's called Crazy Scaler (if I remember) and its a type-in from Commander Magazine. I'd be happy to post it here but I can't seem to add attachments. If you could tell me how to do that, Mayhem, I'd be grateful.

Posted: Fri Jun 15, 2012 10:23 pm
by Mayhem
Well, I definitely don't have that game. You'll have to upload the files to your own web space, or somewhere like Google Sites for people to download them. Or just email them to me (address is linked at the bottom).

Posted: Sun Jun 17, 2012 2:42 pm
by Mayhem
Okay, now I'm not sure what's wrong, so enlisting the help of folks here to try to fix this properly.

Perseus sent me both sections typed up. A few bugs, I fixed them against the original listing. However when I load and run part two, it comes back with an out of memory error. Anyone suggest or "fix" the program to prevent this from happening?

You can get a D64 with both sections here.

Posted: Sun Jun 17, 2012 5:05 pm
by Dusty
Just had a brief look onto it, but... Did you double check line 10 of the loader? With the POKE 51 and POKE 52 commands, you manipulate the end of the string memory area. But with POKE 53 you only manipulate the low byte of a pointer that is called "Utility String" in my Memory Map and with POKE 56 you manipulate the high byte of the memory limit.

When I replace the POKE 56 by POKE 54, the main prg. doesn't exit with the out of memory error any more, but the redefined character set doesn't seem to match. Probably there are some more typing errors?

Posted: Sun Jun 17, 2012 5:30 pm
by GreyGhost
I think it should read:

Code: Select all

l10 print"{clear}":poke51,160:poke52,28:poke55,160:poke56,28:clr

Also,there is a missed colon in lines 710 & 830 in the main program.

Now the program runs, but some things still seem to be faulty. Can we get a copy of the listing?

Posted: Sun Jun 17, 2012 6:13 pm
by Mayhem
Somehow missed the misplaced colons there.

I don't know where part one of the game is listed in the magazine, I have the PDF of the issue in question and it only has part two listed. Perseus, where did part one come from?

Anyhow, fixing the colons and swapping 53 for 55 in part one appears to get the game working properly now, hooray! 8)

Posted: Sun Jun 17, 2012 6:26 pm
by Perseus
Part 1 came from here:

http://archive.org/stream/commander-mag ... 9/mode/2up

That's sincerely great that you - with some help - were able to fix it. Feel free to post the final product here for everyone to enjoy. Thanks to all.

Posted: Sun Jun 17, 2012 7:08 pm
by Mayhem
That's actually part two. Unless for whatever reason, part one refuses to appear for me in those scans. But I got an online PDF of the issue, and there's no part one in there either.

I'll email you the TAP I made...

Posted: Mon Jun 18, 2012 8:54 am
by Perseus

Posted: Mon Jun 18, 2012 9:47 am
by Mayhem
Ah cheers... yeah, they screwed up and didn't print the missing first part until two months later heh. As the listing shows, it definitely was 55 not 53 in the first line.

I've been going through stuff in Compute's magazines, but if you want to get stuff from Commander typed up, be my guest.