byte talk(int device) { if ((device >= 8) && (device <= 11)) { if ((talker = drive[device - 8]) != null && talker.Ready) { talker_active = true; return (byte)C64StatusCode.ST_OK; } } talker_active = false; return (byte)C64StatusCode.ST_NOTPRESENT; }
byte listen(int device) { if ((device >= 8) && (device <= 11)) { if ((listener = drive[device - 8]) != null && listener.Ready) { listener_active = true; return (byte)C64StatusCode.ST_OK; } } listener_active = false; return (byte)C64StatusCode.ST_NOTPRESENT; }