complete OKIM6295 emulation (tested and works)