From owner-freebsd-questions@FreeBSD.ORG Mon Jun 17 18:56:36 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3711918C; Mon, 17 Jun 2013 18:56:36 +0000 (UTC) (envelope-from christopher.maness@gmail.com) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [IPv6:2607:f8b0:400c:c02::235]) by mx1.freebsd.org (Postfix) with ESMTP id DC17B193F; Mon, 17 Jun 2013 18:56:35 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id p12so2190652vbe.26 for ; Mon, 17 Jun 2013 11:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Ultc3F08iubXavbyvXU1Zc2WioFU9mDPn2dKhj/BQKU=; b=W/VGUFxt+VDMWPXCuMYkkARAUsFwfZoGbs1EXTyfMAJKgzVJ8pNDJOQIX6/heRJIau usnqBa2ikxzcMCOg+Jk6+KHSzfpKA+Ub+DlUK/wvHd7rt7hO56WwlZiawHv09LeQCwe5 Jp4Nu0LODQZmPTCrIYavxM6fGqVEnrh0A5ss5/bpgm6Wv0E+Uh3MBL9TIXEFhwRdl5N6 XPe5ZOVQLpGpm5uEc0yUZVRFh/k7g7Bo4S/dTk1yYy5MAd8hVbBU6lXq2g5Te5CwdcJ+ M9N940YEx3EAWtmRUNBKqLG1dujgdJkEUPO2V6O93K/ZusmnbpvC24H1MIoP67BAMd4F OXNw== MIME-Version: 1.0 X-Received: by 10.58.54.70 with SMTP id h6mr4907775vep.36.1371495395336; Mon, 17 Jun 2013 11:56:35 -0700 (PDT) Sender: christopher.maness@gmail.com Received: by 10.58.220.105 with HTTP; Mon, 17 Jun 2013 11:56:35 -0700 (PDT) In-Reply-To: <51BF4CF2.4060403@FreeBSD.org> References: <51BF4CF2.4060403@FreeBSD.org> Date: Mon, 17 Jun 2013 11:56:35 -0700 X-Google-Sender-Auth: B3HOZAtsqT1hpAAu1d3eOzwYfXM Message-ID: Subject: Re: Any BASIC Gurus around? From: Chris Maness To: glarkin@freebsd.org, "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jun 2013 18:56:36 -0000 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.000000000 -0700 +++ sun.bas 2013-06-17 11:44:06.000000000 -0700 @@ -104,7 +104,7 @@ 1020 ON N GOTO 1030, 1090 1030 IS=133775.*M/SK 1040 PRINT "SUN AZIMUTH (DEG.) ";AZ -1050 PRINT "SUN ALTITUDE (DOG.) ";HA +1050 PRINT "SUN ALTITUDE (DEG.) ";HA 1060 PRINT "SUN ILLUMINANCE (LUX) ";IS 1070 N=2 1080 GOTO 940 Regards, Chris Maness On Mon, Jun 17, 2013 at 10:52 AM, Greg Larkin wrote: > -----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 edits: > > > > ...setting wayback machine to ca. 1979... > > Here is a patch to apply to your code that gets the program a little > further: http://people.freebsd.org/~glarkin/diffs/prog.bas.diff > > There were some "O" characters that should have been "0" instead and > at least a couple of Unicode characters that I removed. > > It prints out some results up to the moon illuminance, and then > bwBasic core dumps, but maybe you'll be able to debug from there. > > Good luck, > Greg > - -- > Greg Larkin > > http://www.FreeBSD.org/ - The Power To Serve > http://www.sourcehosting.net/ - Ready. Set. Code. > http://twitter.com/cpucycle/ - Follow you, follow me > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.13 (Darwin) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlG/TPIACgkQ0sRouByUApDxQwCggXDVspM4GF2dlI5EvlmUsvld > qtYAn2NeBVSPHJ8p4nEYvN80bbXZGecr > =Z9tY > -----END PGP SIGNATURE----- >