Mandelbrot set viewer for the ARM Mbed platform

Dependencies:   mbed DmTftLibrary

Mbed Mandelbrot Viewer

Touch-based mandelbrot set viewer for the ARM Mbed platform. Designed with the NXP LPC1768 and the DisplayModule DM-TFT28-116. It should be easy to adapt for any DisplayModule product, especially if it has an I2C touch controller.

On screen options allow the user to switch between 256*(2^n) maxiters up to 4096, and three rendering kernels using floats, integers, and integers in ARMv7 ASM.

Files at this revision

API Documentation at this revision

Comitter:
ofrasier
Date:
Fri Dec 07 01:00:54 2018 +0000
Parent:
2:e8d2bde86ff9
Commit message:
Combined ADD-LSL

Changed in this revision

src/escapetime.s Show annotated file Show diff for this revision Revisions of this file
--- a/src/escapetime.s	Fri Dec 07 00:39:38 2018 +0000
+++ b/src/escapetime.s	Fri Dec 07 01:00:54 2018 +0000
@@ -32,8 +32,7 @@
     SMULL   R11, R12, R4, R5    ; Compute zy = 2*zx*zy + cy
     ASR     R11, #28            ; Perform right shift by 28 places on R11:R12
     BFI     R11, R12, #4, #28
-    LSL     R11, #1             ; Multiply by 2
-    ADD     R5, R11, R1         ; Add cy and store in R5 
+    ADD     R5, R1, R11, LSL #1 ; Add cy to twice R11 and store in R5 
     SUBS    R11, R7, R9         ; Compute zx = zx^2 - zy^2 + cx
     SBC     R12, R8, R10    
     ASR     R11, #28            ; Perform right shift by 28 places on R11:R12