start of 8255 emulation, notes