summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/lcd.c')
-rw-r--r--apps/plugins/rockboy/lcd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c
index a34db2fd3c..7fe531041c 100644
--- a/apps/plugins/rockboy/lcd.c
+++ b/apps/plugins/rockboy/lcd.c
@@ -43,7 +43,7 @@ struct scan scan IBSS_ATTR;
43#define WV (scan.wv) 43#define WV (scan.wv)
44 44
45byte patpix[4096][8][8] 45byte patpix[4096][8][8]
46#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 46#if defined(CPU_COLDFIRE)
47 __attribute__ ((aligned(16))) /* to profit from burst mode */ 47 __attribute__ ((aligned(16))) /* to profit from burst mode */
48#endif 48#endif
49 ; 49 ;
@@ -62,7 +62,7 @@ fb_data *vdest;
62void updatepatpix(void) 62void updatepatpix(void)
63{ 63{
64 int i, j; 64 int i, j;
65#if ((CONFIG_CPU != SH7034) && !defined(CPU_COLDFIRE)) || defined(SIMULATOR) 65#if ((CONFIG_CPU != SH7034) && !defined(CPU_COLDFIRE))
66 int k, a, c; 66 int k, a, c;
67#endif 67#endif
68 byte *vram = lcd.vbank[0]; 68 byte *vram = lcd.vbank[0];
@@ -76,7 +76,7 @@ void updatepatpix(void)
76 patdirty[i] = 0; 76 patdirty[i] = 0;
77 for (j = 0; j < 8; j++) 77 for (j = 0; j < 8; j++)
78 { 78 {
79#if CONFIG_CPU == SH7034 && !defined(SIMULATOR) 79#if CONFIG_CPU == SH7034
80 asm volatile ( 80 asm volatile (
81 "mov.w @%2,r1 \n" 81 "mov.w @%2,r1 \n"
82 "swap.b r1,r2 \n" 82 "swap.b r1,r2 \n"
@@ -145,7 +145,7 @@ void updatepatpix(void)
145 : /* clobbers */ 145 : /* clobbers */
146 "r0", "r1", "r2" 146 "r0", "r1", "r2"
147 ); 147 );
148#elif defined(CPU_COLDFIRE) && !defined(SIMULATOR) 148#elif defined(CPU_COLDFIRE)
149 asm volatile ( 149 asm volatile (
150 "move.b (%2),%%d2 \n" 150 "move.b (%2),%%d2 \n"
151 "move.b (1,%2),%%d1 \n" 151 "move.b (1,%2),%%d1 \n"
@@ -222,7 +222,7 @@ void updatepatpix(void)
222 patpix[i+1024][j][7-k]; 222 patpix[i+1024][j][7-k];
223#endif 223#endif
224 } 224 }
225#if CONFIG_CPU == SH7034 && !defined(SIMULATOR) 225#if CONFIG_CPU == SH7034
226 asm volatile ( 226 asm volatile (
227 "mov.l @%0,r0 \n" 227 "mov.l @%0,r0 \n"
228 "mov.l @(4,%0),r1 \n" 228 "mov.l @(4,%0),r1 \n"
@@ -300,7 +300,7 @@ void updatepatpix(void)
300 : /* clobbers */ 300 : /* clobbers */
301 "r0", "r1" 301 "r0", "r1"
302 ); 302 );
303#elif defined(CPU_COLDFIRE) && !defined(SIMULATOR) 303#elif defined(CPU_COLDFIRE)
304 asm volatile ( 304 asm volatile (
305 "movem.l (%0),%%d0-%%d3 \n" 305 "movem.l (%0),%%d0-%%d3 \n"
306 "move.l %%d0,%%d4 \n" 306 "move.l %%d0,%%d4 \n"
@@ -486,7 +486,7 @@ void bg_scan(void)
486 if (cnt <= 0) return; 486 if (cnt <= 0) return;
487 while (cnt >= 8) 487 while (cnt >= 8)
488 { 488 {
489#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 489#if defined(CPU_COLDFIRE)
490 asm volatile ( 490 asm volatile (
491 "move.l (%1)+,(%0)+ \n" 491 "move.l (%1)+,(%0)+ \n"
492 "move.l (%1)+,(%0)+ \n" 492 "move.l (%1)+,(%0)+ \n"
@@ -521,7 +521,7 @@ void wnd_scan(void)
521 521
522 while (cnt >= 8) 522 while (cnt >= 8)
523 { 523 {
524#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 524#if defined(CPU_COLDFIRE)
525 asm volatile ( 525 asm volatile (
526 "move.l (%1)+,(%0)+ \n" 526 "move.l (%1)+,(%0)+ \n"
527 "move.l (%1)+,(%0)+ \n" 527 "move.l (%1)+,(%0)+ \n"
@@ -629,7 +629,7 @@ void bg_scan_color(void)
629 while (cnt >= 8) 629 while (cnt >= 8)
630 { 630 {
631 src = patpix[*(tile++)][V]; 631 src = patpix[*(tile++)][V];
632#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 632#if defined(CPU_COLDFIRE)
633 asm volatile ( 633 asm volatile (
634 "move.l (%2)+,%%d1 \n" 634 "move.l (%2)+,%%d1 \n"
635 635