mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-10-09 05:46:20 +02:00
[SPCA] more assembly
This commit is contained in:
1 parent
59f4151a3e
commit
35c06e4edf
6 files changed
+37
-2
No files matched your search
@@ -1,10 +1,12 @@
|
||||
\subsection{Operations}
|
||||
Assembly operations include performing arithmetic or logic functions on registers or memory data,
|
||||
transferring data between memory and registers and transferring control (conditional or unconditional jumps)
|
||||
transferring data between memory and registers and transferring control (conditional or unconditional jumps).\\
|
||||
Note that \verb|move| instructions \textit{cannot} move data directly from memory to memory.
|
||||
|
||||
Most of the memory-related instructions in \texttt{x86} assembly have the format
|
||||
\mint{asm}|movq dest, src|
|
||||
whereas arithmetic / logic operations have the format inversed (below \texttt{X} is to be replced with size postfix).
|
||||
|
||||
Arithmetic / logic operations have the format inversed (below \texttt{X} is to be replced with size postfix).
|
||||
\begin{tables}{lll}{Mnemonic & Format & Computation}
|
||||
\texttt{addl} & \texttt{Src, Dest} & \texttt{Dest} $\gets$ \texttt{Dest + Src} \\
|
||||
\texttt{subX} & \texttt{Src, Dest} & \texttt{Dest} $\gets$ \texttt{Dest - Src} \\
|
||||
|
||||
Reference in new issue
Block a user