Commit e7e27124 authored by Christian Dietrich's avatar Christian Dietrich

mandelbrot-128x128 added to documentation

parent 29cb2b0d
avr-tex: An AVR Emulator written in pure LaTeX
======================================================
![A Mandelbrot Set. The image took 40 Minute so be calculated](imgs/mandelbrot-20x20.png)[5]
![A Mandelbrot Set. The image took 6 hours to be calculated](imgs/mandelbrot-128x128.png)[5]
LaTeX is known as a typesetting system. But the underlying TeX system
is a powerful macro processor. In fact, TeX is a Turing-complete
......@@ -69,4 +69,4 @@ than the actual hardware with the highest supported clock rate.
[4] http://en.wikipedia.org/wiki/Atmel_AVR
[5] A Mandelbrot Set. The image took 40 Minute to be calculated
[5] A Mandelbrot Set. The image took 6 hours to be calculated
......@@ -63,6 +63,23 @@ machine. Never. Look out for the halting problem.
This package does contain an \emph{CPU emulator} for the 8-bit microcontroller platform Atmel AVR, more
precisely it implements the instruction-set architecture of the \texttt{ATmega8}.
\begin{tcolorbox}
\begin{lstlisting}[language=TeX]
\avrloadc{mandelbrot.c}
\avrrun
\avrdrawppm{mandelbrot.ppm}
\immediate\write18{convert mandelbrot.ppm mandelbrot.png}
\includegraphics[width=\linewidth]{mandelbrot.png}
\end{lstlisting}
\tcblower
This picture (128x128) took 6 hours to render. The source code can be found in the test-suite
directory under mandelbrot.c.\\
\includegraphics[width=\linewidth]{../imgs/mandelbrot-128x128}
\end{tcolorbox}
\section{Provided Commands}
\DescribeMacro{\avrloadihex}{\meta{filename}}
......
This diff is collapsed.
......@@ -60,8 +60,8 @@ int main() {
uint8_t hx,hy;
#define itermax 100 /* how many iterations to do */
#define magnify 4.0 /* no magnification */
#define hxres 128 /* horizonal resolution */
#define hyres 128 /* vertical resolution */
#define hxres 250 /* horizonal resolution */
#define hyres 250 /* vertical resolution */
#define ydelta 0
#define xdelta -0.75
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment