mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-03-14 17:00:05 +01:00
[SPCA] Update code imports
This commit is contained in:
@@ -69,9 +69,9 @@ The stack is commonly used for recursive functions. A recursive factorial functi
|
||||
Note how \texttt{\%rbx} is saved on the stack, since \texttt{rbx} is callee-saved by convention. \\
|
||||
\texttt{\%eax} is used directly, since it is caller-saved by convention.
|
||||
|
||||
\inputcodewithfilename{gas}{code-examples/01_asm/}{06_factorial.s}
|
||||
\inputcodewithfilename{gas}{}{code-examples/01_asm/06_factorial.s}
|
||||
|
||||
A more complex example, passing addresses as arguments: \\
|
||||
This function swaps 2 array elements (using a \texttt{swap} function) and adds the first value to an accumulator.
|
||||
|
||||
\inputcodewithfilename{gas}{code-examples/01_asm/}{07_swap_and_sum.s}
|
||||
\inputcodewithfilename{gas}{}{code-examples/01_asm/07_swap_and_sum.s}
|
||||
|
||||
Reference in New Issue
Block a user