SWEET16 is an interpreted byte-code instruction set invented by Steve Wozniak and implemented as part of the Integer BASIC ROM in the Apple II computers.
It was created because Wozniak needed to manipulate 16-bit pointer data, and the Apple II was an 8-bit computer.
Notable among these was the line renumbering routine, which was included in the Programmer's Aid #1 ROM, added to later Apple II models and available for user installation on earlier examples.
[2] SWEET16 code is executed as if it were running on a 16-bit processor with sixteen internal 16-bit little-endian registers, named R0 through R15.
According to Wozniak, the SWEET16 implementation is a model of frugal coding, taking up only about 300 bytes in memory.