Re: Any BASIC Gurus around?

2013-06-18 Thread Paul Wootton
On 06/18/13 15:01, Chris Maness wrote: On Tue, Jun 18, 2013 at 4:31 AM, Paul Wootton< paul-free...@fletchermoorland.co.uk> wrote: On 06/17/13 20:40, Greg Larkin wrote: Hi Chris, I prepared a new patch that incorporates my fixes, yours and Michael's. I found the coredump - multiple missing

Re: Any BASIC Gurus around?

2013-06-18 Thread Chris Maness
On Tue, Jun 18, 2013 at 4:31 AM, Paul Wootton < paul-free...@fletchermoorland.co.uk> wrote: > On 06/17/13 20:40, Greg Larkin wrote: > >> Hi Chris, >> >> I prepared a new patch that incorporates my fixes, yours and >> Michael's. I found the coredump - multiple missing right parens on >> line 1170.

Re: Any BASIC Gurus around?

2013-06-18 Thread Paul Wootton
On 06/17/13 20:40, Greg Larkin wrote: Hi Chris, I prepared a new patch that incorporates my fixes, yours and Michael's. I found the coredump - multiple missing right parens on line 1170. Then I ran into another problem on line 430 and made an educated guess with the fix. The new patch is here

Re: Any BASIC Gurus around?

2013-06-18 Thread Julian H. Stacey
> As you need max syntax checking from OCR, throw it at as many > different basic interpreters/ compilers as you can, & inspect where > each bleats, some error messages may be more & less usefull for > different errors. > > A friend of mine wrote a basic decades back, its in /usr/ports/lang/pbasic

Re: Any BASIC Gurus around?

2013-06-17 Thread Julian H. Stacey
Hi, Reference: > From: Chris Maness > Date: Mon, 17 Jun 2013 13:52:47 -0700 Chris Maness wrote: > Here is a link to the USNO article that the BASIC program originated from: > USNO171s.pdf > > Thanks, > Chris Maness As you need

Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
Here is a link to the USNO article that the BASIC program originated from: USNO171s.pdf Thanks, Chris Maness ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebs

Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
On closer inspection it looks like the moons in the right spot, but the Sun is in the wrong spot. I will take a look and see if there is no error in the lines that deal with the Sun's Az/El. I have the original code that was scanned from a USNO document. The OCR was rather sloppy. I will post t

Re: Any BASIC Gurus around?

2013-06-17 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 3:03 PM, Chris Maness wrote: > Oops, here is another patch that includes a correction for the > missing parenthesis that Michael Ross pointed out: > > --- sun.bas.orig2013-06-17 11:51:00.0 -0700 +++ > sun.bas2013-06-17 11:57:55.

Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
Oops, here is another patch that includes a correction for the missing parenthesis that Michael Ross pointed out: --- sun.bas.orig 2013-06-17 11:51:00.0 -0700 +++ sun.bas 2013-06-17 11:57:55.0 -0700 @@ -104,7 +104,7 @@ 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT "S

Re: Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
Thanks a ton Greg. It is crashing here too. I am not sure as to the cause. I made a small patch to place on top of yours. There is a typo that outputs the sun position as DOG instead of DEG. Here it is: --- sun.bas.orig 2013-06-17 11:51:00.0 -0700 +++ sun.bas 2013-06-17 11:44:06.0

Re: Any BASIC Gurus around?

2013-06-17 Thread Michael Ross
I'm no BASIC Guru, but this one line caught my eye while scrolling through your mail: 2010 IF ABS(H>1. THEN GOTO 2040 Missing parenthesis? Regards, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/f

Re: Any BASIC Gurus around?

2013-06-17 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/13 1:16 PM, Chris Maness wrote: > I am having trouble getting this old USNO basic program running in > bwBASIC. The error output is not clear to me where the problem is. > Here is the code, if someone wouldn't mind running it and > suggesting e

Any BASIC Gurus around?

2013-06-17 Thread Chris Maness
I am having trouble getting this old USNO basic program running in bwBASIC. The error output is not clear to me where the problem is. Here is the code, if someone wouldn't mind running it and suggesting edits: 10 DEF FNARCOS(ARG)=1.570796-ATN(ARG/SQR(1.-ARG*ARG)) 20 DEF FNARCSIN(ARG)=ATN(ARG/SQR