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); }
public Drive(IEC iec) { the_iec = iec; LED = DriveLEDState.DRVLED_OFF; Ready = false; set_error(ErrorCode1541.ERR_STARTUP); }
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; } }
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; } }
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; } }
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; } }
public T64Drive(IEC iec, string filepath) : base(iec) { }