summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-08-06 02:05:06 +0200
committerbunnei <bunneidev@gmail.com>2014-08-06 02:05:06 +0200
commit967e5629de4ffb49a193e73df388efae7b3eaa43 (patch)
tree59b42b8324fb76879dfe10f9e88d55576455e88f /src/core
parentMemMap: Removed Read64 function. (diff)
downloadyuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.tar
yuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.tar.gz
yuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.tar.bz2
yuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.tar.lz
yuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.tar.xz
yuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.tar.zst
yuzu-967e5629de4ffb49a193e73df388efae7b3eaa43.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/mem_map_funcs.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp
index b4884d9d9..038d3bffa 100644
--- a/src/core/mem_map_funcs.cpp
+++ b/src/core/mem_map_funcs.cpp
@@ -232,6 +232,13 @@ u8 Read8(const u32 addr) {
u16 Read16(const u32 addr) {
u16_le data = 0;
Read<u16_le>(data, addr);
+
+ // Check for 16-bit unaligned memory reads...
+ if (addr & 1) {
+ // TODO(bunnei): Implement 16-bit unaligned memory reads
+ ERROR_LOG(MEMMAP, "16-bit unaligned memory reads are not implemented!");
+ }
+
return (u16)data;
}