2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

MemMap: Added an error for unaligned 16-bit memory reads.

This commit is contained in:
bunnei 2014-08-05 20:05:06 -04:00
parent da81742439
commit 967e5629de

View file

@ -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;
}