static public int ReadPort(int port) { if ((port & 0x0480) == 0) { return(UPD.Read(port)); } if ((port & 0x0800) == 0) { return(PPI.Read(port)); } if ((port & 0x4000) == 0) { return(CRTC.Read(port)); } return(0xFF); }