Index: apps/iloader/ls.x |
— | — | @@ -25,8 +25,11 @@ |
26 | 26 |
|
27 | 27 | .bss (NOLOAD) :
|
28 | 28 | {
|
| 29 | + __bss_start = .;
|
29 | 30 | *(.bss*)
|
30 | 31 | *(COMMON)
|
| 32 | + __bss_end = .;
|
| 33 | + *(.stack*)
|
31 | 34 | } > RAM
|
32 | 35 |
|
33 | 36 | /DISCARD/ :
|
Index: apps/iloader/main.c |
— | — | @@ -91,8 +91,19 @@ |
92 | 92 | int fh = get_font_height();
|
93 | 93 | config[0x25] = dw; // width and height for 0x0088
|
94 | 94 | config[0x26] = dh;
|
| 95 | + config[0x27] = lcd_translate_color(0, 0, 0, 0);
|
| 96 | + config[0x2b] = lcd_translate_color(0, 255, 255, 255);
|
| 97 | + config[0x2c] = lcd_translate_color(0, 0, 0, 0);
|
95 | 98 | config[0x4a] = fh; // font height for 0x0120
|
| 99 | + config[0x4b] = lcd_translate_color(0, 255, 255, 255);
|
| 100 | + config[0x4c] = lcd_translate_color(0, 0, 0, 0);
|
| 101 | + config[0x4d] = lcd_translate_color(0, 255, 255, 0);
|
| 102 | + config[0x4e] = lcd_translate_color(0, 0, 0, 255);
|
96 | 103 | config[0x52] = fh * 2; // font height for 0x0140
|
| 104 | + config[0x53] = lcd_translate_color(0, 255, 255, 255);
|
| 105 | + config[0x54] = lcd_translate_color(0, 0, 0, 0);
|
| 106 | + config[0x55] = lcd_translate_color(0, 255, 255, 0);
|
| 107 | + config[0x56] = lcd_translate_color(0, 0, 0, 255);
|
97 | 108 | uint32_t found = 0;
|
98 | 109 | uint32_t x = 0;
|
99 | 110 | uint32_t y = fh * 2;
|
— | — | @@ -111,10 +122,10 @@ |
112 | 123 | config[0x58 + found * 8] = 0x3564 + 9 * found;
|
113 | 124 | config[0x59 + found * 8] = x;
|
114 | 125 | config[0x5a + found * 8] = y;
|
115 | | - config[0x5b + found * 8] = 0xffff;
|
116 | | - config[0x5c + found * 8] = 0x0000;
|
117 | | - config[0x5d + found * 8] = 0xe0ff;
|
118 | | - config[0x5e + found * 8] = 0x1f00;
|
| 126 | + config[0x5b + found * 8] = lcd_translate_color(0, 255, 255, 255);
|
| 127 | + config[0x5c + found * 8] = lcd_translate_color(0, 0, 0, 0);
|
| 128 | + config[0x5d + found * 8] = lcd_translate_color(0, 255, 255, 0);
|
| 129 | + config[0x5e + found * 8] = lcd_translate_color(0, 0, 0, 255);
|
119 | 130 | config[0x5f + found * 8] = 0x2164 + found * 20;
|
120 | 131 | config[0x859 + found * 5] = 0x03;
|
121 | 132 | config[0x85a + found * 5] = 0x08000000;
|
— | — | @@ -129,7 +140,7 @@ |
130 | 141 | void main(void)
|
131 | 142 | {
|
132 | 143 | uint32_t i;
|
133 | | - uint32_t size;
|
| 144 | + int size;
|
134 | 145 | uint32_t errhandler;
|
135 | 146 | uint32_t pc = clickwheel_get_state() & 0x1f;
|
136 | 147 | char* filename;
|