Gaming
 

ENDOOM

From Doom Wiki

Ultimate Doom's ENDOOM taken from XWE.
Doom v0.4's ENDOOM screen.
Doom v0.5's ENDOOM screen.

ENDOOM is the colorful screen shown when Doom exits. Note that some other ports do not show ENDOOM, and authors of modern WADs often do not bother to include replacement ENDOOM lumps. In Boom, the equivalent lump is known as the ENDBOOM lump.

ENDOOM consists of 4,000 bytes representing an 80 by 25 block of text exactly as it would be stored in VGA video memory. Every character position on the screen is stored as two bytes in the resource: the first byte is simply the character's 8-bit extended ASCII value, while the second byte gives color information. This means that the line-drawing characters in the IBM PC character set may be used.

End text screen from Heretic: Shadow of the Serpent Riders displayed by the Eternity Engine.
Heretic's ENDOOM

The second byte is further broken down into three pieces. Bits 0-3 give the foreground color, 4-6 give the background color, and bit 7 is a flag that tells whether the character should blink. The colors are the standard text-mode colors used by DOS. As a result of bit 7 being used to indicate blinking text, background colors are limited to the first eight (dark) colors in the following list, while the foreground may be chosen from all sixteen colors (dark and bright).

Background and Foreground Colors
CodeColor
0Black
1Blue
2Green
3Cyan
4Red
5Magenta
6Brown
7Light Gray/White
Foreground Only
CodeColor
8Dark Gray
9Light Blue
ALight Green
BLight Cyan
CLight Red
DLight Magenta
EYellow
FBright White

[edit] References