Ugly parsing details implemented for both emulators.

There is plenty of room to clean this code up in the future if it
becomes unwieldy, but for now it is just a quick-and-dirty tool to speed
up development of GBRb.