diff options
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r-- | apps/plugins/rockboy/sys_rockbox.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c index 3a1f3c6760..e27cbbe3e7 100644 --- a/apps/plugins/rockboy/sys_rockbox.c +++ b/apps/plugins/rockboy/sys_rockbox.c | |||
@@ -91,9 +91,6 @@ void ev_poll(void) | |||
91 | if (rb->button_hold()&~holdbutton) | 91 | if (rb->button_hold()&~holdbutton) |
92 | fb.mode=(fb.mode+1)%4; | 92 | fb.mode=(fb.mode+1)%4; |
93 | holdbutton=rb->button_hold(); | 93 | holdbutton=rb->button_hold(); |
94 | #elif CONFIG_KEYPAD == RECORDER_PAD | ||
95 | if (pressed & BUTTON_ON) | ||
96 | fb.mode=(fb.mode+1)%4; | ||
97 | #endif | 94 | #endif |
98 | 95 | ||
99 | #ifdef HAVE_WHEEL_POSITION | 96 | #ifdef HAVE_WHEEL_POSITION |
@@ -220,12 +217,10 @@ void ev_poll(void) | |||
220 | #else | 217 | #else |
221 | if(pressed & options.MENU) { | 218 | if(pressed & options.MENU) { |
222 | #endif | 219 | #endif |
223 | #if (CONFIG_KEYPAD != RECORDER_PAD) | ||
224 | #ifdef HAVE_WHEEL_POSITION | 220 | #ifdef HAVE_WHEEL_POSITION |
225 | rb->wheel_send_events(true); | 221 | rb->wheel_send_events(true); |
226 | #endif | 222 | #endif |
227 | if (do_user_menu() == USER_MENU_QUIT) | 223 | if (do_user_menu() == USER_MENU_QUIT) |
228 | #endif | ||
229 | { | 224 | { |
230 | die(""); | 225 | die(""); |
231 | cleanshut=1; | 226 | cleanshut=1; |
@@ -300,54 +295,6 @@ void vid_update(int scanline) | |||
300 | balance += LCD_WIDTH; | 295 | balance += LCD_WIDTH; |
301 | if (balance > 0) | 296 | if (balance > 0) |
302 | { | 297 | { |
303 | #if (CONFIG_CPU == SH7034) && !defined(SIMULATOR) | ||
304 | asm volatile ( | ||
305 | "mov.b @%0,r0 \n" | ||
306 | "add %1,%0 \n" | ||
307 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
308 | "rotcr r1 \n" | ||
309 | "mov.b @%0,r0 \n" | ||
310 | "add %1,%0 \n" | ||
311 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
312 | "rotcr r1 \n" | ||
313 | "mov.b @%0,r0 \n" | ||
314 | "add %1,%0 \n" | ||
315 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
316 | "rotcr r1 \n" | ||
317 | "mov.b @%0,r0 \n" | ||
318 | "add %1,%0 \n" | ||
319 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
320 | "rotcr r1 \n" | ||
321 | "mov.b @%0,r0 \n" | ||
322 | "add %1,%0 \n" | ||
323 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
324 | "rotcr r1 \n" | ||
325 | "mov.b @%0,r0 \n" | ||
326 | "add %1,%0 \n" | ||
327 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
328 | "rotcr r1 \n" | ||
329 | "mov.b @%0,r0 \n" | ||
330 | "add %1,%0 \n" | ||
331 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
332 | "rotcr r1 \n" | ||
333 | "mov.b @%0,r0 \n" | ||
334 | "add %1,%0 \n" | ||
335 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
336 | "rotcr r1 \n" | ||
337 | |||
338 | "shlr16 r1 \n" | ||
339 | "shlr8 r1 \n" | ||
340 | "not r1,r1 \n" /* account for negated bits */ | ||
341 | "mov.b r1,@%2 \n" | ||
342 | : /* outputs */ | ||
343 | : /* inputs */ | ||
344 | /* %0 */ "r"(scan.buf[0] + cnt), | ||
345 | /* %1 */ "r"(256), /* scan.buf line length */ | ||
346 | /* %2 */ "r"(frameb++) | ||
347 | : /* clobbers */ | ||
348 | "r0", "r1" | ||
349 | ); | ||
350 | #else | ||
351 | register unsigned scrbyte = 0; | 298 | register unsigned scrbyte = 0; |
352 | if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01; | 299 | if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01; |
353 | if (scan.buf[1][cnt] & 0x02) scrbyte |= 0x02; | 300 | if (scan.buf[1][cnt] & 0x02) scrbyte |= 0x02; |
@@ -358,7 +305,6 @@ void vid_update(int scanline) | |||
358 | if (scan.buf[6][cnt] & 0x02) scrbyte |= 0x40; | 305 | if (scan.buf[6][cnt] & 0x02) scrbyte |= 0x40; |
359 | if (scan.buf[7][cnt] & 0x02) scrbyte |= 0x80; | 306 | if (scan.buf[7][cnt] & 0x02) scrbyte |= 0x80; |
360 | *(frameb++) = scrbyte; | 307 | *(frameb++) = scrbyte; |
361 | #endif | ||
362 | balance -= 160; | 308 | balance -= 160; |
363 | } | 309 | } |
364 | cnt ++; | 310 | cnt ++; |