Exemple #1
0
 bool isUnvisited(const std::pair<int, int> & ij) const {
     return (0 == getValAt(ij.first * 2, ij.second * 2));
 }
Exemple #2
0
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
}
Exemple #3
0
void Register::setDerefFromA(regPair regHexSet) {
	int memLoc = getValAt(regHexSet); // get memory locaiton
	ram->setMem(memLoc, getValAt(A)); // set low order ONLY
}
Exemple #4
0
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
}