mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-25 15:30:35 +00:00
Add a couple of LIKELY/UNLIKELY specifications to the 6809 processor.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
c105ee37bf
commit
ae66b39dac
@ -18,13 +18,13 @@ int EightBit::mc6809::step() {
|
|||||||
if (LIKELY(powered())) {
|
if (LIKELY(powered())) {
|
||||||
m_prefix10 = m_prefix11 = false;
|
m_prefix10 = m_prefix11 = false;
|
||||||
ExecutingInstruction.fire(*this);
|
ExecutingInstruction.fire(*this);
|
||||||
if (lowered(RESET()))
|
if (UNLIKELY(lowered(RESET())))
|
||||||
handleRESET();
|
handleRESET();
|
||||||
else if (lowered(NMI()))
|
else if (UNLIKELY(lowered(NMI())))
|
||||||
handleNMI();
|
handleNMI();
|
||||||
else if (lowered(FIRQ()) && !(CC() & FF))
|
else if (UNLIKELY(lowered(FIRQ()) && !(CC() & FF)))
|
||||||
handleFIRQ();
|
handleFIRQ();
|
||||||
else if (lowered(IRQ()) && !(CC() & IF))
|
else if (UNLIKELY(lowered(IRQ()) && !(CC() & IF)))
|
||||||
handleIRQ();
|
handleIRQ();
|
||||||
else
|
else
|
||||||
execute(fetchByte());
|
execute(fetchByte());
|
||||||
@ -71,9 +71,9 @@ void EightBit::mc6809::handleFIRQ() {
|
|||||||
//
|
//
|
||||||
|
|
||||||
int EightBit::mc6809::execute(uint8_t opcode) {
|
int EightBit::mc6809::execute(uint8_t opcode) {
|
||||||
if (m_prefix10)
|
if (UNLIKELY(m_prefix10))
|
||||||
execute10(opcode);
|
execute10(opcode);
|
||||||
else if (m_prefix11)
|
else if (UNLIKELY(m_prefix11))
|
||||||
execute11(opcode);
|
execute11(opcode);
|
||||||
else
|
else
|
||||||
executeUnprefixed(opcode);
|
executeUnprefixed(opcode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user