> > Learn how to write source code for MAME and fix it. > > Uhh... How do I do that?
Get a degree in computer science as well as a degree in electronics/electrical engineering from your local college or university. Or train yourself with the equivalent.