Yeah, I'd just take the other emulators, look at the code, and then put it into my own program.