1
0
Fork 0
mirror of synced 2025-07-04 20:37:07 +02: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

@ -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}}

File diff suppressed because it is too large Load diff

View file

@ -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