mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	MemMap: Added an error for unaligned 16-bit memory reads.
This commit is contained in:
		
							parent
							
								
									da81742439
								
							
						
					
					
						commit
						967e5629de
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -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; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue