summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/bytefield/bytefield.pdfbin718421 -> 724524 bytes
-rw-r--r--Master/texmf-dist/source/latex/bytefield/bytefield.dtx56
2 files changed, 56 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/bytefield/bytefield.pdf b/Master/texmf-dist/doc/latex/bytefield/bytefield.pdf
index f2718df17d8..3e1d0c5a37d 100644
--- a/Master/texmf-dist/doc/latex/bytefield/bytefield.pdf
+++ b/Master/texmf-dist/doc/latex/bytefield/bytefield.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/bytefield/bytefield.dtx b/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
index 232e5fb58dd..22d17e4d4eb 100644
--- a/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
+++ b/Master/texmf-dist/source/latex/bytefield/bytefield.dtx
@@ -1571,6 +1571,62 @@
% \end{bytefield}
% \end{bffigure}
%
+% The following variation uses variable-height regions in the memory map:
+% \changes{v2.1}{2012/09/02}{Included in the documentation a variable-height
+% memory-map example suggested by Martin Demling}
+%
+% \begin{verbatim}
+% \newcommand{\descbox}[2]{\parbox[c][3.8\baselineskip]{0.95\width}{%
+% % facilitates the creation of memory maps. Start address at the bottom,
+% % end address at the top.
+% % syntax:
+% % \memsection{end address}{start address}{height in lines}{text in box}
+% \newcommand{\memsection}[4]{%
+% % define the height of the memsection
+% \bytefieldsetup{bitheight=#3\baselineskip}%
+% \bitbox[]{10}{%
+% \texttt{#1}% print end address
+% \\
+% % do some spacing
+% \vspace{#3\baselineskip}
+% \vspace{-2\baselineskip}
+% \vspace{-#3pt}
+% \texttt{#2}% print start address
+% }%
+% \bitbox{16}{#4}% print box with caption
+% }
+%
+% \begin{bytefield}{24}
+% \memsection{ffff ffff}{0040 0000}{15}{-- free --}\\
+% \begin{rightwordgroup}{internal memory}
+% \memsection{003f ffff}{002f c000}{4}{Special Function
+% Registers}\\
+% \memsection{002f bfff}{0007 0000}{3}{-- reserved --}\\
+% \memsection{0006 ffff}{0000 0000}{8}{Internal Flash}
+% \end{rightwordgroup}\\
+% \end{bytefield}
+% \end{verbatim}
+%
+% \begin{bffigure}
+% \newcommand{\memsection}[4]{^^A
+% \bytefieldsetup{bitheight=#3\baselineskip}^^A
+% \bitbox[]{10}{^^A
+% \texttt{#1}^^A
+% \\ \vspace{#3\baselineskip}\vspace{-2\baselineskip}\vspace{-#3pt}^^A
+% \texttt{#2}^^A
+% }^^A
+% \bitbox{16}{#4}^^A
+% }
+% \begin{bytefield}{24}
+% \memsection{ffff ffff}{0040 0000}{15}{-- free --}\\
+% \begin{rightwordgroup}{internal memory}
+% \memsection{003f ffff}{002f c000}{4}{Special Function Registers}\\
+% \memsection{002f bfff}{0007 0000}{3}{-- reserved --}\\
+% \memsection{0006 ffff}{0000 0000}{8}{Internal Flash}
+% \end{rightwordgroup}\\
+% \end{bytefield}
+% \end{bffigure}
+%
%
% \subsection{Putting it all together}
%