Mouse Muddle

Discussion, Reviews & High-scores

Moderator: Moderators

Post Reply
User avatar
Mayhem
High Bidder
Posts: 3027
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Mouse Muddle

Post by Mayhem »

A request for help here :)

I've got a couple of new Photronics games (see Bomber Copter in GB20) that I'm trying to transfer. Both have transferred successfully. However I have an issue with one of them. Someone wrote +3k RAM on the tape label, and I've tried it with unexpanded and +8k, and it doesn't work properly, so it's definitely +3k. However... when you try to run the one player version of the game, it errors with out of memory.

So... suggestions about what can be done? I can post the TAP if need be.
Lie with passion and be forever damned...
Vic20-Ian
Vic 20 Scientist
Posts: 1214
Joined: Sun Aug 24, 2008 1:58 pm

Re: Mouse Muddle

Post by Vic20-Ian »

Please email it or pm and I will have a go on Thursday.

Thanks Ian.
Vic20-Ian

The best things in life are Vic-20

Upgrade all new gadgets and mobiles to 3583 Bytes Free today! Ready
User avatar
Mayhem
High Bidder
Posts: 3027
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Re: Mouse Muddle

Post by Mayhem »

Here you go... and anyone else :)
Lie with passion and be forever damned...
User avatar
buzbard
Vic 20 Devotee
Posts: 213
Joined: Sun Jul 03, 2005 9:10 am

Re: Mouse Muddle

Post by buzbard »

Load the program with the added 3k then make the following changes:

Move the 2 variables from the end of line 1 to the beginning of line 2.

Then in line 1, after the POKE56,27 add CLR.

Code: Select all

1 poke52,27:poke56,27:clr:print"S":poke36879,25:poke36878,15:poke36869,255
2 ch=7683:cd=8164:goto10
Whenever you change the pointers to the start of BASIC or variables you need to do a CLR.

You'll need to do the same to the second program but the lines are already at their maximum length.
Probably the best idea is to just edit line 1 and abbreviate a few keywords to make room then add CLR after the poke to 56.
Ray..
User avatar
buzbard
Vic 20 Devotee
Posts: 213
Joined: Sun Jul 03, 2005 9:10 am

Re: Mouse Muddle

Post by buzbard »

I'm seeing a few more mistakes in the second program that could cause out of memory errors.

Line 14

Code: Select all

14 forn=1tol:ifx=y(n)then13
And again in line 25:

Code: Select all

25 forn=1tolen(w$(r)):ifa$=mid$(w$(r),n,1)then27
Anytime you have a IF statement after a FOR statement that branches someplace you could potentially overflow the stack and cause an out of memory error.
Ray..
User avatar
Mayhem
High Bidder
Posts: 3027
Joined: Mon May 24, 2004 7:03 am
Website: http://www.mayhem64.co.uk
Location: London

Re: Mouse Muddle

Post by Mayhem »

Yeah, I suspected it wasn't the greatest programmed game ever. Perhaps just enough changes to get it functioning...
Lie with passion and be forever damned...
Post Reply