1
0
mirror of synced 2024-06-10 12:59:54 +02:00
avremu/source/avremu.tex
2014-10-09 17:37:31 +02:00

51 lines
891 B
TeX

\documentclass{article}
\usepackage{avremu}
\usepackage{listings}
\usepackage{hyperref}
\usepackage{filecontents}
\usepackage{tcolorbox}
\begin{filecontents*}{hello-world.c}
#include <avr/io.h>
int
main(void)
{
char *str = "Hello World!";
char *p = str;
while (*p) {
UDR = *p++;
}
asm volatile ("break;");
}
\end{filecontents*}
\title{The \texttt{avremu} Package}
\author{Christian Dietrich\\
\url{stettberger@dokucode.de}}
\begin{document}
\maketitle
\begin{tcolorbox}
\lstinputlisting[language=C]{hello-world.c}
\tcblower
\begin{lstlisting}[language=TeX]
\avrloadc{hello-world.c}
\avrrun
UDR='\avrUDR' in \avrinstrcount\ instructions
\end{lstlisting}
\end{tcolorbox}
\begin{tcolorbox}
\avrloadc{hello-world.c}\avrrun
UDR='\avrUDR' in \avrinstrcount\ instructions
\end{tcolorbox}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: