3a_asm: FEATURE/FIX: proper line numbers on parsing error
[calu.git] / 2_isa / flags.tex
index 52a3bc0817cbbe86c57b387c07c46b7d7d334d36..b3fd5a469e60a366e445b70a1180a7341d5dce43 100644 (file)
@@ -1,13 +1,14 @@
-\begin{table}
-       \centering
-       \begin{longtable}{|c|c|c|} \hline
-               flag & function & default value \\ \hline
-               C    & carry    & 0 (not set)   \\ \hline
-               SU   & Status register update & 1 (set) \\ \hline
-               H/L  & use high or low 16-bits & L (not set) \\ \hline
-               F    & fill unused 16-bits with value of F & 0 (not set)\footnotemark[1]\\ \hline
-       \end{longtable}
-       \footnotetext[1]{this means that andxf must be used if the not specified 16-bit should be preserve}
+In table~\ref{tab:flags} the flags that can suffix instructions are described. If and which flags are available depends on the instruction.
+
+\begin{longtable}{|c|c|c|}\hline
+       \textbf{flag} & \textbf{function} & \textbf{default value} \\ \hline
+       C    & carry    & 0 (not set)   \\ \hline
+       D    & Status register update disable & 0 (not set) \\ \hline
+       H/L  & use high or low 16-bits & L (not set) \\ \hline
+       F    & fill unused 16-bits with value of F & 0 (not set)\footnote{this means that andxf must be used, if the not specified 16-bit, should be preserve} \\ \hline
+       S    & sign extension & 0 (not set) \\ \hline
+       +/-  & branch taken or not taken & + (set) \\ \hline
+       A    & if set the shift operation will be arithmetic instead of logic & 0 (logic) \\ \hline
        \caption{ISA flag overview}
-%\label{tab:<+label+>}
-\end{table}
+       \label{tab:flags}
+\end{longtable}