CHIP-8
implemented in CHIP-8 running CHIP-8 game Space Intercept (Joseph Weisbecker, 1978) CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker on his 1802 microprocessor.[src] It was initially used on the COSMAC VIP and Telmac 1800, which were 8-bit microcomputers made in the mid-1970s.[src] CHIP-8 was designed to use less memory than other programming languages like BASIC, while still being easier to program than machine code.[src] The language looks like machine code as it uses hexadecimal codes for instructions, but as an interpreter, like BASIC, it does not need to be assembled or linked before running.[src] CHIP-8 interpreters have since been made for many devices, such as home computers, microcomputers, graphing calculators, mobile phones, and video game consoles.[src]
implemented in CHIP-8]] running CHIP-8 game Space Intercept (Joseph Weisbecker, 1978)]] CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker on his 1802 microprocessor.[src] It was initially used on the COSMAC VIP and Telmac 1800, which were 8-bit microcomputers made in the mid-1970s.[src] CHIP-8 was designed to use less memory than other programming languages like BASIC, while still being easier to program than machine code.[src] The language looks like machine code as it uses hexadecimal codes for instructions, but as an interpreter, like BASIC, it does not need to be assembled or linked before running.[src] CHIP-8 interpreters have since been made for many devices, such as home computers, microcomputers, graphing calculators, mobile phones, and video game consoles.[src] ==Community== CHIP-8 has been used on a wide range of devices over time; the first community to use CHIP-8 started in the 1970s on microcomputers.[src] They shared extensions and programs in newsletters such as ARESCO's VIPER for COSMAC VIP users or DREAMER for DREAM 6800 users.[src] In the VIPER newsletter, the first three issues detailed the machine code for the CHIP-8 interpreter for the VIP.[src] CHIP-8 applications include original games, demos, as well as recreations of popular games from other systems.[src] Some CHIP-8 applications have been released into the public domain using licenses like the Creative Commons Zero license.[src] ==CHIP-8 extensions and variations== During the 1970s and 1980s, CHIP-8 users shared CHIP-8 programs, but also changes and extensions to the CHIP-8 interpreter, like in the VIPER magazine for COSMAC VIP.[src] These extensions included CHIP-10 and Hi-Res CHIP-8, which introduced a higher resolution than the standard 64 × 32, and CHIP-8C and CHIP-8X, which extended the monochrome display capabilities to support limited color, among other features.[src] These extensions were mostly backwards compatible, as they were based on the original interpreter, although some repurposed rarely used opcodes for new instructions.[src] In 1979, Electronics Australia ran a series of articles on building a kit computer similar to the COSMAC VIP, based on the Motorola 6800 architecture.[src] This computer, the DREAM 6800, came with its own version of CHIP-8.[src] A newsletter similar to VIPER, called DREAMER, was used to share CHIP-8 games for this interpreter.[src] In 1981, Electronics Today International (ETI) ran a series of articles on building a computer, the ETI-660, which was also very similar to the VIP (and used the same microprocessor).[src] ETI ran regular ETI-660 and general CHIP-8 columns until 1985.[src] In 1990, a CHIP-8 interpreter called CHIP-48 was made by Andreas Gustafsson for HP-48 graphing calculators.[src] Erik Bryntse later created another interpreter based on CHIP-48, titled "SUPER-CHIP", often shortened to SCHIP or S-CHIP.[src] SCHIP extended the CHIP-8 language with a larger resolution and several additional opcodes meant to make programming easier.[src] David Winter's interpreter, disassembler, and extended technical documentation popularized CHIP-8/SCHIP on other platforms.[src] It laid out a complete list of undocumented opcodes and features and was distributed across hobbyist forums.[src] Many interpreters used these works as a starting point.[src] However, CHIP-48 subtly changed the semantics of a few of the opcodes, and SCHIP continued to use those new semantics in addition to changing other opcodes.[src] Many online resources about CHIP-8 propagate these new semantics, so many modern CHIP-8 games are not backwards compatible with the original CHIP-8 interpreter for the COSMAC VIP, even if they do not specifically use the new SCHIP extensions.[src] Some extensions take opcodes or behavior from multiple extensions, like XO-CHIP, which takes some from behavior from SCHIP and CHIP-8E.[src] ==Virtual machine description== ===Memory=== CHIP-8 was most commonly implemented on 4 kibibyte (KiB) systems (e.g.[src] Cosmac VIP and Telmac 1800) with 4096 (0x1000) memory locations of 8 bits (a byte), which is where the term CHIP-8 originated.[src] However, the CHIP-8 interpreter itself occupies the first 512 bytes of the memory space on these machines.[src] For this reason, most programs written for the original system begin at memory location 512 (0x200) and do not access any of the memory below the location 512 (0x200).[src] The uppermost 256 bytes (0xF00-0xFFF) are reserved for display refresh, and the 96 bytes below that (0xEA0-0xEFF) were reserved for the call stack, internal use, and other variables.[src] In modern CHIP-8 implementations, where the interpreter is running natively outside the 4 KiB memory space, there is no need to avoid the lower 512 bytes of memory (0x000-0x1FF), and it is common to store font data there.[src] ===Registers=== CHIP-8 has 16 8-bit data registers named V0 to VF.[src] The VF register doubles as a flag for some instructions; thus, it should be avoided.[src] In an addition operation, VF is the carry flag, while in subtraction, it is the "no borrow" flag.[src] In the draw instruction VF is set upon pixel collision.[src] The 12-bit address register, named I, is used with several opcodes that involve memory operations.[src] ===The stack=== The stack is only used to store return addresses when subroutines are called.[src] The original RCA 1802 version allocated 48 bytes for up to 12 levels of nesting; modern implementations usually have more.[src] ===Timers=== CHIP-8 has two 8-bit timers.[src] They both count down at 60 hertz, until they reach 0.[src] Delay timer: This timer is intended to be used for timing the events of games.[src] Its value can be set and read.[src] Sound timer: This timer is used for sound effects.[src] When its value is nonzero, a beeping sound is made.[src] Its value can only be set.[src] ===Input=== Input is done with a hex keyboard that has 16 keys ranging to .[src] The , , , and keys are typically used for directional input.[src] Three opcodes are used to detect input.[src] One skips an instruction if a specific key is pressed, while another does the same if a specific key is not pressed.[src] The third waits for a key press, and then stores it in one of the data registers.[src] ===Graphics and sound=== The original CHIP-8 display resolution is 64×32 pixels, and its color is monochrome.[src] Graphics are drawn to the screen solely by drawing sprites, which are 8 pixels wide and may be from 1 to 15 pixels in height.[src] Sprite pixels are XOR'd with corresponding screen pixels.[src] In other words, sprite pixels that are set flip the color of the corresponding screen pixel, while unset sprite pixels do nothing.[src] The carry flag (VF) is set to 1 if any screen pixels are flipped from set to unset when a sprite is drawn and set to 0 otherwise.[src] This is used for collision detection.[src] As previously described, a beeping sound is played when the value of the sound timer is nonzero.[src] ===Opcode table=== CHIP-8 has 35 opcodes, which are all two bytes long and stored big-endian.[src] The opcodes are listed below, in hexadecimal and with the following symbols: NNN: address NN: 8-bit constant N: 4-bit constant X and Y: 4-bit register identifier PC : Program Counter I : 12-bit register (For memory address) (Similar to void pointer); VN: One of the 16 available variables.[src] N may be 0 to F (hexadecimal); There have been many implementations of the CHIP-8 instruction set since 1978.[src] The following specification is based on the SUPER-CHIP specification from 1991 (but without the additional opcodes that provide extended functionality), as that is the most commonly encountered extension set today.[src] Footnotes denote incompatibilities with the original CHIP-8 instruction set from 1978.[src] ==See also== Fantasy video game console ===Notes=== ==References== ==Further reading== CHIP-8 Variant Opcode Table an accurate reference to the opcodes for CHIP-8 and several extensions, including CHIP-48, SCHIP 1.0, 1.1, XO-CHIP.[src] Mastering CHIP-8, an accurate reference to the original CHIP-8 instruction set.[src] Cowgod's Chip-8 Technical Reference contains inaccuracies and omissions in several instructions.[src] Matt Mikolay CHIP-8 Extensions Reference , with authorized scans of the VIPER magazine.[src] CHIP-8.com CHIP-8 Classic Computer Manual Archive of Chip8.com Website dedicated to CHIP-8 and related systems.[src] Maintained a large collection of CHIP-8 programs on the net.[src] "RCA COSMAC VIP CDP18S711 Instruction Manual," RCA Solid State Division, Somerville, NJ 08776, February 1978.[src] Part VIP-311.[src] pp. 13–18, 35–37.[src] BYTE magazine, December 1978, pp. 108–122.[src] "An Easy Programming System," by Joseph Weisbecker.[src] Describes CHIP-8 with specific example of a rocketship and UFO shooting-gallery game.[src] ==External links== FPGA SuperChip A Verilog implementation of the SCHIP specification.[src] Octo is an Online CHIP-8 IDE, Development System, Compiler/Assembler and Emulator, with a proprietary scripting language Cadmium is a CHIP-8 interpreter for computers, with a GUI which allows for selecting accurate emulation of different extensions and implementations of CHIP-8 Silicon8 A CHIP-8 emulator for web browsers.[src] ChippOtto A CHIP-8 interpreter written in C.[src] Chip-8 Console A CHIP-8 and SCHIP hardware console featuring an OLED display and powered by a 8-bit microcontroller.[src]
85 sentences · 85 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"CHIP-8." encyclopegia.org, 2026, https://encyclopegia.org/wiki/chip-8. Accessed 26 November 2026.
Chicago
"CHIP-8." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/chip-8.
APA
encyclopegia.org. (2026). CHIP-8. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/chip-8
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON