Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic General > Re: BBC BASIC f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 17 of 22 Topic 619 of 702
Post > Topic >>

Re: BBC BASIC for Windows version 5.70a released

by "news@[EMAIL PROTECTED] " <news@[EMAIL PROTECTED] > Sep 3, 2007 at 01:14 PM

On Sep 3, 8:09 pm, "R.Nicholson" <rhnlo...@[EMAIL PROTECTED]
> wrote:
> And a programmer
> who knows how to use goto's might end up with a better
> feel for the hardware representation of a CPU.

I seriously doubt that.  It certainly doesn't apply in my case; I was
an assembly language programmer long before I was a BASIC programmer,
and of course all my BBC BASIC interpreters are written entirely in
assembler code, so I have a pretty good idea of the CPU's hardware
architecture.  Being forced to use 'gotos' all the time in my
assembler code doesn't make me any more inclined to use them in my
BASIC programs.

I would say it's also pretty significant that the person who designed
and coded the original BBC BASIC (Sophie Wilson) was also the co-
inventor and designer of the ARM processor, and indeed the ARM was
first simulated and tested in BBC BASIC!

> The other reason why a Basic implementation should have a
> GOTO statement is that it is required by the ANSI Minimal
> Basic Standard

I can't recollect there being any consideration of the ANSI Standard
when the BBC specified what was to become BBC BASIC in 1980/1981.
Either we didn't know about it or didn't care (or both)!

> Line numbers, as GOTO targets, in Chipmunk Basic must
> be in ascending order and spaced apart by at least
> the number of intervening lines.  This does cause
> some incompatibilities with later MS qbasic code
> which allows line numbers out of order.

BBC BASIC's line numbers must be in ascending sequence, but there's no
requirement for any minimum spacing.  The first line can be line 1 and
the last line 2, with all the others unnumbered, if you like.

> Just to help prevent this, Chipmunk Basic will clean up
> any broken for/next stack fragments at any more outer loop
> or subroutine return.

Yes, BBC BASIC will also clean up the stack on a function or procedure
return, so it's safe (from a stack point of view) to use GOTO there.
However, you can often achieve the same effect just by exiting from
the function prematurely - which is equivalent to a GOTO without
actually using one.

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
 




 22 Posts in Topic:
[ANN] BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-02 04:41:08 
Re: [ANN] BBC BASIC for Windows version 5.70a released
Happy Trails <nomail@[  2007-09-02 10:02:20 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-02 09:34:09 
Re: BBC BASIC for Windows version 5.70a released
Happy Trails <nomail@[  2007-09-02 17:21:00 
Re: BBC BASIC for Windows version 5.70a released
"Judson McClendon&qu  2007-09-03 08:50:49 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-02 15:23:37 
Re: BBC BASIC for Windows version 5.70a released
Happy Trails <nomail@[  2007-09-02 20:08:14 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 01:40:42 
Re: BBC BASIC for Windows version 5.70a released
ppnerkDELETETHIS@[EMAIL P  2007-09-03 11:29:28 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 05:05:33 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 08:45:35 
Re: BBC BASIC for Windows version 5.70a released
"Judson McClendon&qu  2007-09-03 13:48:03 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-03 11:16:08 
Re: BBC BASIC for Windows version 5.70a released
"Tom Lake" <  2007-09-03 18:37:13 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-03 11:25:22 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-03 12:09:41 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-03 13:14:01 
Re: BBC BASIC for Windows version 5.70a released
James <JT@[EMAIL PROTE  2007-09-04 00:31:44 
Re: BBC BASIC for Windows version 5.70a released
rhnlogic <rhnlogic@[EM  2007-09-03 22:33:36 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-04 01:18:19 
Re: BBC BASIC for Windows version 5.70a released
"news@[EMAIL PROTECT  2007-09-04 07:38:50 
Re: BBC BASIC for Windows version 5.70a released
"R.Nicholson" &  2007-09-04 10:22:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 20:15:47 CST 2008.