예제 #1
0
파일: CodeStack.cpp 프로젝트: owensss/MIPS
bool CodeStack::insert(const Code& code) {
#ifdef _DEBUG_
	clog << "[InsertCode]" << code.name << ":" << code.rs << ":"
		<< code.rd << ": " << code.rt << ":" << code.Imd() << endl;
	clog << "[InsertCode]" << code.lb << ":" << code.Dirt() << endl;
#endif
	if (! validate(code))
	{
		// Ìî¿Ó
		std::cerr << "[debug][codeformat]" << cf << endl;
		return false;
	}

	origin.push_back(code);
	return true;
}