Page 1 of 1

Up Periscope

Posted: Thu Jul 25, 2019 2:21 pm
by dragonmate
Hi
Does anyone have a newer version of the game "Up Periscope", in a emulator. That runs smoothly without any errors.
I am running 1996 version and 1983 and both of the games have a line 26 error.

Thank you.

Re: Up Periscope

Posted: Thu Jul 25, 2019 9:37 pm
by robcfg
The version at the Archive should be ok.

Are you running XRoar with any DOS cartridge? If so, remove it, hard-reset the machine and try again.

The loading commands are CLOAD and RUN.

Re: Up Periscope

Posted: Fri Jul 26, 2019 5:37 pm
by dragonmate
Thank you for your reply. I am running up periscope as .cas on Xroar. (didnt think you could get or convert to cartridge).

Anyway there is a fault with the programme both 1983 and 1996 version.

Anyone know if there is a error free version or how to fix the programme.

Thanks for looking.

OM Error in 26
26 If G$=" " OR AY> 178OR AY <0 THEN RETURN
and in 48 etc


I ran a Error Trapping

Allows full error trapping from within a Basic program.

10 X=%TRAP1000
20 REM rest of program
1000 REM program jumps here if error occurs
1010 PRINT %ERR
1020 PRINT %ERL
1030 END

%ERR gives the error number.
%ERL gives the line number that the error occured in.

Re: Up Periscope

Posted: Fri Jul 26, 2019 6:37 pm
by robcfg
You didn't understand me.

If you have a DOS cartridge connected, the disk rom takes up some memory and makes Up Periscope crash.

On XRoar's menu bar, select Cartridge->None, then Machine->Hard Reset and finally, load the game with CLOAD and RUN.

I've tried that and the game works flawlessly.

Re: Up Periscope

Posted: Fri Jul 26, 2019 6:41 pm
by pser1
Hello,
I have tried the game on XRoar emulating both D32 and D64 but always without DOS.
The game works and no ERROR message appears.
When should it appear?
I attach here the cas file I am using for maybe it is not the same as yours

kind regards
pere

Re: Up Periscope

Posted: Mon Nov 25, 2019 9:52 am
by snarkhunter
Hello,

I would tend to believe the "178OR" bit in Line 26 might account for this error.
I myself would add a blank space between the figures and the logical operator ("178 OR").

Re: Up Periscope

Posted: Mon Nov 25, 2019 10:59 am
by robcfg
The blank space is not an issue, the basic interpreter recognizes that pretty well.