[CD] Fix asm arith instr explanation

This commit is contained in:
janishutz committed 2026-09-30 15:49:09 +02:00
1 parent 6170f4982a
commit f02241119b
2 files changed
+5 -5

No files matched your search

Binary file not shown.
@@ -2,11 +2,11 @@
A list of instructions is also provided on the Moodle page for the course.
\subsubsection{Arithmetic Instructions}
\begin{tables}{lll}{Instruction & Explanation & Example}
\texttt{negq DEST} & 2's complement negation & \verb|negq %rax| \\
\texttt{addq SRC, DEST} & $\text{DEST} \gets \text{DEST} + \text{DEST}$ & \verb|addq %rbx, %rax| \\
\texttt{subq SRC, DEST} & $\text{DEST} \gets \text{DEST} + \text{DEST}$ & \verb|subq $4, %rsp| \\
\texttt{imulq SRC, DEST} & $\text{DEST} \gets \text{DEST} \times \text{DEST}$ & \verb|imulq $4, %rax| \\
\begin{tables}{lll}{Instruction & Explanation & Example}
\texttt{negq DEST} & 2's complement negation & \verb|negq %rax| \\
\texttt{addq SRC, DEST} & $\text{DEST} \gets \text{DEST} + \text{SRC}$ & \verb|addq %rbx, %rax| \\
\texttt{subq SRC, DEST} & $\text{DEST} \gets \text{DEST} - \text{SRC}$ & \verb|subq $4, %rsp| \\
\texttt{imulq SRC, DEST} & $\text{DEST} \gets \text{DEST} \times \text{SRC}$ & \verb|imulq $4, %rax| \\
\end{tables}