Originally Posted By PhillHS
Originally Posted By AaronGiles
A good chunk of the peripherals are implemented in mame/audio/leland.c. Using that as a starting point would be a good idea.

That code looks very like the code in the mess compis driver, which I saw after posting my original query. I used that as a base.

Yes, the code was copied from the leland driver. However, it should have been cleaned up and also separated to a 186/188 module.