aboutsummaryrefslogtreecommitdiff
path: root/source/getset.h
diff options
context:
space:
mode:
authortwinaphex2014-10-30 02:03:23 +0100
committertwinaphex2014-10-30 02:03:23 +0100
commit8a50d176b72a48dc1a8892ee398cf8855c244812 (patch)
tree105c597fece639f7d08fe733d11497e84db154e7 /source/getset.h
parent2b16ed99405805c16260085f46c753792c1af32d (diff)
downloadsnes9x2005-8a50d176b72a48dc1a8892ee398cf8855c244812.tar.gz
snes9x2005-8a50d176b72a48dc1a8892ee398cf8855c244812.tar.bz2
snes9x2005-8a50d176b72a48dc1a8892ee398cf8855c244812.zip
New Makefile
Diffstat (limited to 'source/getset.h')
-rw-r--r--source/getset.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/getset.h b/source/getset.h
index 558ed98..05247c9 100644
--- a/source/getset.h
+++ b/source/getset.h
@@ -100,7 +100,7 @@
extern uint8 OpenBus;
-uint8 S9xGetByte(uint32 Address)
+static inline uint8 S9xGetByte(uint32 Address)
{
int block;
uint8* GetAddress = Memory.Map [block = (Address >> MEMMAP_SHIFT) &
@@ -183,7 +183,7 @@ uint8 S9xGetByte(uint32 Address)
}
}
-uint16 S9xGetWord(uint32 Address)
+static inline uint16 S9xGetWord(uint32 Address)
{
if ((Address & 0x0fff) == 0x0fff)
{
@@ -296,7 +296,7 @@ uint16 S9xGetWord(uint32 Address)
}
}
-void S9xSetByte(uint8 Byte, uint32 Address)
+static inline void S9xSetByte(uint8 Byte, uint32 Address)
{
#if defined(CPU_SHUTDOWN)
CPU.WaitAddress = NULL;
@@ -405,7 +405,7 @@ void S9xSetByte(uint8 Byte, uint32 Address)
}
}
-void S9xSetWord(uint16 Word, uint32 Address)
+static inline void S9xSetWord(uint16 Word, uint32 Address)
{
if ((Address & 0x0FFF) == 0x0FFF)
{
@@ -557,7 +557,7 @@ void S9xSetWord(uint16 Word, uint32 Address)
}
}
-uint8* GetBasePointer(uint32 Address)
+static inline uint8* GetBasePointer(uint32 Address)
{
uint8* GetAddress = Memory.Map [(Address >> MEMMAP_SHIFT) & MEMMAP_MASK];
if (GetAddress >= (uint8*) MAP_LAST)
@@ -609,7 +609,7 @@ uint8* GetBasePointer(uint32 Address)
}
}
-uint8* S9xGetMemPointer(uint32 Address)
+static inline uint8* S9xGetMemPointer(uint32 Address)
{
uint8* GetAddress = Memory.Map [(Address >> MEMMAP_SHIFT) & MEMMAP_MASK];
if (GetAddress >= (uint8*) MAP_LAST)
@@ -654,7 +654,7 @@ uint8* S9xGetMemPointer(uint32 Address)
}
}
-void S9xSetPCBase(uint32 Address)
+static inline void S9xSetPCBase(uint32 Address)
{
int block;
uint8* GetAddress = Memory.Map [block = (Address >> MEMMAP_SHIFT) &
@@ -716,5 +716,5 @@ void S9xSetPCBase(uint32 Address)
return;
}
}
-#endif
+#endif