<s>
PBASIC	B-Language
is	O
a	O
microcontroller-based	O
version	O
of	O
BASIC	O
created	O
by	O
Parallax	O
,	O
Inc	O
.	O
in	O
1992	O
.	O
</s>
<s>
PBASIC	B-Language
was	O
created	O
to	O
bring	O
ease	O
of	O
use	O
to	O
the	O
microcontroller	B-Architecture
and	O
embedded	B-Architecture
processor	I-Architecture
world	O
.	O
</s>
<s>
It	O
is	O
used	O
for	O
writing	O
code	O
for	O
the	O
BASIC	B-Language
Stamp	I-Language
microcontrollers	B-Architecture
.	O
</s>
<s>
After	O
the	O
code	O
is	O
written	O
,	O
it	O
is	O
tokenized	O
and	O
loaded	O
into	O
an	O
EEPROM	B-General_Concept
on	O
the	O
microcontroller	B-Architecture
.	O
</s>
<s>
These	O
tokens	O
are	O
fetched	O
by	O
the	O
microcontroller	B-Architecture
and	O
used	O
to	O
generate	O
instructions	O
for	O
the	O
processor	O
.	O
</s>
<s>
When	O
starting	O
a	O
PBASIC	B-Language
file	O
,	O
the	O
programmer	O
defines	O
the	O
version	O
of	O
the	O
BASIC	B-Language
Stamp	I-Language
and	O
the	O
version	O
of	O
PBASIC	B-Language
that	O
will	O
be	O
used	O
.	O
</s>
<s>
The	O
DO	O
LOOP	O
,	O
FOR	O
NEXT	O
loop	O
,	O
IF	O
and	O
ENDIF	O
,	O
and	O
some	O
standard	O
BASIC	O
commands	O
are	O
part	O
of	O
the	O
language	O
,	O
but	O
many	O
commands	O
like	O
PULSOUT	O
,	O
HIGH	O
,	O
LOW	O
,	O
DEBUG	O
,	O
and	O
FREQOUT	O
are	O
native	O
to	O
PBASIC	B-Language
and	O
are	O
used	O
for	O
special	O
purposes	O
that	O
are	O
not	O
available	O
in	O
traditional	O
BASIC	O
(	O
such	O
as	O
having	O
the	O
Basic	B-Language
Stamp	I-Language
ring	O
a	O
piezoelectric	O
speaker	O
,	O
for	O
example	O
)	O
.	O
</s>
<s>
In	O
the	O
Stamp	O
Editor	O
,	O
the	O
PBASIC	B-Language
integrated	B-Application
development	I-Application
environment	I-Application
(	O
IDE	O
)	O
running	O
on	O
a	O
(	O
Windows	O
)	O
PC	O
,	O
the	O
programmer	O
has	O
to	O
select	O
1	O
of	O
7	O
different	O
basic	B-Language
stamps	I-Language
,	O
BS1	O
,	O
BS2	O
,	O
BS2E	O
,	O
BS2SX	O
,	O
BS2P	O
,	O
BS2PE	O
,	O
and	O
BS2PX	O
,	O
which	O
is	O
done	O
by	O
using	O
one	O
of	O
these	O
commands	O
:	O
</s>
<s>
The	O
programmer	O
must	O
also	O
select	O
which	O
PBASIC	B-Language
version	O
to	O
use	O
,	O
which	O
he	O
or	O
she	O
may	O
express	O
with	O
commands	O
such	O
as	O
these	O
:	O
</s>
<s>
Comments	O
in	O
the	O
code	O
are	O
preceded	O
by	O
an	O
apostrophe	B-Language
( 	O
 '	O
)	O
.	O
</s>
<s>
The	O
microcontroller	B-Architecture
ignores	O
the	O
rest	O
of	O
the	O
line	O
and	O
continues	O
to	O
the	O
next	O
each	O
time	O
it	O
encounters	O
a	O
comment	O
.	O
</s>
<s>
PBASIC	B-Language
codes	O
can	O
be	O
simply	O
a	O
list	O
of	O
statements	O
:	O
</s>
<s>
If	O
the	O
programmer	O
selects	O
'	O
Run	O
 '	O
from	O
the	O
IDE	O
's	O
menu	O
,	O
the	O
program	O
is	O
tokenized	O
and	O
uploaded	B-Application
to	O
the	O
Basic	B-Language
Stamp	I-Language
through	O
an	O
RS232	O
or	O
USB	O
cable	O
and	O
stored	O
in	O
the	O
stamp	O
's	O
EEPROM	B-General_Concept
as	O
Huffman	O
compressed	O
non-byte-aligned	O
variable-length	O
tokens	O
,	O
and	O
immediately	O
executed	O
.	O
</s>
<s>
Because	O
statements	O
are	O
non-byte-aligned	O
,	O
a	O
subroutine	O
can	O
start	O
on	O
any	O
bit	O
in	O
any	O
byte	O
in	O
the	O
EEPROM	B-General_Concept
.	O
</s>
<s>
The	O
PICAXE	B-Device
microcontroller	B-Architecture
uses	O
a	O
version	O
of	O
Basic	O
similar	O
to	O
the	O
version	O
used	O
to	O
program	O
the	O
Basic	B-Language
Stamp	I-Language
I	O
.	O
</s>
