1
0
mirror of synced 2024-11-21 20:44:23 +01:00

mandelbrot-128x128 added to documentation

This commit is contained in:
Christian Dietrich 2014-10-10 12:11:18 +02:00
parent 29cb2b0dff
commit e7e2712435
5 changed files with 16407 additions and 4 deletions

View File

@ -1,7 +1,7 @@
avr-tex: An AVR Emulator written in pure LaTeX 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 LaTeX is known as a typesetting system. But the underlying TeX system
is a powerful macro processor. In fact, TeX is a Turing-complete 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 [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

BIN
imgs/mandelbrot-128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -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 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}. 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} \section{Provided Commands}
\DescribeMacro{\avrloadihex}{\meta{filename}} \DescribeMacro{\avrloadihex}{\meta{filename}}

File diff suppressed because it is too large Load Diff

View File

@ -60,8 +60,8 @@ int main() {
uint8_t hx,hy; uint8_t hx,hy;
#define itermax 100 /* how many iterations to do */ #define itermax 100 /* how many iterations to do */
#define magnify 4.0 /* no magnification */ #define magnify 4.0 /* no magnification */
#define hxres 128 /* horizonal resolution */ #define hxres 250 /* horizonal resolution */
#define hyres 128 /* vertical resolution */ #define hyres 250 /* vertical resolution */
#define ydelta 0 #define ydelta 0
#define xdelta -0.75 #define xdelta -0.75