|
Lines 1064-1073
Link Here
|
| 1064 |
% ``|0-7,15-23|''. Ranges must be specified in increasing order; use the |
1064 |
% ``|0-7,15-23|''. Ranges must be specified in increasing order; use the |
| 1065 |
% optional argument to |\bitheader| to reverse the labels' direction. |
1065 |
% optional argument to |\bitheader| to reverse the labels' direction. |
| 1066 |
% \begin{macrocode} |
1066 |
% \begin{macrocode} |
|
|
1067 |
\newdimen\heightnine |
| 1068 |
\setbox0=\hbox{\tiny 9} |
| 1069 |
\heightnine=\ht0 |
| 1067 |
\DeclareRobustCommand{\bitheader}[2][l]{% |
1070 |
\DeclareRobustCommand{\bitheader}[2][l]{% |
| 1068 |
\parse@bitbox@arg{lrtb}% |
1071 |
\parse@bitbox@arg{lrtb}% |
| 1069 |
\setlength{\units@wide}{\bitwidth * \value{bits@wide}}% |
1072 |
\setlength{\units@wide}{\bitwidth * \value{bits@wide}}% |
| 1070 |
\setlength{\units@tall}{\heightof{\tiny 9}}% |
1073 |
\setlength{\units@tall}{\heightnine}% |
| 1071 |
\setlength{\units@high}{\units@tall * -1}% |
1074 |
\setlength{\units@high}{\units@tall * -1}% |
| 1072 |
\def\bit@endianness{#1}% |
1075 |
\def\bit@endianness{#1}% |
| 1073 |
\begin{picture}(\strip@pt\units@wide,\strip@pt\units@tall)% |
1076 |
\begin{picture}(\strip@pt\units@wide,\strip@pt\units@tall)% |
|
Lines 1305-1314
Link Here
|
| 1305 |
\settowidth{\label@box@width}{\usebox{\word@label@box}}% |
1308 |
\settowidth{\label@box@width}{\usebox{\word@label@box}}% |
| 1306 |
\setlength{\label@box@height}{\wordlabelr@end-\wordlabelr@start}% |
1309 |
\setlength{\label@box@height}{\wordlabelr@end-\wordlabelr@start}% |
| 1307 |
\store@rcurly{\curly@box}{\label@box@height}% |
1310 |
\store@rcurly{\curly@box}{\label@box@height}% |
|
|
1311 |
\settowidth{\curly@box@width}{\usebox{\curly@box}}% |
| 1308 |
\bf@newdimen\total@box@width% |
1312 |
\bf@newdimen\total@box@width% |
| 1309 |
\setlength{\total@box@width}{% |
1313 |
\setlength{\total@box@width}{% |
| 1310 |
\curlyspace + |
1314 |
\curlyspace + |
| 1311 |
\widthof{\usebox{\curly@box}} + |
1315 |
\curly@box@width + |
| 1312 |
\labelspace + |
1316 |
\labelspace + |
| 1313 |
\label@box@width}% |
1317 |
\label@box@width}% |
| 1314 |
\begin{picture}(\strip@pt\total@box@width,0) |
1318 |
\begin{picture}(\strip@pt\total@box@width,0) |
|
Lines 1414-1422
Link Here
|
| 1414 |
\begin{tabular}[b]{@{}l@{}}\wordlabell@text\end{tabular}}% |
1418 |
\begin{tabular}[b]{@{}l@{}}\wordlabell@text\end{tabular}}% |
| 1415 |
\settowidth{\label@box@width}{\usebox{\word@label@box}}% |
1419 |
\settowidth{\label@box@width}{\usebox{\word@label@box}}% |
| 1416 |
\store@lcurly{\curly@box}{5cm}% |
1420 |
\store@lcurly{\curly@box}{5cm}% |
|
|
1421 |
\settowidth{\curly@box@width}{\usebox{\curly@box}}% |
| 1417 |
\setlength{\total@lbox@width}{% |
1422 |
\setlength{\total@lbox@width}{% |
| 1418 |
\curlyspace + |
1423 |
\curlyspace + |
| 1419 |
\widthof{\usebox{\curly@box}} + |
1424 |
\curly@box@width + |
| 1420 |
\labelspace + |
1425 |
\labelspace + |
| 1421 |
\label@box@width}% |
1426 |
\label@box@width}% |
| 1422 |
\global\total@lbox@width=\total@lbox@width |
1427 |
\global\total@lbox@width=\total@lbox@width |
|
Lines 1469-1480
Link Here
|
| 1469 |
% \begin{macro}{\label@box@width} |
1474 |
% \begin{macro}{\label@box@width} |
| 1470 |
% \begin{macro}{\label@box@height} |
1475 |
% \begin{macro}{\label@box@height} |
| 1471 |
% \begin{macro}{\word@label@box} |
1476 |
% \begin{macro}{\word@label@box} |
|
|
1477 |
% \begin{macro}{\curly@box@width} |
| 1472 |
% Scratch storage for the width, height, and contents of the word label |
1478 |
% Scratch storage for the width, height, and contents of the word label |
| 1473 |
% we're about to output. |
1479 |
% we're about to output. |
| 1474 |
% \begin{macrocode} |
1480 |
% \begin{macrocode} |
| 1475 |
\newlength{\label@box@width} |
1481 |
\newlength{\label@box@width} |
| 1476 |
\newlength{\label@box@height} |
1482 |
\newlength{\label@box@height} |
| 1477 |
\newsavebox{\word@label@box} |
1483 |
\newsavebox{\word@label@box} |
|
|
1484 |
\newlength{\curly@box@width} |
| 1478 |
% \end{macrocode} |
1485 |
% \end{macrocode} |
| 1479 |
% \end{macro} |
1486 |
% \end{macro} |
| 1480 |
% \end{macro} |
1487 |
% \end{macro} |