]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_vlpld.h
added a simpler mmtest.c
[16.git] / src / lib / 16_vlpld.h
1 #ifndef __16_VLPALD_H__\r
2 #define __16_VLPALD_H__\r
3 \r
4 #define BEVERBOSEPALCHECK\r
5 //#define BEVERBOSECOLORCHECK\r
6 #define DONOTPALCHECK\r
7 \r
8 #ifdef BEVERBOSECOLORCHECK\r
9 #define CHKCOLDBGOUT1 \\r
10                 printf("q: %02d\n", (*q));\\r
11                 printf("chkcolor start~\n");\\r
12                 printf("1                                  (*z): %d\n", (*z)/3);\\r
13                 printf("1                                  (*i): %d\n", (*i)/3);\\r
14                 printf("1 offset of color in palette    (*q): %d\n", (*q)/3);\\r
15                 printf("wwwwwwwwwwwwwwww\n");\r
16 #define CHKCOLDBGOUT2 \\r
17                         printf("\n              z: %d\n", (*z));\\r
18                         printf("                  q: %d\n", (*q));\\r
19                         printf("                  z+q: %d\n\n", ((*z)+(*q)));\r
20 #define CHKCOLDBGOUT3 \\r
21                         printf("\n%d    [%02d][%02d][%02d]\n", (*z), pal[(*z)], pal[(*z)+1], pal[(*z)+2]);\\r
22                         printf("%d        [%02d][%02d][%02d]\n\n", (*z)+3, pal[(*z)+3], pal[(*z)+4], pal[(*z)+5]);\r
23 #define CHKCOLDBGOUT4 \\r
24                         printf("zz: %02d\n", zz/3);\r
25 #define CHKCOLDBGOUT5 \\r
26                         printf("\nzq1:%d[%02d][%02d][%02d]\n", (zz+*q), pal[(zz+*q)], pal[(zz+*q)+1], pal[(zz+*q)+2]); \\r
27                         printf("zq2:%d[%02d][%02d][%02d]\n\n", (zz+*q)+3, pal[(zz+*q)+3], pal[(zz+*q)+4], pal[(zz+*q)+5]);\r
28 //printf("        zv: %d  [%02d][%02d][%02d] wwww\n", (zz-z+q)/3, pal[(zz-z+q)], pal[(zz-z+q)+1], pal[(zz-z+q)+2]);//\r
29 #define CHKCOLDBGOUT6 \\r
30                         printf("\n\nwwwwwwwwwwwwwwww\n"); \\r
31                         printf("        zq: %d  [%02d][%02d][%02d] value that is needing to be changed~\n", ((*z)+(*q))/3, pal[((*z)+(*q))], pal[((*z)+(*q))+1], pal[((*z)+(*q))+2]); \\r
32                         printf("        zz: %d  [%02d][%02d][%02d] value that the previous value is going to change to~\n", (zz)/3, pal[zz], pal[zz+1], pal[zz+2]); \\r
33                         printf("        z : %d  [%02d][%02d][%02d] offset value~\n", (*z)/3, pal[(*z)], pal[(*z)+1], pal[(*z)+2]);\r
34 #define CHKCOLDBGOUT7 \\r
35                         printf("z+q: %d\n\n", ((*z)+(*q)));\r
36 #define CHKCOLDBGOUT8 \\r
37                         printf("!!                                        a[%02d]: %d\n", (((*z)+(*q))/3), zz/3); \\r
38                         printf("\n                aa: %d\n\n", (*aa)); \\r
39                         printf("        a[%02d]=(%02d) offset array i think the palette should be updated again~\n", ((*z)+(*q))/3, a[((*z)+(*q))/3]); \\r
40                         printf("wwwwwwwwwwwwwwww\n\n");\r
41 #define CHKCOLDBGOUT9 \\r
42                         printf("[%d]", (zz+*q));\r
43 #define CHKCOLDBGOUT10 \\r
44                 printf("wwwwwwwwwwwwwwww\n"); \\r
45                 printf("2                                  (*z): %d\n", (*z)/3); \\r
46                 printf("2                                  (*i): %d\n", (*i)/3); \\r
47                 printf("2 offset of color in palette    (*q): %d\n", (*q)/3); \\r
48                 printf("chkcolor end~\n");\r
49 #else\r
50 #define CHKCOLDBGOUT1\r
51 #define CHKCOLDBGOUT2\r
52 #define CHKCOLDBGOUT3\r
53 #define CHKCOLDBGOUT4\r
54 #define CHKCOLDBGOUT5\r
55 #define CHKCOLDBGOUT6\r
56 #define CHKCOLDBGOUT7\r
57 #define CHKCOLDBGOUT8\r
58 #define CHKCOLDBGOUT9\r
59 #define CHKCOLDBGOUT10\r
60 #endif\r
61 //======//\r
62 \r
63 #endif\r