cpu: ext_reg switch bug FIX by markus
[calu.git] / 3c_disasm / CInstrFactory.cpp
index b3aed2787217b2d4b4ac6a647982104fdafc4644..56c37fd214bc6707a137be4c33af9d4e3ac4d060 100644 (file)
@@ -116,6 +116,23 @@ size_t CInstrFactory::getNumFiles()
        return m_files.size();
 }
 
+void CInstrFactory::loadLibsIntoMap(map<short, Iinstr*>& instr, string dir)
+{
+#ifdef DEBUG
+               cout << "Loaded " << this->searchLibsInDir(dir) << " Libraryfiles" << endl;
+#else
+               this->searchLibsInDir(dir);
+#endif
+               while(this->getNumFiles() >= 1) {
+                       Iinstr* pinstr = this->getNextInstr();
+                       instr.insert(make_pair(pinstr->getOpcode(),pinstr));
+#ifdef DEBUG
+                       cout << "found: " << pinstr->getName() << " its opcode is : " << pinstr->getOpcode() << endl;
+#endif
+               }
+}
+
+
 /**
  * Name:    ~CInstrFactory
  * Purpose: Destructor of the Object