mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-10-09 05:46:20 +02:00
[CD] Fix asm arith instr explanation
This commit is contained in:
1 parent
6170f4982a
commit
f02241119b
2 files changed
+3
-3
No files matched your search
Binary file not shown.
@@ -4,9 +4,9 @@ A list of instructions is also provided on the Moodle page for the course.
|
|||||||
\subsubsection{Arithmetic Instructions}
|
\subsubsection{Arithmetic Instructions}
|
||||||
\begin{tables}{lll}{Instruction & Explanation & Example}
|
\begin{tables}{lll}{Instruction & Explanation & Example}
|
||||||
\texttt{negq DEST} & 2's complement negation & \verb|negq %rax| \\
|
\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{addq SRC, DEST} & $\text{DEST} \gets \text{DEST} + \text{SRC}$ & \verb|addq %rbx, %rax| \\
|
||||||
\texttt{subq SRC, DEST} & $\text{DEST} \gets \text{DEST} + \text{DEST}$ & \verb|subq $4, %rsp| \\
|
\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{DEST}$ & \verb|imulq $4, %rax| \\
|
\texttt{imulq SRC, DEST} & $\text{DEST} \gets \text{DEST} \times \text{SRC}$ & \verb|imulq $4, %rax| \\
|
||||||
\end{tables}
|
\end{tables}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user