bool isUnvisited(const std::pair<int, int> & ij) const { return (0 == getValAt(ij.first * 2, ij.second * 2)); }
void Register::setDerefFromReg(regPair regHexSet, regPair regHexData) { int memLoc = getValAt(regHexSet); // get memory locaiton ram->setMem(memLoc, getValAt(getFirstReg(regHexData))); // set low order ram->setMem(memLoc+1, getValAt(getSecondReg(regHexData))); // set high order }
void Register::setDerefFromA(regPair regHexSet) { int memLoc = getValAt(regHexSet); // get memory locaiton ram->setMem(memLoc, getValAt(A)); // set low order ONLY }
void Register::setRegFromDeref(regPair regHexSet, regPair regHexData) { int memLoc = getValAt(regHexData); // get memory loaction set(getFirstReg(regHexSet), ram->getMem(memLoc)); // set low order set(getSecondReg(regHexSet), ram->getMem(memLoc+1)); // set high order }