# HG changeset patch # User John Tsiombikas # Date 1392662019 -7200 # Node ID 3ac0c33742cf80f340662ca6731581b30f8ba795 # Parent 8e7f17958dbbd7630a5e692bd6dc68b086014b0c changed to 8bit arithmetic for the outer loop diff -r 8e7f17958dbb -r 3ac0c33742cf mbrot.c --- a/mbrot.c Mon Feb 17 18:54:17 2014 +0200 +++ b/mbrot.c Mon Feb 17 20:33:39 2014 +0200 @@ -6,7 +6,7 @@ int main() { - unsigned int i, j, k, start; + unsigned char i, j, k, start; /* turn the border black */ #asm @@ -19,10 +19,10 @@ start = 0; for(i=0; i<192; i++) { - unsigned int banky = i & 0x3f; - unsigned int cell = banky >> 3; - unsigned int cline = banky & 0x7; - unsigned int y = (cline << 3) + cell + start; + unsigned char banky = i & 0x3f; + unsigned char cell = banky >> 3; + unsigned char cline = banky & 0x7; + unsigned char y = (cline << 3) + cell + start; /*unsigned char *ptr = FB_ADDR | ((i & 0xc0) << 5) | ((i & 0x38) << 2) | ((i & 7) << 8);*/