diff --git a/src/huc6280_inline.h b/src/huc6280_inline.h index a22090e..73f097f 100644 --- a/src/huc6280_inline.h +++ b/src/huc6280_inline.h @@ -171,7 +171,6 @@ inline u16 HuC6280::AbsoluteAddressing(EightBitRegister* reg) { u16 address = Fetch16(); u16 result = address + reg->GetValue(); - m_page_crossed = PageCrossed(address, result); return result; } @@ -198,7 +197,6 @@ inline u16 HuC6280::IndirectIndexedAddressing() u8 h = m_memory->Read((address + 1) & 0x20FF); address = Address16(h, l); u16 result = address + m_Y.GetValue(); - m_page_crossed = PageCrossed(address, result); return result; } diff --git a/src/huc6280_opcodes.cpp b/src/huc6280_opcodes.cpp index ba10764..1f47ac6 100644 --- a/src/huc6280_opcodes.cpp +++ b/src/huc6280_opcodes.cpp @@ -982,7 +982,8 @@ void HuC6280::OPCode0x8F() void HuC6280::OPCode0x90() { - // BCC $s + // OK + // BCC hhll OPcodes_Branch(!IsSetFlag(FLAG_CARRY)); } @@ -1185,7 +1186,8 @@ void HuC6280::OPCode0xAF() void HuC6280::OPCode0xB0() { - // BCS $s + // OK + // BCS hhll OPcodes_Branch(IsSetFlag(FLAG_CARRY)); } @@ -1591,7 +1593,8 @@ void HuC6280::OPCode0xEF() void HuC6280::OPCode0xF0() { - // BEQ $s + // OK + // BEQ hhll OPcodes_Branch(IsSetFlag(FLAG_ZERO)); } diff --git a/src/huc6280_opcodes_inline.h b/src/huc6280_opcodes_inline.h index ff58dca..805560d 100644 --- a/src/huc6280_opcodes_inline.h +++ b/src/huc6280_opcodes_inline.h @@ -118,7 +118,6 @@ inline void HuC6280::OPcodes_Branch(bool condition) u16 result = static_cast(address + displacement); m_PC.SetValue(result); m_branch_taken = true; - m_page_crossed = PageCrossed(address, result); } else m_PC.Increment();