%% -*- LaTeX -*-
%%
%% Some general definitions for the STAR documentation
%%

\def\star{{\sc star}}
\def\Star{{\sc Star}}

\def\hp{{\sc HP}}
\def\sx{{\sc SX}}

\def\saturn{{\sc saturn}}
\def\Saturn{{\sc Saturn}}

\def\f{.{\sl f}}
\def\ndf{{\sl f}}

\def\sd{{\sl s},{\sl d}}

\def\dest{{\sl dest}}
\def\bit{{\sl bit}}
\def\int{{\sl int}}
\def\const{{\sl const}}
\def\ar{{\sl ar}}
\def\ac{{\sl ac}}
\def\Dn{{\sl Dn}}
\def\Rn{{\sl Rn}}
\def\nib{{\sl nib}}
\def\mask{{\sl mask}}
\def\sclr{\{SC\}}
\def\eqne{\{EQ,NE\}}
\def\arref{{\sl arcond}}
\def\arcond{\{{\tt EQ},{\tt NE},{\tt GT},{\tt LT},{\tt GE},{\tt LE}\}}
\def\znz{\{Z,NZ\}}
\def\setclr{\{SET,CLR\}}

\def\expr#1{$expr_{#1}$}
\def\exprstr#1{$str(expr)_{#1}$}
\def\exprint#1{$int(expr)_{#1}$}
\def\exprreal#1{$real(expr)_{#1}$}
\def\name#1{$name_{#1}$}


% Instruction entry macro. Arguments:
%  #1 - Size, in nybbles, #2 - Mnemonic, #3 - Suffix
%  #4 - Operands, #5 - Constraints

\def\instr#1#2#3#4#5{{\tiny #1}\>#2#3\>#4\>{\it {#5}}\\}


% Pseudo-instruction entry macro. Arguments:
%  #1 - Size, in nybbles, #2 - Symbol, #3 - Mnemonic,
%  #4 - Operands

\def\pseudo#1#2#3#4{{\tiny #1}\>#2\>#3\>#4\\}
