<s>
BBC	B-Language
BASIC	I-Language
is	O
a	O
version	O
of	O
the	O
BASIC	O
programming	O
language	O
released	O
in	O
1981	O
as	O
the	O
native	O
programming	O
language	O
for	O
the	O
BBC	B-Device
Micro	I-Device
home/personal	O
computer	O
,	O
providing	O
a	O
standardized	O
language	O
for	O
a	O
UK	O
computer	O
literacy	O
project	O
of	O
the	O
BBC	O
.	O
</s>
<s>
BBC	B-Language
BASIC	I-Language
,	O
based	O
on	O
the	O
older	O
Atom	O
BASIC	O
for	O
the	O
Acorn	B-Device
Atom	I-Device
,	O
extended	O
contemporary	O
microcomputer	B-Architecture
BASICs	O
with	O
named	O
DEF	O
PROC/DEF	O
FN	O
procedures	O
and	O
functions	O
,	O
REPEAT	O
UNTIL	O
loops	O
,	O
and	O
IF	O
THEN	O
ELSE	O
structures	O
inspired	O
by	O
COMAL	B-Language
.	O
</s>
<s>
The	O
interpreter	B-Application
also	O
included	O
statements	O
for	O
controlling	O
the	O
BBC	B-Device
Micro	I-Device
's	O
four-channel	O
sound	O
output	O
and	O
its	O
low-/high	O
-resolution	O
eight-mode	O
graphics	O
display	O
.	O
</s>
<s>
Due	O
to	O
a	O
number	O
of	O
optimizations	O
,	O
BBC	B-Language
BASIC	I-Language
ran	O
programs	O
much	O
faster	O
than	O
Microsoft	B-Language
BASIC	I-Language
running	O
on	O
similar	O
machines	O
.	O
</s>
<s>
The	O
optimizations	O
included	O
using	O
multiple	O
linked	B-Data_Structure
lists	I-Data_Structure
for	O
variable	O
lookup	O
rather	O
than	O
a	O
single	O
long	O
list	O
,	O
pre-defining	O
the	O
location	O
of	O
integer	O
variables	O
,	O
and	O
having	O
separate	O
integer	O
maths	O
routines	O
.	O
</s>
<s>
Speed	O
was	O
further	O
improved	O
on	O
the	O
BBC	O
machine	O
by	O
its	O
fast	O
RAM	B-Architecture
chips	I-Architecture
,	O
which	O
allowed	O
the	O
MOS	B-General_Concept
Technology	I-General_Concept
6502	I-General_Concept
processor	O
and	O
Motorola	B-General_Concept
6845	I-General_Concept
display	O
driver	O
to	O
share	O
memory	O
without	O
either	O
pausing	O
for	O
access	O
.	O
</s>
<s>
As	O
a	O
result	O
of	O
these	O
design	O
features	O
,	O
BBC	B-Language
BASIC	I-Language
ran	O
David	O
Ahl	O
's	O
Creative	O
Computing	O
Benchmark	O
in	O
21	O
seconds	O
,	O
besting	O
even	O
the	O
IBM	B-Device
Personal	I-Device
Computer	I-Device
,	O
and	O
far	O
outpacing	O
most	O
other	O
8-bit	O
platforms	O
.	O
</s>
<s>
The	O
only	O
commercial	O
8-bit	O
BASIC	O
computers	O
that	O
were	O
as	O
fast	O
as	O
the	O
BBC	B-Device
Micro	I-Device
were	O
the	O
Swedish	O
ABC	B-Device
80	I-Device
and	O
ABC	B-Device
800	I-Device
.	O
</s>
<s>
The	O
improved	O
BASIC	O
4	O
on	O
the	O
BBC	B-Device
Master	I-Device
executes	O
the	O
same	O
benchmark	O
in	O
about	O
seven	O
seconds	O
.	O
</s>
<s>
One	O
of	O
the	O
unique	O
features	O
of	O
BBC	B-Language
BASIC	I-Language
was	O
the	O
inline	B-Language
assembler	I-Language
,	O
allowing	O
users	O
to	O
write	O
assembly	B-Language
language	I-Language
programs	O
for	O
the	O
6502	B-General_Concept
and	O
,	O
later	O
,	O
the	O
Zilog	B-General_Concept
Z80	I-General_Concept
,	O
NS32016	B-Device
and	O
ARM	B-Architecture
.	O
</s>
<s>
The	O
assembler	B-Language
was	O
fully	O
integrated	O
into	O
the	O
BASIC	B-Language
interpreter	I-Language
and	O
shared	O
variables	O
with	O
it	O
,	O
which	O
could	O
be	O
included	O
between	O
the	O
[	O
and	O
]	O
characters	O
,	O
saved	O
via	O
*	O
SAVE	O
and	O
*	O
LOAD	O
,	O
and	O
called	O
via	O
the	O
CALL	O
or	O
USR	O
commands	O
.	O
</s>
<s>
This	O
allowed	O
developers	O
to	O
write	O
not	O
just	O
assembly	B-Language
language	I-Language
code	O
,	O
but	O
also	O
BASIC	O
code	O
to	O
emit	O
assembly	B-Language
language	I-Language
,	O
making	O
it	O
possible	O
to	O
use	O
code-generation	O
techniques	O
and	O
even	O
write	O
simple	O
compilers	O
in	O
BASIC	O
.	O
</s>
<s>
Starting	O
with	O
the	O
original	O
Acorn	O
dialect	O
of	O
BASIC	O
—	O
"	O
12K	O
of	O
working	O
language	O
which	O
could	O
be	O
'	O
bent	O
at	O
will	O
 '	O
"	O
that	O
had	O
been	O
informed	O
by	O
Algol	O
W	O
and	O
BCPL	B-Language
in	O
its	O
design	O
—	O
Wilson	O
"	O
set	O
about	O
bending	O
it	O
towards	O
Pascal	O
"	O
in	O
collaboration	O
with	O
John	O
Coll	O
,	O
creating	O
a	O
language	O
combining	O
"	O
Microsoft	O
necessities	O
"	O
and	O
"	O
Pascal-ish	O
variations	O
"	O
.	O
</s>
<s>
Some	O
Pascal-influenced	O
features	O
such	O
as	O
labels	O
and	O
multi-line	O
conditional	O
statements	O
had	O
to	O
be	O
dropped	O
,	O
however	O
,	O
due	O
to	O
broad	O
compatibility	O
expectations	O
with	O
Microsoft	B-Language
BASIC	I-Language
,	O
ostensibly	O
imposed	O
by	O
the	O
requirements	O
of	O
the	O
BBC	O
.	O
</s>
<s>
BASIC	O
I	O
,	O
the	O
original	O
version	O
,	O
was	O
shipped	O
on	O
early	O
BBC	B-Device
Micros	I-Device
.	O
</s>
<s>
BASIC	O
II	O
was	O
used	O
on	O
the	O
Acorn	B-Device
Electron	I-Device
and	O
BBC	B-Device
Micros	I-Device
shipped	O
after	O
1982	O
,	O
including	O
the	O
Model	O
B	O
.	O
</s>
<s>
BASIC	O
IV	O
,	O
also	O
known	O
as	O
CMOS	O
BASIC	O
,	O
available	O
on	O
the	O
BBC	B-Device
Master	I-Device
machines	O
,	O
was	O
changed	O
to	O
use	O
the	O
new	O
instructions	O
available	O
in	O
the	O
65SC12	O
processor	O
,	O
reducing	O
the	O
size	O
of	O
the	O
code	O
and	O
therefore	O
allowing	O
the	O
inclusion	O
of	O
LIST	O
IF	O
,	O
EXT#	O
as	O
a	O
statement	O
,	O
EDIT	O
,	O
TIME$	O
,	O
ON	O
PROC	O
,	O
|	O
in	O
VDU	O
statements	O
and	O
faster	O
floating	O
point	O
.	O
</s>
<s>
This	O
allowed	O
more	O
program	O
space	O
to	O
be	O
available	O
on	O
either	O
the	O
external	O
or	O
internal	O
6502	B-General_Concept
Second	O
Processors	O
.	O
</s>
<s>
A	O
version	O
was	O
introduced	O
to	O
support	O
a	O
second	O
Zilog	B-General_Concept
Z80	I-General_Concept
processor	O
.	O
</s>
<s>
Another	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
,	O
called	O
BAS128	O
,	O
was	O
supplied	O
on	O
tape	O
and	O
disc	O
with	O
the	O
BBC	B-Device
Master	I-Device
and	O
Master	O
Compact	O
;	O
it	O
loaded	O
into	O
main	O
RAM	B-Architecture
and	O
used	O
the	O
64kB	O
of	O
Sideways	O
RAM	B-Architecture
for	O
user	O
programs	O
.	O
</s>
<s>
The	O
interpreter	B-Application
can	O
deal	O
with	O
both	O
BASIC	O
and	O
6502	B-General_Concept
assembly	B-Language
language	I-Language
,	O
which	O
can	O
be	O
included	O
between	O
the	O
[	O
and	O
]	O
characters	O
.	O
</s>
<s>
As	O
the	O
BBCMOS	O
and	O
RISCOS	B-Operating_System
were	O
usually	O
supplied	O
on	O
ROM	O
,	O
it	O
may	O
be	O
assumed	O
that	O
a	O
specific	O
release	O
of	O
the	O
operating	O
system	O
contained	O
a	O
specific	O
version	O
of	O
BASIC	O
.	O
</s>
<s>
On	O
the	O
BBC	O
family	O
,	O
it	O
is	O
possible	O
to	O
run	O
both	O
the	O
standard	O
BASIC	O
and	O
an	O
enhanced	O
HIBASIC	O
on	O
the	O
6502	B-General_Concept
Second	O
Processor	O
.	O
</s>
<s>
A	O
similar	O
situation	O
exists	O
on	O
RISC	B-Operating_System
OS	I-Operating_System
where	O
there	O
may	O
be	O
the	O
normal	O
BASIC	O
or	O
BASIC64	O
(	O
which	O
offers	O
higher	O
precision	O
maths	O
)	O
.	O
</s>
<s>
With	O
the	O
move	O
to	O
the	O
32-bit	O
ARM	B-Architecture
CPU	O
and	O
the	O
removal	O
of	O
the	O
16KB	O
limit	O
on	O
the	O
BASIC	O
code	O
size	O
many	O
new	O
features	O
were	O
added	O
.	O
</s>
<s>
Current	O
versions	O
of	O
RISC	B-Operating_System
OS	I-Operating_System
still	O
contain	O
a	O
BBC	B-Language
BASIC	I-Language
V	O
interpreter	B-Application
.	O
</s>
<s>
The	O
source	O
code	O
to	O
the	O
RISC	B-Operating_System
OS	I-Operating_System
5	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
V	O
has	O
been	O
released	O
under	O
the	O
Apache	O
2.0	O
license	O
by	O
RISC	B-Operating_System
OS	I-Operating_System
Open	O
.	O
</s>
<s>
In	O
2011	O
TBA	O
Software	O
released	O
test	O
versions	O
of	O
an	O
updated	O
BASIC	O
which	O
includes	O
support	O
for	O
VFP/NEON	O
from	O
assembler	B-Language
.	O
</s>
<s>
array	B-Data_Structure
operations	O
,	O
</s>
<s>
The	O
graphics	O
commands	O
were	O
entirely	O
backwards	O
compatible	O
,	O
the	O
sound	O
less	O
so	O
;	O
for	O
example	O
,	O
the	O
ENVELOPE	O
keyword	O
from	O
BASIC	O
V	O
onwards	O
is	O
a	O
command	O
that	O
takes	O
fourteen	O
numeric	O
parameters	O
and	O
effectively	O
does	O
nothing	O
—	O
as	O
in	O
older	O
versions	O
,	O
it	O
calls	O
OS_Word	O
8	O
,	O
but	O
that	O
does	O
nothing	O
on	O
RISC	B-Operating_System
OS	I-Operating_System
.	O
</s>
<s>
The	O
in-line	O
6502	B-General_Concept
assembler	B-Language
was	O
replaced	O
by	O
an	O
ARM	B-Architecture
assembler	B-Language
.	O
</s>
<s>
BBC	B-Language
BASIC	I-Language
V	O
and	O
VI	O
were	O
delivered	O
as	O
standard	O
on	O
the	O
Acorn	B-Device
Archimedes	I-Device
and	O
the	O
RiscPC	B-Device
.	O
</s>
<s>
A	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
V	O
was	O
also	O
available	O
to	O
run	O
on	O
the	O
ARM	B-Device
second	I-Device
processor	I-Device
for	O
the	O
BBC	B-Device
Micro	I-Device
.	O
</s>
<s>
A	O
compiler	O
for	O
BBC	B-Language
BASIC	I-Language
V	O
was	O
produced	O
by	O
Paul	O
Fellows	O
,	O
team	O
leader	O
of	O
the	O
Arthur	O
OS	O
development	O
,	O
called	O
the	O
Archimedes	B-Device
BASIC	O
Compiler	O
and	O
published	O
initially	O
by	O
DABS	O
Press	O
.	O
</s>
<s>
As	O
evidence	O
of	O
its	O
completeness	O
,	O
it	O
was	O
able	O
to	O
support	O
in-line	O
assembler	B-Language
syntax	O
.	O
</s>
<s>
The	O
compiler	O
was	O
written	O
in	O
BBC	B-Language
BASIC	I-Language
V	O
.	O
The	O
compiler	O
(	O
running	O
under	O
the	O
interpreter	B-Application
in	O
the	O
early	O
development	O
stages	O
)	O
was	O
able	O
to	O
compile	O
itself	O
,	O
and	O
versions	O
that	O
were	O
distributed	O
were	O
self-compiled	O
object	O
code	O
.	O
</s>
<s>
Many	O
applications	O
initially	O
written	O
to	O
run	O
under	O
the	O
interpreter	B-Application
benefitted	O
from	O
the	O
performance	O
boost	O
that	O
this	O
gave	O
,	O
putting	O
BBC	B-Language
BASIC	I-Language
V	O
on	O
a	O
par	O
with	O
other	O
languages	O
for	O
serious	O
application	O
development	O
.	O
</s>
<s>
BBC	B-Language
BASIC	I-Language
has	O
also	O
been	O
ported	O
to	O
many	O
other	O
platforms	O
.	O
</s>
<s>
A	O
NS32016	B-Device
version	O
of	O
BBC	B-Language
BASIC	I-Language
was	O
supplied	O
with	O
the	O
Acorn	O
32016	B-Device
coprocessor	O
and	O
Acorn	O
ABC	O
.	O
</s>
<s>
In	O
addition	O
to	O
the	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
supplied	O
with	O
the	O
BBC	B-Device
Micro	I-Device
's	O
Zilog	B-General_Concept
Z80	I-General_Concept
Second	O
processor	O
,	O
a	O
Z80-based	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
also	O
exists	O
for	O
CP/M	B-Application
-based	O
systems	O
.	O
</s>
<s>
A	O
Zilog	B-General_Concept
Z80	I-General_Concept
version	O
of	O
BBC	B-Language
BASIC	I-Language
was	O
also	O
used	O
on	O
the	O
Tiki	B-Device
100	I-Device
desktop	O
computer	O
,	O
Cambridge	B-Device
Z88	I-Device
portable	O
and	O
the	O
Amstrad	B-Device
NC100	I-Device
Notepad	O
and	O
Amstrad	B-Device
NC200	I-Device
Notebook	O
computers	O
.	O
</s>
<s>
This	O
version	O
has	O
been	O
implemented	O
on	O
the	O
TI-83	O
Plus	O
and	O
TI-84	B-Device
Plus	I-Device
series	I-Device
graphing	B-Application
calculators	I-Application
.	O
</s>
<s>
Harston	O
(	O
also	O
responsible	O
for	O
a	O
PDP-11	B-Device
version	O
)	O
a	O
version	O
of	O
for	O
the	O
Sinclair	B-Operating_System
ZX	I-Operating_System
Spectrum	I-Operating_System
was	O
released	O
in	O
January	O
2002	O
,	O
with	O
many	O
improvements	O
made	O
in	O
subsequent	O
releases	O
.	O
</s>
<s>
For	O
PC-based	O
systems	O
,	O
BBC	B-Language
BASIC	I-Language
was	O
also	O
implemented	O
for	O
DOS	B-Device
as	O
BBCBASIC	O
(	O
86	O
)	O
,	O
which	O
aimed	O
for	O
maximum	O
compatibility	O
with	O
the	O
BBC	B-Device
Micro	I-Device
,	O
and	O
BBasic	O
,	O
which	O
concentrated	O
on	O
the	O
BASIC	O
language	O
,	O
with	O
its	O
own	O
enhancements	O
based	O
on	O
BASIC	O
II	O
.	O
</s>
<s>
A	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
integrated	O
with	O
the	O
Microsoft	B-Application
Windows	I-Application
graphical	B-Application
user	I-Application
interface	I-Application
,	O
created	O
by	O
Richard	O
Russell	O
,	O
developer	O
of	O
the	O
Z80	B-General_Concept
and	O
x86	O
versions	O
,	O
was	O
released	O
in	O
2001	O
.	O
</s>
<s>
Whilst	O
supporting	O
nearly	O
completely	O
the	O
original	O
BBC	B-Language
BASIC	I-Language
specification	O
(	O
BASIC	O
IV	O
)	O
,	O
the	O
Windows	O
version	O
supports	O
much	O
of	O
BASIC	O
V/VI	O
syntax	O
as	O
well	O
as	O
some	O
advanced	O
features	O
of	O
its	O
own	O
.	O
</s>
<s>
Features	O
unique	O
to	O
BBC	B-Language
BASIC	I-Language
for	O
Windows	O
include	O
interpreter	B-Application
support	O
for	O
record/structure	O
types	O
,	O
and	O
the	O
ability	O
to	O
call	O
Windows	O
API	B-Application
routines	O
or	O
those	O
in	O
an	O
external	O
DLL	O
.	O
</s>
<s>
Recent	O
versions	O
have	O
included	O
advanced	O
features	O
comparable	O
with	O
languages	O
like	O
C	B-Language
,	O
and	O
an	O
external	O
library	O
has	O
recently	O
added	O
support	O
for	O
objects	O
.	O
</s>
<s>
BBC	B-Language
BASIC	I-Language
for	O
SDL	O
was	O
also	O
developed	O
by	O
Richard	O
T	O
.	O
Russell	O
,	O
supporting	O
Windows	O
,	O
Linux	O
and	O
a	O
number	O
of	O
mobile	O
devices	O
supporting	O
the	O
SDL	O
library	O
,	O
as	O
well	O
as	O
a	O
version	O
which	O
allows	O
the	O
running	O
of	O
BBC	B-Language
BASIC	I-Language
programs	O
as	O
applets	O
in	O
a	O
web-page	O
via	O
the	O
Web	O
Assembly	O
framework	O
.	O
</s>
<s>
A	O
GPL	B-License
clone	O
of	O
BBC	B-Language
BASIC	I-Language
named	O
Brandy	O
,	O
written	O
in	O
portable	O
C	B-Language
,	O
is	O
also	O
available	O
.	O
</s>
<s>
An	O
emulator	O
of	O
the	O
BBC	B-Device
Micro	I-Device
for	O
the	O
Commodore	B-Device
Amiga	I-Device
was	O
produced	O
by	O
Ariadne	O
Software	O
for	O
CBM	O
(	O
UK	O
)	O
.	O
</s>
<s>
While	O
extremely	O
fast	O
,	O
it	O
did	O
not	O
emulate	O
the	O
6502	B-General_Concept
at	O
full	O
speed	O
,	O
so	O
assembly	B-Language
code	I-Language
would	O
run	O
slower	O
than	O
a	O
real	O
BBC	O
while	O
BASIC	O
programs	O
would	O
run	O
much	O
faster	O
.	O
</s>
<s>
Due	O
to	O
the	O
way	O
the	O
optimised	O
BASIC	O
and	O
the	O
6502	B-General_Concept
emulation	O
interacted	O
,	O
almost	O
no	O
commercial	O
games	O
would	O
run	O
but	O
well-behaved	O
code	O
and	O
educational	O
software	O
generally	O
worked	O
.	O
</s>
<s>
For	O
a	O
while	O
it	O
was	O
bundled	O
with	O
a	O
special	O
academic	O
package	O
of	O
the	O
Amiga	B-Device
500	I-Device
,	O
in	O
the	O
hope	O
that	O
schools	O
would	O
replace	O
their	O
ageing	O
BBC	B-Device
Bs	I-Device
with	O
Amiga	B-Device
500s	I-Device
.	O
</s>
<s>
BBC	B-Device
Micro	I-Device
publishing	O
house	O
Computer	O
Concepts	O
produced	O
a	O
version	O
of	O
BBC	B-Language
Basic	I-Language
for	O
the	O
Atari	O
ST	O
,	O
named	O
Fast	O
ST	O
BASIC	O
,	O
as	O
a	O
ROM	O
cartridge	O
.	O
</s>
<s>
A	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
V	O
(	O
Z80	B-General_Concept
)	O
has	O
also	O
been	O
made	O
for	O
the	O
TI-83/84	O
+	O
Texas	O
Instruments	O
calculator	O
families	O
by	O
Benjamin	O
Ryves	O
.	O
</s>
<s>
Patched	O
Versions	O
of	O
Acorn	O
's	O
6502	B-General_Concept
based	O
HI-BASIC	O
have	O
also	O
been	O
experimentally	O
run	O
on	O
C64	O
,	O
with	O
an	O
interface	O
to	O
the	O
C64	O
Kernel	O
,	O
replacing	O
the	O
Acorn	O
MOS	O
calls	O
otherwise	O
made	O
.	O
</s>
<s>
There	O
have	O
also	O
been	O
efforts	O
to	O
make	O
6502	B-General_Concept
based	O
version	O
of	O
BBC	B-Language
BASIC	I-Language
available	O
on	O
the	O
Apple	O
II	O
series	O
of	O
computers	O
.	O
</s>
<s>
BBC	B-Language
BASIC	I-Language
is	O
the	O
programming	O
language	O
used	O
in	O
the	O
Agon	O
Light	O
,	O
an	O
open-sourced	O
8-bit	O
Z80-based	O
single	B-Device
board	I-Device
computer	I-Device
and	O
microcontroller	B-Device
designed	O
by	O
Bernardo	O
Kastrup	O
and	O
released	O
in	O
2022	O
.	O
</s>
