move ROM loading to romfile.cpp