<s>
SWEET16	B-Application
is	O
an	O
interpreted	B-Application
byte-code	O
instruction	O
set	O
invented	O
by	O
Steve	O
Wozniak	O
and	O
implemented	O
as	O
part	O
of	O
the	O
Integer	B-Language
BASIC	I-Language
ROM	B-Device
in	O
the	O
Apple	B-Device
II	I-Device
series	I-Device
of	O
computers	O
.	O
</s>
<s>
It	O
was	O
created	O
because	O
Wozniak	O
needed	O
to	O
manipulate	O
16-bit	O
pointer	O
data	O
,	O
and	O
the	O
Apple	B-Device
II	I-Device
was	O
an	O
8-bit	O
computer	O
.	O
</s>
<s>
SWEET16	B-Application
was	O
not	O
used	O
by	O
the	O
core	O
BASIC	O
code	O
,	O
but	O
was	O
later	O
used	O
to	O
implement	O
several	O
utilities	O
.	O
</s>
<s>
Notable	O
among	O
these	O
was	O
the	O
line	O
renumbering	O
routine	O
,	O
which	O
was	O
included	O
in	O
the	O
Programmer	O
's	O
Aid	O
#1	O
ROM	B-Device
,	O
added	O
to	O
later	O
Apple	B-Device
II	I-Device
models	O
and	O
available	O
for	O
user	O
installation	O
on	O
earlier	O
examples	O
.	O
</s>
<s>
SWEET16	B-Application
code	O
is	O
executed	O
as	O
if	O
it	O
were	O
running	O
on	O
a	O
16-bit	O
processor	B-General_Concept
with	O
sixteen	O
internal	O
16-bit	O
little-endian	O
registers	B-General_Concept
,	O
named	O
through	O
.	O
</s>
<s>
Some	O
registers	B-General_Concept
have	O
well-defined	O
functions	O
:	O
</s>
<s>
The	O
16	O
virtual	O
registers	B-General_Concept
,	O
32	O
bytes	B-Application
in	O
total	O
,	O
are	O
located	O
in	O
the	O
zero	B-General_Concept
page	I-General_Concept
of	O
the	O
Apple	B-Device
II	I-Device
's	O
real	O
,	O
physical	O
memory	O
map	O
(	O
at	O
–	O
)	O
,	O
with	O
values	O
stored	O
as	O
low	O
byte	B-Application
followed	O
by	O
high	O
byte	B-Application
.	O
</s>
<s>
The	O
SWEET16	B-Application
interpreter	B-Application
itself	O
is	O
located	O
from	O
to	O
in	O
the	O
Integer	B-Language
BASIC	I-Language
ROM	B-Device
.	O
</s>
<s>
According	O
to	O
Wozniak	O
,	O
the	O
SWEET16	B-Application
implementation	O
is	O
a	O
model	O
of	O
frugal	O
coding	B-General_Concept
,	O
taking	O
up	O
only	O
about	O
300	O
bytes	B-Application
in	O
memory	O
.	O
</s>
<s>
SWEET16	B-Application
runs	O
at	O
about	O
one-tenth	O
the	O
speed	O
of	O
the	O
equivalent	O
native	O
6502	B-General_Concept
code	O
.	O
</s>
