diff options
author | twinaphex | 2017-12-25 06:37:52 +0100 |
---|---|---|
committer | twinaphex | 2017-12-25 06:37:52 +0100 |
commit | 844bddc4f2203fbbf56834c27de24a54cb3674a3 (patch) | |
tree | 653edb05bba1552b9fea361a9228c3f5145dad32 /source | |
parent | 00fd30fcf789ea5d0eb55092c56d123d3a475aeb (diff) | |
download | snesemu-844bddc4f2203fbbf56834c27de24a54cb3674a3.tar.gz snesemu-844bddc4f2203fbbf56834c27de24a54cb3674a3.tar.bz2 snesemu-844bddc4f2203fbbf56834c27de24a54cb3674a3.zip |
Cleanups
Diffstat (limited to 'source')
-rw-r--r-- | source/getset.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/getset.h b/source/getset.h index a5fd6f3..6c4142a 100644 --- a/source/getset.h +++ b/source/getset.h @@ -15,7 +15,7 @@ extern uint8_t OpenBus; -INLINE uint8_t S9xGetByte(uint32_t Address) +static INLINE uint8_t S9xGetByte(uint32_t Address) { int32_t block; uint8_t* GetAddress = Memory.Map [block = (Address >> MEMMAP_SHIFT) & MEMMAP_MASK]; @@ -67,7 +67,7 @@ INLINE uint8_t S9xGetByte(uint32_t Address) } } -INLINE uint16_t S9xGetWord(uint32_t Address) +static INLINE uint16_t S9xGetWord(uint32_t Address) { int32_t block; uint8_t* GetAddress; @@ -138,7 +138,7 @@ INLINE uint16_t S9xGetWord(uint32_t Address) } } -INLINE void S9xSetByte(uint8_t Byte, uint32_t Address) +static INLINE void S9xSetByte(uint8_t Byte, uint32_t Address) { int32_t block; uint8_t* SetAddress = Memory.WriteMap [block = ((Address >> MEMMAP_SHIFT) & MEMMAP_MASK)]; @@ -209,7 +209,7 @@ INLINE void S9xSetByte(uint8_t Byte, uint32_t Address) } } -INLINE void S9xSetWord(uint16_t Word, uint32_t Address) +static INLINE void S9xSetWord(uint16_t Word, uint32_t Address) { int32_t block; uint8_t* SetAddress; @@ -313,7 +313,7 @@ INLINE void S9xSetWord(uint16_t Word, uint32_t Address) } } -INLINE uint8_t* GetBasePointer(uint32_t Address) +static INLINE uint8_t* GetBasePointer(uint32_t Address) { uint8_t* GetAddress = Memory.Map [(Address >> MEMMAP_SHIFT) & MEMMAP_MASK]; if (GetAddress >= (uint8_t*) MAP_LAST) @@ -347,7 +347,7 @@ INLINE uint8_t* GetBasePointer(uint32_t Address) } } -INLINE uint8_t* S9xGetMemPointer(uint32_t Address) +static INLINE uint8_t* S9xGetMemPointer(uint32_t Address) { uint8_t* GetAddress = Memory.Map [(Address >> MEMMAP_SHIFT) & MEMMAP_MASK]; if (GetAddress >= (uint8_t*) MAP_LAST) @@ -384,7 +384,7 @@ INLINE uint8_t* S9xGetMemPointer(uint32_t Address) } } -INLINE void S9xSetPCBase(uint32_t Address) +static INLINE void S9xSetPCBase(uint32_t Address) { int32_t block; uint8_t* GetAddress = Memory.Map [block = (Address >> MEMMAP_SHIFT) & MEMMAP_MASK]; |