You’re either using the wrong version of the roms, or the wrong emulator.
to find out which roms or emulator you should be using:
Here’s how to fix it:
This is an extremely common problem, a little search would have found many many threads on the topic.
Once you get this fixed, Capcom CPS 1 and 2 roms will work unmodified in the PiFBA emulator. I assume you hadn’t discovered yet, given this issue. ;P