diff options
author | Karl Berry <karl@freefriends.org> | 2012-09-03 22:54:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-09-03 22:54:29 +0000 |
commit | c4a2088cc9b48daf6a5d44ba0857661fbe4d43a5 (patch) | |
tree | e8032e11ccdbbe9644a974d9fee71e070d475433 /Master/texmf-dist/source/latex/bytefield | |
parent | 717309eb078da1ac18ebb31a978fb3f4f4bd168d (diff) |
bytefield (3sep12)
git-svn-id: svn://tug.org/texlive/trunk@27580 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/bytefield')
-rw-r--r-- | Master/texmf-dist/source/latex/bytefield/bytefield.dtx | 56 |
1 files changed, 56 insertions, 0 deletions
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} % |