summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/mem.c
diff options
context:
space:
mode:
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