diff options
author | bunnei <bunneidev@gmail.com> | 2014-07-04 23:46:16 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-07-04 23:46:16 -0400 |
commit | 3013015a0c7b830c9985e4d3a6b2bd66f15546e2 (patch) | |
tree | 1b514233226d458efa501d9367cccc11bbe8e700 /src/core/mem_map.h | |
parent | ad1adb2f9270cc48bfbfd8b12ad1dac162c48e39 (diff) |
mem_map: Updated interface to expose template functions to other modules.
Diffstat (limited to 'src/core/mem_map.h')
-rw-r--r-- | src/core/mem_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h index d5899e4b..70a8dedc 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h @@ -128,6 +128,12 @@ extern u8* g_exefs_code; ///< ExeFS:/.code is loaded here void Init(); void Shutdown(); +template <typename T> +inline void Read(T &var, const u32 addr); + +template <typename T> +inline void Write(u32 addr, const T data); + u8 Read8(const u32 addr); u16 Read16(const u32 addr); u32 Read32(const u32 addr); |