summaryrefslogtreecommitdiff
path: root/thesis/fix-storing-pc.tex
diff options
context:
space:
mode:
authorCamil Staps2016-09-28 22:51:12 +0200
committerCamil Staps2016-09-28 22:51:12 +0200
commitf95d5d8da10151583dfc42e8d01e5286c88b4b61 (patch)
tree56f80ba61dcc6c8e6a155d439a63a961d90ecc85 /thesis/fix-storing-pc.tex
parentMore on fixing the program counter (diff)
Typesetting
Diffstat (limited to 'thesis/fix-storing-pc.tex')
-rw-r--r--thesis/fix-storing-pc.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/thesis/fix-storing-pc.tex b/thesis/fix-storing-pc.tex
index 4a203b3..fbc5853 100644
--- a/thesis/fix-storing-pc.tex
+++ b/thesis/fix-storing-pc.tex
@@ -61,7 +61,7 @@ This means that when the \ual{add} instruction above is at \ual{0x22},
However, in this case \ual{bl} is located at \ual{0x2a}, and since this is a 32 bits instruction we point to the middle of that instruction.
In hand-written code, we can solve this by adding labels for the addresses we want to store on the stack.
-In generated code, we need to keep track of the current alignment and add either \ual{9} or \ual{11} to the read program counter.
+In generated code, we need to keep track of the current alignment and add either 9 or 11 to the read program counter.
\subsubsection{Other solutions}
Another solution than the one we present here is the use of the link register.