Port of mame 0.36 to java