MAS register addresses are 8 bit

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4991 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-08-06 21:21:39 +00:00
parent 8d60106430
commit 12bc9f0ca3

View file

@ -775,16 +775,15 @@ bool dbg_mas(void)
case BUTTON_DOWN:
#else
case BUTTON_RIGHT:
#endif
addr += NUMROWS;
#endif
addr = (addr + NUMROWS) & 0xFF; /* register addrs are 8 bit */
break;
#ifdef HAVE_RECORDER_KEYPAD
case BUTTON_UP:
#else
case BUTTON_LEFT:
#endif
if(addr)
addr -= NUMROWS;
addr = (addr - NUMROWS) & 0xFF; /* register addrs are 8 bit */
break;
#ifdef HAVE_RECORDER_KEYPAD
case BUTTON_LEFT: