src/bins/decode.cc
/*
 * Queues a reg indexed zero page write instruction using the given micro
 * operation.
 */
Queues a reg indexed zero page write instruction using the given micro
operation.
Queues a reg indexed zero page write instruction using the given micro operation .
void Decode::DecodeWZpR(CpuOperation op, CpuReg reg) {
  state_->AddCycle(MEM_READZP | MEM_OP1(REG_ADDRL) | MEM_ADDR(REG_PCL)
                 | PC_INC);
  state_->AddCycle(MEM_READ | MEM_OP1(REG_TMP1) | MEM_ADDR(REG_ADDRL)
                 | DAT_ADD | DAT_DST(REG_ADDRL) | DAT_SRC(reg));
  state_->AddCycle(op);
  state_->AddCycle(MEM_FETCH | PC_INC);
  return;
}
void Decode :: DecodeWZpR ( CpuOperation op , CpuReg reg ) { state_ -> AddCycle ( MEM_READZP | MEM_OP1 ( REG_ADDRL ) | MEM_ADDR ( REG_PCL ) | PC_INC ) ; state_ -> AddCycle ( MEM_READ | MEM_OP1 ( REG_TMP1 ) | MEM_ADDR ( REG_ADDRL ) | DAT_ADD | DAT_DST ( REG_ADDRL ) | DAT_SRC ( reg ) ) ; state_ -> AddCycle ( op ) ; state_ -> AddCycle ( MEM_FETCH | PC_INC ) ; return ; }
Queues a reg indexed zero page write instruction using the given micro
 operation.
Queues a reg indexed zero page write instruction using the given micro operation .