![]() |
![]() |
|
![]() |
![]() |
Encyclopedia :
C :
CH :
CHI :
CHIP-8 |
|
|
CHIP-8CHIP-8 is an interpreted programming language that was used on the COSMAC VIP and Telmac 1800 8-bit microcomputers in the mid-1970s. CHIP-8 programs are run on a CHIP-8 virtual machine. It was made to allow video games to be more easily programmed for said computers. Roughly twenty years after CHIP-8 was introduced, derived interpreters appeared for some models of graphing calculators (from the late 1980s onward, these handheld devices in many ways have more computing power than most mid-1970s microcomputers for hobbyists). CHIP-8 applications There are a number of classic video games ported to CHIP-8, such as Pong, Space Invaders, Tetris, and Pac-Man. There's also a random maze generator available. These programs are reportedly placed in the public domain, and can be easily found on the Internet. CHIP-8 todayThere is a CHIP-8 implementation for almost every platform imaginable today, as well as some development tools. Despite this, there is a small number of games for the CHIP-8. Perhaps this is because many people view the CHIP-8 as a good first emulator project, and because of that, many CHIP-8 implementations have appeared. CHIP-8 has a descendant called SCHIP (Super Chip). In 1990, a CHIP-8 interpreter called CHIP-48 was made for HP-48 graphing calculators so that games could be programmed more easily. It's extensions to CHIP-8 are what became known as SCHIP. It features a larger resolution and several additional opcodes which make programming easier. If it were not for the development of the CHIP-48 interpreter, CHIP-8 would not be as well known today. Virtual machine descriptionMemory CHIP-8's memory addresses range from 200h to FFFh, making for 3,584 bytes. The reason for the memory starting at 200h is that on the Cosmac VIP and Telmac 1800, the first 512 bytes are reserved for the interpreter. RegistersThe CHIP-8 has 16 8-bit data registers named from V0 to VF. The VF register doubles as a carry flag. The address register, which is named I, is 16 bits wide and is used with several opcodes that involve memory operations. The stack The stack is only used to store return addresses when subroutines are called. It is unknown how deep the stack was on the original implementations, but modern implementations normally have at least 16 levels. TimersCHIP-8 has two timers. They both count down at 60 hertz, until they reach 0.
Graphics and soundDisplay resolution is 64×32 pixels, and color is monochrome. Graphics are drawn to the screen soley by drawing spritess, which are 8 pixels wide and may be from 1 to 15 pixels in height. Sprite pixels that are set flip the color of the corresponding screen pixel, while unset sprite pixels do nothing. The carry flag (VF) is set to 1 if any screen pixels are flipped from set to unset when a sprite is drawn. As previously described, a beeping sound is played when the value of the sound timer is nonzero. Opcode tableCHIP-8 has 35 opcodes, which are all two bytes long. They are listed below, in hexadecimal and with the following symbols:
|
|
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License. |
|
| © 2008 Chamas Enterprises Inc. |