From 3013015a0c7b830c9985e4d3a6b2bd66f15546e2 Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 4 Jul 2014 23:46:16 -0400 Subject: mem_map: Updated interface to expose template functions to other modules. --- src/core/mem_map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/mem_map.h') 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 +inline void Read(T &var, const u32 addr); + +template +inline void Write(u32 addr, const T data); + u8 Read8(const u32 addr); u16 Read16(const u32 addr); u32 Read32(const u32 addr); -- cgit v1.2.3