Setup 8255 mode