summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/mem.c
diff options
context:
space:
mode:
authorTom Ross <midgey@rockbox.org>2007-10-16 18:16:22 +0000
committerTom Ross <midgey@rockbox.org>2007-10-16 18:16:22 +0000
commit437c3e40ca7579acc20b648319447045649b0873 (patch)
tree5504a232c510dff3f3872d8c7dee388fcbfafeb5 /apps/plugins/rockboy/mem.c
parent0b911fefea7615105244098da1baf4655fa1e721 (diff)
downloadrockbox-437c3e40ca7579acc20b648319447045649b0873.tar.gz
rockbox-437c3e40ca7579acc20b648319447045649b0873.zip
Code police and clean up for rockboy.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15144 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/mem.c')
-rw-r--r--apps/plugins/rockboy/mem.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/rockboy/mem.c b/apps/plugins/rockboy/mem.c
index 6811fd5f81..93072f5d51 100644
--- a/apps/plugins/rockboy/mem.c
+++ b/apps/plugins/rockboy/mem.c
@@ -28,7 +28,7 @@ struct ram ram;
28 * make the old maps potentially invalid. 28 * make the old maps potentially invalid.
29 */ 29 */
30 30
31void mem_updatemap() 31void mem_updatemap(void)
32{ 32{
33 int n; 33 int n;
34 static byte **map; 34 static byte **map;
@@ -93,7 +93,8 @@ void mem_updatemap()
93 * byte value to be written. 93 * byte value to be written.
94 */ 94 */
95 95
96void ioreg_write(byte r, byte b) 96static void ioreg_write(byte r, byte b) ICODE_ATTR;
97static void ioreg_write(byte r, byte b)
97{ 98{
98 if (!hw.cgb) 99 if (!hw.cgb)
99 { 100 {
@@ -225,7 +226,7 @@ void ioreg_write(byte r, byte b)
225} 226}
226 227
227 228
228byte ioreg_read(byte r) 229static byte ioreg_read(byte r)
229{ 230{
230 switch(r) 231 switch(r)
231 { 232 {
@@ -282,7 +283,8 @@ byte ioreg_read(byte r)
282 * and a byte value written to the address. 283 * and a byte value written to the address.
283 */ 284 */
284 285
285void mbc_write(int a, byte b) 286static void mbc_write(int a, byte b) ICODE_ATTR;
287static void mbc_write(int a, byte b)
286{ 288{
287 byte ha = (a>>12); 289 byte ha = (a>>12);
288 290