summaryrefslogtreecommitdiffstats
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;
* make the old maps potentially invalid.
*/
-void mem_updatemap()
+void mem_updatemap(void)
{
int n;
static byte **map;
@@ -93,7 +93,8 @@ void mem_updatemap()
* byte value to be written.
*/
-void ioreg_write(byte r, byte b)
+static void ioreg_write(byte r, byte b) ICODE_ATTR;
+static void ioreg_write(byte r, byte b)
{
if (!hw.cgb)
{
@@ -225,7 +226,7 @@ void ioreg_write(byte r, byte b)
}
-byte ioreg_read(byte r)
+static byte ioreg_read(byte r)
{
switch(r)
{
@@ -282,7 +283,8 @@ byte ioreg_read(byte r)
* and a byte value written to the address.
*/
-void mbc_write(int a, byte b)
+static void mbc_write(int a, byte b) ICODE_ATTR;
+static void mbc_write(int a, byte b)
{
byte ha = (a>>12);