SWEET16
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.[src] It was created because Wozniak needed to manipulate 16-bit pointer data, and the Apple II was an 8-bit computer.[src] SWEET16 was not used by the core BASIC code, but was later used to implement several utilities.[src] 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.[src] SWEET16 code is executed as if it were running on a 16-bit processor with sixteen internal 16-bit little-endian registers, named through .[src] Some registers have well-defined functions: * – accumulator * – subroutine stack pointer * – stores the result of all comparison operations for branch testing * – status register * – program counter The 16 virtual registers, 32 bytes in total, are located in the zero page of the Apple II's real, physical memory map (at – ), with values stored as low byte followed by high byte.[src] The SWEET16 interpreter itself is located from to in the Integer BASIC ROM.[src] According to Wozniak, the SWEET16 implementation is a model of frugal coding, taking up only about 300 bytes in memory.…[src]
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.[src] It was created because Wozniak needed to manipulate 16-bit pointer data, and the Apple II was an 8-bit computer.[src] SWEET16 was not used by the core BASIC code, but was later used to implement several utilities.[src] 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.[src] SWEET16 code is executed as if it were running on a 16-bit processor with sixteen internal 16-bit little-endian registers, named through .[src] Some registers have well-defined functions: – accumulator – subroutine stack pointer – stores the result of all comparison operations for branch testing – status register – program counter The 16 virtual registers, 32 bytes in total, are located in the zero page of the Apple II's real, physical memory map (at – ), with values stored as low byte followed by high byte.[src] The SWEET16 interpreter itself is located from to in the Integer BASIC ROM.[src] According to Wozniak, the SWEET16 implementation is a model of frugal coding, taking up only about 300 bytes in memory.[src] SWEET16 runs at about one-tenth the speed of the equivalent native 6502 code; however it shaved around 20% off the size of Integer BASIC.[src] ==Operations== ==References== ==External links== Call-A.P.P.L.E.[src] Wozpak II — 1979 Call-A.P.P.L.E.[src] booklet that includes "SWEET 16 Introduction" by Dick Sedgewick and a version of "SWEET 16: The 6502 Dream Machine" by Steve Wozniak with longer descriptions of each opcode.[src] Randall Hyde's 1981 book "How to Program the Apple II - Using 6502 Assembly Language" states in the title byline that it comes "With an Introduction to Sweet-16".[src]
21 sentences · 21 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"SWEET16." encyclopegia.org, 2026, https://encyclopegia.org/wiki/sweet16. Accessed 30 November 2026.
Chicago
"SWEET16." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/sweet16.
APA
encyclopegia.org. (2026). SWEET16. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/sweet16
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON