summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-15 19:40:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch)
tree98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/plugins/rockboy/sys_rockbox.c
parent17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff)
downloadrockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz
rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.bz2
rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c54
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)
if (rb->button_hold()&~holdbutton)
fb.mode=(fb.mode+1)%4;
holdbutton=rb->button_hold();
-#elif CONFIG_KEYPAD == RECORDER_PAD
- if (pressed & BUTTON_ON)
- fb.mode=(fb.mode+1)%4;
#endif
#ifdef HAVE_WHEEL_POSITION
@@ -220,12 +217,10 @@ void ev_poll(void)
#else
if(pressed & options.MENU) {
#endif
-#if (CONFIG_KEYPAD != RECORDER_PAD)
#ifdef HAVE_WHEEL_POSITION
rb->wheel_send_events(true);
#endif
if (do_user_menu() == USER_MENU_QUIT)
-#endif
{
die("");
cleanshut=1;
@@ -300,54 +295,6 @@ void vid_update(int scanline)
balance += LCD_WIDTH;
if (balance > 0)
{
-#if (CONFIG_CPU == SH7034) && !defined(SIMULATOR)
- asm volatile (
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
- "mov.b @%0,r0 \n"
- "add %1,%0 \n"
- "tst #0x02, r0 \n" /* ~bit 1 */
- "rotcr r1 \n"
-
- "shlr16 r1 \n"
- "shlr8 r1 \n"
- "not r1,r1 \n" /* account for negated bits */
- "mov.b r1,@%2 \n"
- : /* outputs */
- : /* inputs */
- /* %0 */ "r"(scan.buf[0] + cnt),
- /* %1 */ "r"(256), /* scan.buf line length */
- /* %2 */ "r"(frameb++)
- : /* clobbers */
- "r0", "r1"
- );
-#else
register unsigned scrbyte = 0;
if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01;
if (scan.buf[1][cnt] & 0x02) scrbyte |= 0x02;
@@ -358,7 +305,6 @@ void vid_update(int scanline)
if (scan.buf[6][cnt] & 0x02) scrbyte |= 0x40;
if (scan.buf[7][cnt] & 0x02) scrbyte |= 0x80;
*(frameb++) = scrbyte;
-#endif
balance -= 160;
}
cnt ++;