added 16bit,32bit mode.