예제 #1
0
파일: IEC.cs 프로젝트: archer87pl/sharp-c64
        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;
        }
예제 #2
0
파일: IEC.cs 프로젝트: archer87pl/sharp-c64
        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;
        }