Path: utzoo!utgpu!water!watmath!garfield!john13 From: john13@garfield.UUCP (John Russell) Newsgroups: comp.sys.cbm Subject: Re: Pet to C64 BASIC conversion Message-ID: <4502@garfield.UUCP> Date: 20 Feb 88 19:06:48 GMT References: <3295@cup.portal.com> Reply-To: john13@garfield.UUCP (John Russell) Distribution: na Organization: Memorial University of Newfoundland, St. John's Lines: 31 In article <3295@cup.portal.com> Brendan@cup.portal.com writes: > > A friend of mine is trying to convert a program in PET basic to c-64 bsic.. >it's a prog for a volleyball team...first I'll slow you the lines: > > 3700 IF Q$="Y" THEN END > 3710 IF C$="CONFERENCE" THEN 3790 > 3780 GOTO 3830 --> 3790 GOSUB"CONPAST" --> 3800 RESTORE"CON"TO"CONPAST" > 3810 V$="CON,SEQ,WRITE" > 3820 GOTO3840 > 3830 V$="GAME"+STR$(N)+",SEQ,WRITE" > 3840 OPEN 1,8,2,V$ It looks to me as if at least line 3800 was meant to be a comment, and should be REM'ed out. 3790 could be an "unimplemented feature", ie the programmer simply forgot to replace "conpast" with the line number, and never took that branch to have the syntax error hit him. The first thing I would try is make 3800 a REM, and replace the label in 3790 with the line number -- if you can locate the intended gosub. Probably the original author was using some programming utility which would automatically replace such labels with the proper line numbers. John -- "Fanaticism is all right... as long as you're ALONE! HAHAHAHA!" -- Pat Robertson shares a gem of wisdom told to him by Richard Nixon, and thus becomes the first politician to whom I can honestly apply the term "scares the willies out of me"