<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://moddingwiki.shikadi.net/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arjay</id>
	<title>ModdingWiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://moddingwiki.shikadi.net/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arjay"/>
	<link rel="alternate" type="text/html" href="https://moddingwiki.shikadi.net/wiki/Special:Contributions/Arjay"/>
	<updated>2026-05-14T05:01:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.11</generator>
	<entry>
		<id>https://moddingwiki.shikadi.net/w/index.php?title=B800_Text&amp;diff=3863</id>
		<title>B800 Text</title>
		<link rel="alternate" type="text/html" href="https://moddingwiki.shikadi.net/w/index.php?title=B800_Text&amp;diff=3863"/>
		<updated>2011-12-27T00:52:46Z</updated>

		<summary type="html">&lt;p&gt;Arjay: Added link to TheDraw (wikipedia page as most appropriate link)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;B800 Text&#039;&#039;&#039; is a text-mode screen dump, and under x86 real mode (such as used by DOS) can be copied byte for byte into memory starting at &amp;lt;tt&amp;gt;B800:0000&amp;lt;/tt&amp;gt;, causing the data to appear on the screen.  It is most often used to display the final text screen after quitting a game, with the DOS prompt appearing on the last line once the game has terminated.&lt;br /&gt;
&lt;br /&gt;
== File format ==&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-style: none; float: right; clear: right; margin-left: 1.5em; text-align:center; hspace=10px&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | &amp;lt;nowiki&amp;gt;Full CGA 16-color palette&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #000000&amp;quot; | 0 — black&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#000000&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #555555&amp;quot; | 8 — (dark) gray&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#555555&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #0000AA&amp;quot; | 1 — blue&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#0000AA&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #5555FF&amp;quot; | 9 — bright blue&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#5555FF&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #00AA00&amp;quot; | 2 — green&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#00AA00&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #55FF55&amp;quot; | 10 — bright green&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#55FF55&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #00AAAA&amp;quot; | 3 — cyan&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#00AAAA&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #55FFFF&amp;quot; | 11 — bright cyan&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#55FFFF&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #AA0000&amp;quot; | 4 — red&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#AA0000&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #FF5555&amp;quot; | 12 — bright red&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#FF5555&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #AA00AA&amp;quot; | 5 — magenta&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#AA00AA&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #FF55FF&amp;quot; | 13 — bright magenta&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#FF55FF&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: white; background-color: #AA5500&amp;quot; | 6 — brown&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#AA5500&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #FFFF55&amp;quot; | 14 — yellow&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#FFFF55&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #AAAAAA&amp;quot; | 7 — white (light gray)&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#AAAAAA&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| style=&amp;quot;color: black; background-color: #FFFFFF&amp;quot; | 15 — bright white&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;#FFFFFF&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Since the file format is just a direct dump of video memory, this would more accurately be termed the &amp;quot;CGA text mode format.&amp;quot;  The file is almost always 4000 bytes long, as this is the exact amount of space required to store a standard 80x25 text screen (80 columns * 25 rows * two bytes per cell == 4000 bytes.)&lt;br /&gt;
&lt;br /&gt;
The data is arranged in cells, with each cell being two bytes long (one byte for the ASCII character to display, followed by an attribute byte indicating the colour of the character.)  The data appears starting at the top-left of the screen (1,1) and works its way across to the right (80,1) and then wraps down to the next line (1,2).&lt;br /&gt;
&lt;br /&gt;
The attribute byte contains two nybbles of data.  The most significant four bits are the background colour, and the least significant bits are the foreground colour.  This means the background and foreground colours can each be assigned a colour value between zero (black) and 15 (white) - see the table on the right for the full list of colours.&lt;br /&gt;
&lt;br /&gt;
The background colour is slightly different however.  Since the original CGA hardware was not designed to produce high intensity background colours the intensity bit is used to cause the text to flash instead.  This means setting the background colour to 14 won&#039;t produce a bright-yellow background, but instead will produce a normal yellow background (colour #6) with blinking text.  The VGA standard includes a toggle bit that allows this flashing to be switched off, thus allowing the full 16 background colours to be used (without any flashing of course.)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
As a demonstration, these bytes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
48 1E  65 2E  6C 3E  6C 4E  6F 5E        H.e.l.l.o.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Would appear like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: black; padding: 4px; font-size: 14pt; width: 20em;&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&amp;lt;b&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;lt;span style=&amp;quot;background-color: #0000AA; color: #FFFF55&amp;quot;&amp;gt;H&amp;lt;span style=&amp;quot;background-color: #00AA00;&amp;quot;&amp;gt;e&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;background-color: #00AAAA;&amp;quot;&amp;gt;l&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;background-color: #AA0000;&amp;quot;&amp;gt;l&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;background-color: #AA00AA;&amp;quot;&amp;gt;o&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/b&amp;gt;&amp;lt;/tt&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tools ==&lt;br /&gt;
&lt;br /&gt;
The following tools are known to work with this format:&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/TheDraw TheDraw] - DOS-based text animation/screen editor, which does support B800 text and many other DOS formats.  TheDraw also runs under DOSBox.&lt;br /&gt;
* [http://www.theabsolute.net/sware/oldfav.html TextPaint] - DOS-based text screen editor, which unfortunately doesn&#039;t support B800 text but is still very powerful, and useful enough to warrant a mention.&lt;br /&gt;
* [http://dlc.softwareload.de/SHMANSi/5597 Shmansi] - Another DOS-based text screen editor, which can import and export B800 text.&lt;br /&gt;
* [http://www.doomworld.com/idgames/index.php?id=3692 ENDOOMER]- Yet another DOS-based text screen editor, which can import and export B800 text, and can be used with the mouse as well.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Wikipedia:Color Graphics Adapter]] - lots of interesting information about the CGA hardware&lt;br /&gt;
&lt;br /&gt;
[[Category:File Formats]]&lt;br /&gt;
[[Category:Graphics Files]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- All the games that use this file format --&amp;gt;&lt;br /&gt;
[[Category:Blake Stone]]&lt;br /&gt;
[[Category:Boppin&#039;]]&lt;br /&gt;
[[Category:Commander Keen 1-3]]&lt;br /&gt;
[[Category:Commander Keen Dreams]]&lt;br /&gt;
[[Category:Commander Keen 4-6]]&lt;br /&gt;
[[Category:Cosmo&#039;s Cosmic Adventures]]&lt;br /&gt;
[[Category:Crystal Caves]]&lt;br /&gt;
[[Category:Descent]]&lt;br /&gt;
[[Category:Duke Nukem II]]&lt;br /&gt;
[[Category:Duke Nukem 3D]]&lt;br /&gt;
[[Category:Halloween Harry]]&lt;br /&gt;
[[Category:Hocus Pocus]]&lt;br /&gt;
[[Category:Jill of the Jungle]]&lt;br /&gt;
[[Category:Kiloblaster]]&lt;br /&gt;
[[Category:Major Stryker]]&lt;br /&gt;
[[Category:Monster Bash]]&lt;br /&gt;
[[Category:Raptor]]&lt;br /&gt;
[[Category:Rise of the Triad]]&lt;br /&gt;
[[Category:Secret Agent]]&lt;br /&gt;
[[Category:Terminal Velocity]]&lt;br /&gt;
[[Category:Vinyl Goddess From Mars]]&lt;br /&gt;
[[Category:Wacky Wheels]]&lt;br /&gt;
[[Category:Wolfenstein 3-D]]&lt;br /&gt;
[[Category:Xargon]]&lt;br /&gt;
[[Category:Zone 66]]&lt;/div&gt;</summary>
		<author><name>Arjay</name></author>
	</entry>
</feed>