C64Lib.Core.D64Drive.open_file_ts C# (CSharp) Method

open_file_ts() private method

private open_file_ts ( int channel, int track, int sector ) : byte
channel int
track int
sector int
return byte
        private byte open_file_ts(int channel, int track, int sector)
        {
            AllocateChannelBuffer(channel, 256);
            chan_mode[channel] = ChannelMode.CHMOD_FILE;

            // On the next call to Read, the first block will be read
            chan_buf[channel][0] = (byte)track;
            chan_buf[channel][1] = (byte)sector;
            buf_len[channel] = 0;

            return (byte)C64StatusCode.ST_OK;
        }