Introduction
From 1987 onwards, German computer magazines published three C64 programs that show the “Apfelmännchen” (Mandelbrot set) not as a flat colour image but as a landscape you can walk through: a lake lies where the iteration does not escape, and land rises in steps all around it. The viewer chooses position, eye height and viewing direction, and the C64 turns this into a perspective picture over several hours.
This analysis examines the three programs – “Fraktal-Landschaft” from Happy Computer 6/87, “Apfelsee” from 64'er Sonderheft 33 and “Fraktsee” from 64'er Sonderheft 57 – at code level. It explains how landscape, perspective, colouring and the impression of light are created, how the programs are structured and how they are related.
The result up front: these are not three separate developments but one program in three guises. Apfelsee and Fraktsee take over the formula, constants and machine code of the Happy listing unchanged; they differ in operation and speed, not in the picture.
Summary
All three programs compute the same picture with the same algorithm and the same graphics routines. Their origin is the BASIC listing “Fraktal-Landschaft” by Frank Göldner and Hartmut Woerrlein from Happy Computer 6/87.
- Fraktsee (64'er Sonderheft 57) is this Happy listing, merely translated with a BASIC compiler and packed twice. Variable names, constants and the 304 bytes of machine code from
$C000are identical. The program contains the line “The Highlight Company 3001 … (c) in 1987 by Markt & Technik”. - Apfelsee (64'er Sonderheft 33, David Mehlhausen) is a hand translation of the same BASIC program into machine language. The graphics routines
$C059–$C129are taken over byte for byte from the Happy listing; the arithmetic still uses the floating-point routines of the BASIC ROM. New are a menu, load/save, a joystick map, screen blanking, a throttled interrupt and the switch for the 4 MHz card. - The formula is not a true Mandelbrot iteration. The real part reads |x| − |y| − cx instead of x² − y² − cx. The “lake” is the set of points that do not escape for 40 steps.
- The lake only survives thanks to a rounding quirk. In the C64’s 5-byte arithmetic, 2 − 40 × 0.05 does not give zero but about +3 × 10⁻⁹. Only step 41 yields Z = −0.05, and only this clearly negative value keeps the smoothing from smearing land into the lake.
- The recomputation confirms the analysis. A Python reconstruction of the formula and drawing logic produces images in the style of the originals. The unpacked map AUFSICHT matches the recomputed top view at 93 %.
Sources
The table shows the material on which the analysis is based: the three magazine articles with their listings and the disk images on which the programs survive. Fraktsee exists as a file, Apfelsee only as a printed hex listing.
| Source | Content |
|---|---|
| Happy Computer 6/87, pp. 19–27 | Article and BASIC listing “Fraktal-Landschaft” (C64, CPC, Atari ST/XL, Amiga) |
| 64'er Sonderheft 33, pp. 18–25 | Article “Apfelsee”, MSE listings APFELSEE, F1 C000, AUFSICHT PACKED |
| 64'er Sonderheft 57, p. 11 | Article “Fraktsee”, “Fahrplan” table of locations, Fraktlader |
| fraktsee.prg, sb010057.d64, sb066694.d64 | Fraktsee, three byte-identical copies |
| sb066246.d64 (Crackpot Games) | “APFELSEE – HAPPY” (Woerrlein variant with clouds), MSE V1.0 |
Family Tree of the Programs
The Happy listing is the common source. Apfelsee and Fraktsee both take over its machine code unchanged; only the BASIC part was translated, by hand (Apfelsee) or by a compiler (Fraktsee).
Program Flow
All three programs go through the same stages; the differences lie in start-up, choice of position and operation, shown on the right in the grey boxes.
The only loop back in the common flow is the height check: if the eye is below the terrain, input starts again. Only Apfelsee returns to the menu after the picture.
The Common Algorithm
The picture is created much like ray tracing: every pixel is traced back to a point on the number plane, the height is determined there and drawn as a vertical stick. All three programs perform exactly these steps; the following formulas come from Happy lines 80–272 and can be found operation by operation in Apfelsee ($C1B0–$C6DA).
The expensive step is the iteration: up to 41 passes with one multiplication and five additions each per pixel.
1. Input and Height of the Position
The user enters the position (X1, Y1), eye height H and viewing angle KU. First the terrain height at the position is computed; if H is below it, the input is rejected.
2. Loops and Projection
The outer loop runs V = 1, 3, 5 … 599 (300 rows), the inner loop HO = −80 … 80 (161 columns). From these follow the distance E, the lateral offset HC and the point (XC, YC) on the plane:
E = 10H/V is exactly the distance at which a line of sight through screen row 98 + V hits the plane Z = 0. Distant points therefore come first, near ones last.
3. The “Fractal Iteration”
The start values are XA = YA = 0 and Z = 2. Per step:
The iteration stops when |x| + |y| > 400 or Z becomes negative. Z = 2 − 0.05·n is therefore the height: points that escape quickly lie high; points that never escape form the lake.
The formula is not a Mandelbrot iteration. The true Mandelbrot set would have x² − y² in the real part; here there are absolute values. The minus sign before XC also mirrors the figure. All ports in the Happy issue (CPC, Atari ST, Atari XL, Amiga) use the same variant, as does Apfelsee.
4. Smoothing, Lake and Screen Height
ZA is the value of the neighbouring pixel to the left. If the smoothed Z is negative, the point becomes lake (colour 0, Z = −0.0001). C is the height on screen relative to horizon row 98.
The rounding quirk. With exact arithmetic, Z would be exactly 0 after 40 steps and the raw lake value only a tiny minus. The smoothing would then have kept every lake point to the right of land positive for about 100 pixels, and lakes would be smeared to the right. The C64 format, however, rounds 0.05 slightly up and rounds every subtraction; by my calculation about +3 × 10⁻⁹ remains after 40 steps. Only step 41 stops, with Z = −0.05, and that is enough to tip below zero after a few pixels. The sharp shores of the original pictures therefore depend on this effect. Apfelsee behaves the same, because it uses the same ROM routines and the same constant 0.05.
5. Stick Technique
Up to four graphics commands are executed per pixel:
- Double column: column 81 + HO white and column 80 + HO light blue, each from row 98 − C to the bottom edge.
- If C < 0, a pixel in surface colour at row 99 − C.
- If C > CA + 0.2 (a steep step compared with the predecessor), a blue shadow line from 99 − C to 99 − CA.
- The surface pixel at row 98 − C in surface colour (green for land, blue for lake).
Because the rows run from far to near, each new row paints over most of the sticks before it. Only the top edge remains visible – that is the surface. The 600 instead of 200 rows are the “dead angle” from the Apfelsee article: high points close in front of the viewer still cover parts of the picture drawn earlier.
Drawing Only
Drawing knows only pixels and vertical lines. Every pixel costs an address calculation with up to 24 additions of 320 (one per character row), because the 6502 cannot multiply; a full double column consists of up to 200 such pixels.
Graphics, Colours and Memory
All three programs draw in multicolour bitmap mode (160 × 200 pixels) with the bitmap at $2000 and the same four colours. The graphics routines come from Happy and are called via SYS with parameters (Happy, Fraktsee) or called directly (Apfelsee).
| Bit pattern | Colour source | C64 colour | Meaning in the picture |
|---|---|---|---|
| %00 | $D021 = 6 |
blue | sky, lake, shadow line |
| %01 | screen RAM, upper nibble 3 | light blue | left stick column |
| %10 | screen RAM, lower nibble 1 | white | right stick column (light from the right) |
| %11 | colour RAM = 5 | green | land surface |
| Address | Happy call | Function |
|---|---|---|
$C000 (49152) |
SYS XQ |
graphics on, set colours, clear bitmap |
$C059 (49241) |
SYS XW,x,y,f |
set one multicolour pixel |
$C0D8 (49368) |
SYS 49368,x,y1,y2,f |
vertical line from y1 down to y2 |
$C0E9 (49385) |
SYS 49385,x,y1,y2,f |
stick: column x in colour f, column x−1 in colour f−1 down to y2+1 |
The line routine counts Y up with INC until Y = y2; with y1 > y2 it wraps past 255. The BASIC logic only calls it with y1 < y2. The stick of column HO = 80 lands at x = 161; the address calculation puts this pixel into the next character row on the far left. That is where the thin light stroke at the left edge during picture build-up comes from.
Memory map. Happy and Fraktsee occupy $0801 upwards with the (compiled) BASIC program, $C000–$C12F with the graphics routines, $0400 and $D800 with the colours and $2000–$3FFF with the bitmap. Apfelsee moves its main program to $6000–$67E6 at start and loads the computing routines F1 to $C000–$C6DF; the variables are 5-byte floating-point numbers at $67EB–$685E and $C6DF–$C7B5. Saved pictures contain only the bitmap $2000–$3FFF; each program sets the colours anew when displaying. That is why the Fraktsee article needs the “Fraktlader”, which fills colour memory with 81 ($51) and 85 ($55) – a different colour scheme from the original ($31 and 5).
The area from $6000 is free in Happy and Fraktsee; Apfelsee uses it so that BASIC RAM and the bitmap remain untouched. The crosshair sprite additionally lives at $0340.
Colouring and Pseudo-Light
The programs compute no lighting. The impression of light and shadow arises solely from the order in which the sticks are painted over each other; the article only says “the light always comes from the right”.
How the Light Is Created
Every pixel draws a double column: white on the right (column 81 + HO), light blue on the left (column 80 + HO). The next pixel to the right paints its light blue column exactly over the white column of its predecessor, from its own top edge downwards.
- Terrain falls to the right: the top edge of the right neighbour is lower. A piece of the white column remains between the two top edges. This slope looks lit.
- Terrain rises to the right: the neighbour’s top edge is higher, and its light blue column covers the white completely. The slope stays light blue and looks shaded.
- Steep step up to the right (C rises by more than 0.2 screen rows): in addition, a blue line runs from its own top edge to the top edge of the left neighbour. Steep shadow sides thus get dark stripes.
- Surface: one pixel in surface colour at the top edge, green for land, blue for lake. Because each row V sets only one such pixel per column, lines of equal distance appear that look like contour lines.
Example 1: The Three Drawing Steps
Example 2: Light and Shadow on the Hill
Example 3: Lake Shore in the Fractal Landscape
Colour Rules at a Glance
| Colour | Created by | Effect |
|---|---|---|
| white | right stick column, not painted over | lit slope |
| light blue | left stick column, covers the predecessor’s white | shadow side, slope surface |
| blue (line) | shadow line when C > CA + 0.2 | deep shadow on steep steps |
| green | surface pixel when Z ≥ 0 | land, contour lines |
| blue (area) | surface pixel when Z < 0, and background | lake, sky |
Program 1: Fraktal-Landschaft (Happy Computer 6/87)
The original is a BASIC program of 17 lines plus 16 DATA lines with 304 bytes of machine code. It is by Frank Göldner (text) and Hartmut Woerrlein (C64 version); the issue also prints versions for the CPC, Atari ST, Atari XL/XE and Amiga.
| Lines | Task |
|---|---|
| 1 | poke machine code from DATA to $C000 |
| 20–70 | border black, input X and Y, height at the position (GOSUB 270), input eye height and viewing direction |
| 80 | SYS XQ (graphics on), loop V = 1 to 600 step 2, E = H/V·10, loop HO = −80 to 80 |
| 130–160 | compute HC, XC, YC, iteration, smoothing, lake test |
| 250 | compute C and clamp to ±98 |
| 261–265 | the four graphics calls of the stick technique |
| 266 | endless loop: the finished picture stays on screen |
| 270–272 | iteration as a subroutine |
| 32000–32015 | DATA: graphics routines |
Operation. No menus, no saving, no way to stop except RUN/STOP. The input is rejected if the eye height is below the terrain. The article recommends 0.2 to 1 unit above the position, because the plateau rises only two units above the lake.
Variant on the Crackpot disk. “APFELSEE – HAPPY” (tagged “Neue Version für Happy Computer von WO”) adds a menu (view graphic, save graphic, new graphic), a cloudy sky made of random ellipses and further machine routines at 49457 and 49478. These routines are missing on the disk, so the program does not run there as it stands. Pictures 6 and 7 in the Happy article evidently come from this version.
Speed. The article only says “sometimes several hours”. The BASIC interpreter has to parse every line anew and read four parameters from the program text for every SYS; for 48,300 pixels with up to 41 iterations each, this is the slowest of the three versions.
Program 2: Apfelsee (64'er Sonderheft 33)
Apfelsee by David Mehlhausen converts the Happy program step by step into machine language and builds a user interface around it. The article explicitly names Happy 6/87 as its model and calls Apfelsee “the currently fastest version”. The title in the program reads “APFELSEE – von David Mehlhausen – nach Gaston Julia und Benoit Mandelbrot”.
Structure
| File | Address | Content |
|---|---|---|
| APFELSEE | $0801–$1012, runs from $6000 |
SYS 2061, moves itself to $6000 with ROM routine $A3BF; menu, load/save, map, input, height of the position |
| F1 C000 | $C000–$C6DF |
Happy graphics routines plus main loop and iteration |
| AUFSICHT PACKED | $0801–$1081 |
self-unpacking map; saves “AUFSICHT” (bitmap $2000–$3FFF) when run |
What Mehlhausen Took Over
- Graphics routines:
$C059–$C129are byte-identical to Happy. Only initialisation and clearing are swapped, so that “view picture” does not clear the bitmap. - Constants: 0.0187, 0.3, 0.7, −0.0001, 0.2 and 0.05 are stored as 5-byte numbers in F1 (
$C752–$C7A1), loop limits 600, 80, 98, 99, 81, 2 and 400. - Arithmetic: every BASIC line becomes a chain of ROM calls:
$BBA2(load number),$B867/$B850(add/subtract),$BA28(multiply),$BB0F(divide),$BBD4(store),$BC5B(compare). The absolute value is produced withLSR $66directly in the sign byte of the floating-point accumulator.
What Is New
- Menu: 1 View, 2 Load, 3 Save, 4 New picture.
- Joystick map: “New picture” loads AUFSICHT and shows a crosshair sprite (sprite 2, data from
$0340). A joystick in port 2 moves it pixel by pixel; each step adds 1 to a counter. Displayed are X = counter/200 and Y = counter/100. The fire button shows coordinates and terrain height. - Height of the position with Z from 200 in steps of 5 instead of from 2 in steps of 0.05. These numbers are exact in the C64 format; the result is divided by 100.
- Viewing angle as a compass: 0° points to the top edge of the map, 90° to the right. Internally Apfelsee swaps X and Y as well as sine and cosine. An Apfelsee angle w corresponds to the Happy angle 90° − w; the picture itself is computed identically.
- Speed measures: the timer A high value in
$DC05is set to$FFand the IRQ vector to$EA34. The interrupt then fires only about every 65 ms instead of every 17 ms and skips the clock. SHIFT LOCK blanks the screen via$D011; the article mentions a 6 % gain. - 4 MHz card: before computing, Apfelsee sets bit 7 of
$01; in the joystick loop it clears the bit. On a normal C64 the bit has no effect; presumably it switches the Turbo Process card by Roßmöller between 1 and 4 MHz. - Abort with the ← key (keyboard matrix code
$39in$CB), after which the picture can be saved.
Lake Top View and Choice of Position
The AUFSICHT map comes as a finished packed picture; the program that created it is not included. On the left is the computation that reproduces the map at 93 %, on the right the code with which Apfelsee lets you choose the position on it.
One map pixel corresponds to 0.01 units in both directions, because the joystick counter counts horizontally in hires pixels (two per multicolour pixel, divided by 200) and vertically in rows (divided by 100). The map thus shows 1.6 × 2.0 units, horizontally from about −0.8 to +0.8 and vertically from about −0.55 to +1.45; the channel starts at the top centre.
Speed
The article gives about two hours per picture, with the 4 MHz card barely more than half an hour. The gain over Happy does not come from the arithmetic – it runs through the same ROM routines – but from dropping the interpreter, the parameter parsing for SYS and part of the interrupts. A typical picture needs about 1.8 million iteration steps by my calculation; two hours thus correspond to about 4 ms per step including projection and drawing.
Program 3: Fraktsee (64'er Sonderheft 57)
Fraktsee is the Happy listing in compiled form, wrapped in two packer layers. The article names Frank Michlik as the author; his name does not appear in the program itself.
Layers of the File
- fraktsee.prg (4,891 bytes,
SYS 2062): packer 1 moves the data to the end of memory, unpacks it to$0801and returns to READY. That is why the article asks for a second RUN. - Layer 2 (
SYS 2080, tag “THC 3001”): a second packer that puts the code at$0801–$1B7Cand the graphics routines at$C000and starts the program. - Program (
SYS 2076): compiled BASIC from$081Cwith jump table, runtime library and title screen.
Evidence for the Origin
| Feature | Finding in the unpacked Fraktsee |
|---|---|
Machine code $C000–$C12F |
304 bytes, byte-identical to Happy DATA 32000–32015, including the six unused trailing bytes |
| Variable table | X1, Y1, XQ, XW, Z, XC, YC, XA, YA, H, KU, SI, CO, V, E, HO, FA, HC, ZA, C, CA, X2, Y2, XN – exactly the Happy names |
| Constants | 0.0187, 0.7, 0.3, 0.0001, 0.2, 0.05 as 5-byte numbers; none of the cloud constants |
| Source text remnants | “,81+HO,98-C,199,2:” and “,80+HO,99-C,99-CA,0”: the SYS parameters from Happy lines 261 and 264, which the compiler keeps as text for parameter parsing |
| Title screen | “The Highlight Company 3001 is proud to present: Fractal Calculate (c) in 1987 by Markt & Technik” |
| Input texts | “Enter Coordinates”, “X-Axsle”, “Y-Axsle”, “The height is … here”, “Your height”, “Visual angle” |
Markt & Technik was the publisher of Happy Computer and 64'er. The article texts are also closely related: “In Richtung Nord (0 Grad) liegt die positive X-Achse …” (“North (0 degrees) is the positive X axis”) appears almost identically in both issues.
Operation and Limits
- Input in English, otherwise like Happy: X, Y, suggested height, own height, viewing angle.
- No saving, no abort except RUN/STOP + RESTORE; the bitmap remains in
$2000–$3FFFand can be saved with “Super-Saver”. - The printed “Fraktlader” sets the colours 81 and 85 instead of 49 and 5. A reloaded picture therefore shows green instead of light blue stick sides.
Speed
Compiled BASIC saves the parsing of program lines but still calls the same ROM floating-point routines and, for every SYS, the parameter parser. It therefore lies between Happy and Apfelsee. The article nevertheless speaks of “several hours”. The “Fahrplan” table in the issue gives 15 locations.
Comparison of the Three Programs
The programs differ in execution, operation and speed, not in the picture: the same input gives the same landscape.
| Feature | Fraktal-Landschaft | Apfelsee | Fraktsee |
|---|---|---|---|
| Origin | |||
| Published in | Happy Computer 6/87 | 64'er Sonderheft 33 | 64'er Sonderheft 57 |
| Author according to the issue | Frank Göldner, Hartmut Woerrlein | David Mehlhausen | Frank Michlik |
| Publication form | BASIC listing + 16 DATA lines | 3 MSE hex listings | program on the issue disk |
| Language | BASIC V2 + 304 bytes of machine code | pure 6502 machine language | compiled BASIC + 304 bytes of machine code |
| Size | 17 lines + 16 DATA lines | 2,066 + 1,760 bytes, map 2,177 bytes packed | 4,891 bytes packed, 4,961 bytes unpacked |
| Start | RUN | LOAD, RUN; moves itself to $6000 |
LOAD, RUN, RUN again (two unpacking stages) |
| Operation | |||
| Language of the dialogues | German | German | English, with title screen |
| Menu | no | View, Load, Save, New picture | no |
| Choice of position | number input X, Y | joystick on the map, then height and angle | number input X, Y |
| Viewing angle 0° | along the 2nd coordinate | top edge of the map (compass) | as Happy |
| Abort | RUN/STOP | ← key | RUN/STOP + RESTORE |
| Save / load picture | no | yes, bitmap $2000–$3FFF |
only externally (Super-Saver, Fraktlader) |
| Computation | |||
| Iteration | |x| − |y| − XC; 2xy − YC | identical | identical |
| Height and steps | Z = 2 − 0.05·n, at most 41 steps | identical | identical |
| Height of the position | Z from 2 in steps of 0.05 | Z from 200 in steps of 5, then ÷ 100 | as Happy |
| Smoothing | 0.7 · neighbour + 0.3 · value | identical | identical |
| Raster | 300 rows × 161 columns | identical | identical |
| Floating point | BASIC interpreter with ROM routines | ROM routines called directly | ROM routines via compiler runtime |
| Graphics | |||
| Graphics routines | original $C000–$C12F |
$C059–$C129 byte-identical, init/clear swapped |
byte-identical |
| Call | SYS with parameters in the text |
JSR, parameters in zero page |
SYS with parameters in the text |
| Colours | blue, light blue, white, green | identical | identical |
| Speed | |||
| Interrupt | normal (60 Hz) | throttled to about 15 Hz, without clock | normal |
| Screen off | no | SHIFT LOCK, about 6 % faster | no |
| Turbo card | no | 4 MHz card Turbo Process | no |
| Time per picture according to the issue | “sometimes several hours” | about 2 h, with 4 MHz about 30 min | “several hours” |
The Three Programs’ Pictures Compared
All three programs deliver the same picture pixel for pixel.
- Apfelsee ran with its original machine code from the magazine (F1 C000, reconstructed from the listing) in a 6502 emulator. Only the floating-point routines of the BASIC ROM are emulated. For this picture the emulator executed 540 million machine instructions and 54.6 million ROM calls.
- Fraktal-Landschaft and Fraktsee need the BASIC interpreter: Happy runs entirely inside it, and Fraktsee passes the parameters of every
SYSas BASIC text to the ROM’s formula evaluator. Without a C64 ROM they cannot be executed. Their pictures come from the Python reconstruction of the Happy listing; Fraktsee contains exactly this listing in compiled form.
The comparison shows 0 differing pixels out of 32,000. The different angle in Apfelsee exactly compensates for the program internally swapping X and Y as well as sine and cosine.
Picture Build-up
The Map AUFSICHT
The Happy article shows the same top view as a schematic drawing with the positions of its sample pictures. It is rebuilt here; the shoreline is computed with the lake formula and smoothed, the positions are transferred from the original.
The original is not to scale: there the lake body is drawn flatter and wider. Its Y axis corresponds to the first coordinate of the iteration, i.e. the vertical direction of the Apfelsee map; the channel runs upwards in both representations.
From Height Field to Picture
Drawing uses the painter’s algorithm from back to front. The variable V runs in steps of two from 1 to 600 and stands for the screen row below the horizon; from it follows the distance E = 10·H/V. For each of the 161 columns, HC = E·HO·0.0187 gives the lateral offset, which corresponds to a field of view of about 112°. The screen height of a point is C = (Z − H)·V/H.
Every column is filled from this height down to the bottom edge of the screen, and nearer rows paint over more distant ones. Everything behind a mountain thus disappears without the program having to compute visibility.
The height of every column is taken 70 % from the left neighbouring column; this produces the typical slanted stripes. That V runs up to 600 even though the screen ends much earlier is explained by the Apfelsee article as a dead angle: someone looking straight ahead still needs to know how high the ground is in front of their own feet.
Colours and Pseudo-Shadows
In multicolour mode each tile of 4 × 8 pixels may show only four colours. Fraktsee sets them the same for the whole screen and gives each one a task. Green is the surface: in each row the program colours only the top one or two pixels of a column green. On flat terrain the rows are at most two pixels apart, so the green edges join into a closed meadow. When the terrain becomes steep, the rows move apart and cyan, the fill colour of the columns, appears in between; it looks like rock on a slope. Blue is the background colour and has to serve three purposes: as sky, as the water of the lake and as shadow. Because sky and lake have the same colour, the water looks as if it reflected the sky.
There is no real lighting calculation with surface inclination or cast shadows. The impression of a light source on the right arises solely from the drawing order and the comparison with neighbouring columns. The routine $C0E9 paints every column in cyan and next to it, one column further right, a white stripe. The next column paints over this stripe again with cyan from its own top edge. If it is lower, a piece of white remains above: slopes falling to the right shine as if lit by the sun. Conversely, the program draws a blue line from the new to the old top edge when the terrain rises by more than 0.2 (measured in screen rows) compared with the left neighbouring column. These slopes face away from the light source and appear dark. This is a pseudo-shadow: it only colours the averted slopes themselves and never falls on the terrain behind. Together with the slanted stripes of the smoothing, this is enough to turn four colours into a three-dimensional landscape.
Sticks Up Close
Computing Effort
| View (X/Y/height/angle) | Iteration steps | per pixel |
|---|---|---|
| 0/0/0.5/270 | 1,941,292 | 40.2 |
| 0/0/3/0 | 1,822,616 | 37.7 |
| 0/0/5/90 | 1,762,450 | 36.5 |
| −1/−1/4/90 | 411,548 | 8.5 |
Every picture has 300 × 161 = 48,300 pixels. Views showing a lot of lake are almost five times as expensive as views over land, because lake points always run through all 41 steps.
Sample Views
Quirks and Corrections
Four flaws of the original can be corrected in the reconstruction. The smoothing is not reset at the end of a row, so the right edge of the picture affects the left edge of the next row. The last column draws beyond the right edge and lands eight pixels lower on the left. And because the screen height is clamped to ±98, the bottom rows never get their surface colour and stay light blue. If you stand only just above the terrain, the computation also ends after 600 rows before the near ground reaches the bottom edge of the screen; light blue rows and stripes remain there. The corrected reconstruction continues the ground colour of the last row down to the edge.
Uncertainties and Open Points
The core statements are backed by byte comparisons and recomputation; some details rest on assumptions.
- Rounding effect. The value +3 × 10⁻⁹ after 40 steps was computed with a model of the 32-bit mantissa and round-half-up. The ROM routine rounds via an extra byte; the sign of the remainder could turn out differently in the original. The fact that only this effect produces the sharp shores of the original pictures speaks in its favour.
- Compiler. Which BASIC compiler translated Fraktsee cannot be determined with certainty from the code.