\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{bytefield}
\usepackage{tikz}

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}

\thispagestyle{empty}

\begin{document}


\section*{Sprite pallette select}

Each pixel of the sprite image is fetched and looked up in a sprite
palette.  This palette is a list of colors.  DEVICE gives you several
palette options: a 256-color palette, a 16-color palette and a 4-color
palette.  Why not always use the 256-color pallette?  Because by using the
smaller pallette options, you can squeeze more images into sprite image
memory.  A 256 byte sprite image can hold one sprite image in 256-color mode,
two images in 4-bit mode (with a 16 color palette), or four images in 2-bit mode (4 color palette).


\begin{tabular}{|r|l|}
\hline
7C0 & hexadecimal \\
3700 & octal \\ \cline{2-2}
11111000000 & binary \\
\hline \hline
1984 & decimal hehe \includegraphics[width=72pt]{tiny.png} \\
\hline
\end{tabular}

\begin{bytefield}{16}
\wordbox{1}{A} \\
\bitbox{8}{8 bits} & \bitbox{8}{8 more bits} \\
\wordbox{2}{A 32-bit field.  Note that text wraps within the box}
\end{bytefield}

% \begin{tikzpicture}
% \draw[step=.25cm,gray,thick] (-1,-1) grid (1,1);
% \end{tikzpicture}

\end{document}
