port more MAME changes

..this could fix weird sounding OKIM6376 (i tried to make it similar to MAME)