Updated chapter 1 to be more fleshed out.
This commit is contained in:
+3
-3
@@ -144,7 +144,7 @@ The /r represents a byte that specifies a register. /immX is for the immediate d
|
||||
\end{tabularx}
|
||||
\paragraph{Description} Divides two unsigned values, the source (operand one) and the destination (operand two), storing the result in destination. The underflow flag (UF) is set if the result is greater than the source and the zero flag (ZF) is set when the result of subtraction is zero.
|
||||
\paragraph{Flags Affected} UF and ZF.
|
||||
\subsection{Mov}
|
||||
\subsection{Mov}\label{sec:mov}
|
||||
\begin{tabularx}{\textwidth}{ | c | X | c | c | }
|
||||
\hline
|
||||
Opcode & Instruction & Operand One & Operand Two \\
|
||||
@@ -291,7 +291,7 @@ The /r represents a byte that specifies a register. /immX is for the immediate d
|
||||
\end{tabularx}
|
||||
\paragraph{Description} Compares \textit{operand one} to \textit{operand two} by subtracting \textit{operand one} from \textit{operand two}, updating the status register with the results. If \textit{operand one} is larger than the result, and the result is not zero, the overflow flag (OF) is set. If \textit{operand one} is smaller than the result, and the result is not zero, the underflow flag (UF) is set. And if the result of the subtraction is zero the zero flag (ZF) is set.
|
||||
\paragraph{Flags Affected} OF, UF and ZF.
|
||||
\subsection{JMP}
|
||||
\subsection{JMP}\label{sec:jmp}
|
||||
\begin{tabularx}{\textwidth}{ | c | X | c | c | }
|
||||
\hline
|
||||
Opcode & Instruction & Operand One & Operand Two \\
|
||||
@@ -422,7 +422,7 @@ The /r represents a byte that specifies a register. /immX is for the immediate d
|
||||
\end{tabularx}
|
||||
\paragraph{Description} Pops all general purpose registers from the stack, restoring them, in the reverse order of \textit{r8} to \textit{r1}.
|
||||
\paragraph{Flags Affected} None.
|
||||
\subsection{CALL}
|
||||
\subsection{CALL}\label{sec:call}
|
||||
\begin{tabularx}{\textwidth}{ | c | X | c | c | }
|
||||
\hline
|
||||
Opcode & Instruction & Operand One & Operand Two \\
|
||||
|
||||
Reference in New Issue
Block a user