diff options
author | Camil Staps | 2016-09-28 22:51:12 +0200 |
---|---|---|
committer | Camil Staps | 2016-09-28 22:51:12 +0200 |
commit | f95d5d8da10151583dfc42e8d01e5286c88b4b61 (patch) | |
tree | 56f80ba61dcc6c8e6a155d439a63a961d90ecc85 /thesis | |
parent | More on fixing the program counter (diff) |
Typesetting
Diffstat (limited to 'thesis')
-rw-r--r-- | thesis/fix-storing-pc.tex | 2 | ||||
-rw-r--r-- | thesis/thesis.tex | 7 | ||||
-rw-r--r-- | thesis/ual.sty | 4 |
3 files changed, 11 insertions, 2 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. diff --git a/thesis/thesis.tex b/thesis/thesis.tex index 885a1cb..7efeaa7 100644 --- a/thesis/thesis.tex +++ b/thesis/thesis.tex @@ -1,5 +1,12 @@ \documentclass[a4paper,twoside]{article} +\usepackage[T1]{fontenc} +\usepackage{lmodern} +\usepackage[scaled]{beramono} + +\let\oldtexttt\texttt +\def\texttt#1{\oldtexttt{\footnotesize #1}} + \usepackage[british]{babel} \usepackage[babel=true]{csquotes} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} diff --git a/thesis/ual.sty b/thesis/ual.sty index 5f87f98..3318035 100644 --- a/thesis/ual.sty +++ b/thesis/ual.sty @@ -1,5 +1,7 @@ \RequirePackage{minted} -\newmintinline[ual]{ual}{} +\setminted{fontsize=\footnotesize,style=lovelace} + +\newmintinline[ual]{ual}{style=bw} \newsavebox\ualbox |