src/bins/decode.cc
/*
 * Queues a stack push instruction using the given micro operation.
 */
Queues a stack push instruction using the given micro operation.
Queues a stack push instruction using the given micro operation .
void Decode::DecodePush(CpuOperation op) {
  state_->AddCycle(MEM_READ | MEM_OP1(REG_TMP2) | MEM_ADDR(REG_PCL));
  state_->AddCycle(op | DAT_DECNF | DAT_DST(REG_S));
  state_->AddCycle(MEM_FETCH | PC_INC);
  return;
}
void Decode :: DecodePush ( CpuOperation op ) { state_ -> AddCycle ( MEM_READ | MEM_OP1 ( REG_TMP2 ) | MEM_ADDR ( REG_PCL ) ) ; state_ -> AddCycle ( op | DAT_DECNF | DAT_DST ( REG_S ) ) ; state_ -> AddCycle ( MEM_FETCH | PC_INC ) ; return ; }
Queues a stack push instruction using the given micro operation.
Queues a stack push instruction using the given micro operation .