X Tutup
Skip to content

Commit 735e428

Browse files
committed
PCE: Fixed bug in indirect zero page wrapping logic
Indirect zero page reads at $20FF would have been affected by this, but odds are that games never do this
1 parent f5a957a commit 735e428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/PCE/PceCpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ uint16_t PceCpu::ReadZeroPageWrap(uint8_t zero)
356356
{
357357
if(zero == 0xFF) {
358358
uint8_t lo = MemoryRead(PceCpu::ZeroPage + 0xFF);
359-
uint8_t hi = (MemoryRead(PceCpu::ZeroPage + 0x00) << 8);
359+
uint8_t hi = MemoryRead(PceCpu::ZeroPage + 0x00);
360360
return lo | (hi << 8);
361361
} else {
362362
return MemoryReadWord(PceCpu::ZeroPage + zero);

0 commit comments

Comments
 (0)
X Tutup