示例#1
0
        bool _Ready; // Drive is ready for operation

        #endregion Fields

        #region Constructors

        public Drive(IEC iec)
        {
            the_iec = iec;
            LED = DriveLEDState.DRVLED_OFF;
            Ready = false;
            set_error(ErrorCode1541.ERR_STARTUP);
        }
示例#2
0
 public Drive(IEC iec)
 {
     the_iec = iec;
     LED     = DriveLEDState.DRVLED_OFF;
     Ready   = false;
     set_error(ErrorCode1541.ERR_STARTUP);
 }
示例#3
0
        public D64Drive(IEC iec, string filepath)
            : base(iec)
        {
            the_file = null;
            ram      = null;

            Ready         = false;
            orig_d64_name = filepath;

            for (int i = 0; i < chan_mode.Length - 1; i++)
            {
                chan_mode[i] = ChannelMode.CHMOD_FREE;
            }
            chan_mode[15] = ChannelMode.CHMOD_COMMAND;

            // Open .d64 file
            open_close_d64_file(filepath);
            if (the_file != null)
            {
                // Allocate 1541 RAM
                ram = new BytePtr(0x800);
                unsafe
                {
                    bam = (BAM *)(ram.Pointer + 0x700);
                }
                Reset();
                Ready = true;
            }
        }
示例#4
0
        public FSDrive(IEC iec, string filepath)
            : base(iec)
        {
            orig_dir_path = filepath;
            dir_path = String.Empty;

            if (change_dir(orig_dir_path))
            {
                for (int i = 0; i < 16; i++)
                    file[i] = null;

                Reset();

                Ready = true;
            }
        }
示例#5
0
        public FSDrive(IEC iec, string filepath)
            : base(iec)
        {
            orig_dir_path = filepath;
            dir_path      = String.Empty;

            if (change_dir(orig_dir_path))
            {
                for (int i = 0; i < 16; i++)
                {
                    file[i] = null;
                }

                Reset();

                Ready = true;
            }
        }
示例#6
0
        Stream the_file; // File pointer for .d64 file

        #endregion Fields

        #region Constructors

        public D64Drive(IEC iec, string filepath)
            : base(iec)
        {
            the_file = null;
            ram = null;

            Ready = false;
            orig_d64_name = filepath;

            for (int i = 0; i < chan_mode.Length - 1; i++)
            {
                chan_mode[i] = ChannelMode.CHMOD_FREE;
            }
            chan_mode[15] = ChannelMode.CHMOD_COMMAND;

            // Open .d64 file
            open_close_d64_file(filepath);
            if (the_file != null)
            {

                // Allocate 1541 RAM
                ram = new BytePtr(0x800);
                unsafe
                {
                    bam = (BAM*)(ram.Pointer + 0x700);
                }
                Reset();
                Ready = true;
            }
        }
示例#7
0
 public T64Drive(IEC iec, string filepath)
     : base(iec)
 {
 }
示例#8
0
 public T64Drive(IEC iec, string filepath)
     : base(iec)
 {
 }