コード例 #1
0
ファイル: MOS6581.cs プロジェクト: rudzen/sharp-c64
        public MOS6581(C64 c64)
        {
            the_c64      = c64;
            the_renderer = null;
            for (int i = 0; i < regs.Length; i++)
            {
                regs[i] = 0;
            }

            // Open the renderer
            open_close_renderer(SIDType.SIDTYPE_NONE, GlobalPrefs.ThePrefs.SIDType);
        }
コード例 #2
0
ファイル: MOS6502_1541.cs プロジェクト: archer87pl/sharp-c64
        MOS6526_2 _TheCIA2; // Pointer to C64 CIA 2

        #endregion Fields

        #region Constructors

        public MOS6502_1541(C64 c64, Job1541 job, C64Display disp, byte[] Ram, byte[] Rom)
        {
            the_c64 = c64;
            the_job = job;
            the_display = disp;
            ram = Ram;
            rom = Rom;

            a = x = y = 0;
            sp = 0xff;
            n_flag = z_flag = 0;
            v_flag = d_flag = c_flag = false;
            i_flag = true;

            via1_t1c = via1_t1l = via1_t2c = via1_t2l = 0;
            via1_sr = 0;
            via2_t1c = via2_t1l = via2_t2c = via2_t2l = 0;
            via2_sr = 0;

            first_irq_cycle = 0;
            Idle = false;
        }
コード例 #3
0
ファイル: MOS6510.cs プロジェクト: rudzen/sharp-c64
        public MOS6510(C64 c64, byte[] ram, byte[] basic_rom, byte[] kernel_rom, byte[] char_rom, byte[] color_ram)
        {
            TheC64          = c64;
            this.ram        = ram;
            this.basic_rom  = basic_rom;
            this.kernel_rom = kernel_rom;
            this.char_rom   = char_rom;
            this.color_ram  = color_ram;

            a  = x = y = 0;
            sp = 0xff;

            n_flag = z_flag = 0;
            v_flag = c_flag = d_flag = b_flag = i_flag = false;

            dfff_byte       = 0x55;
            BALow           = false;
            first_irq_cycle = first_nmi_cycle = 0;
#if DEBUG_INSTRUCTIONS
            debugLogger = new DebugLog(this, false);
#endif
        }
コード例 #4
0
ファイル: MOS6502_1541.cs プロジェクト: rudzen/sharp-c64
        const bool BALow = false;       // used for the EmulateCycle.cs file to ignore this condition
        #endregion

        #region public methods

        public MOS6502_1541(C64 c64, Job1541 job, C64Display disp, byte[] Ram, byte[] Rom)
        {
            the_c64     = c64;
            the_job     = job;
            the_display = disp;
            ram         = Ram;
            rom         = Rom;

            a      = x = y = 0;
            sp     = 0xff;
            n_flag = z_flag = 0;
            v_flag = d_flag = c_flag = false;
            i_flag = true;

            via1_t1c = via1_t1l = via1_t2c = via1_t2l = 0;
            via1_sr  = 0;
            via2_t1c = via2_t1l = via2_t2c = via2_t2l = 0;
            via2_sr  = 0;

            first_irq_cycle = 0;
            Idle            = false;
        }
コード例 #5
0
 public Frodo()
 {
     _TheC64 = new C64();
     _TheC64.Initialize();
 }
コード例 #6
0
ファイル: MOS6510.cs プロジェクト: archer87pl/sharp-c64
        public MOS6510(C64 c64, byte[] ram, byte[] basic_rom, byte[] kernel_rom, byte[] char_rom, byte[] color_ram)
        {
            TheC64 = c64;
            this.ram = ram;
            this.basic_rom = basic_rom;
            this.kernel_rom = kernel_rom;
            this.char_rom = char_rom;
            this.color_ram = color_ram;

            a = x = y = 0;
            sp = 0xff;

            n_flag = z_flag = 0;
            v_flag = c_flag = d_flag = b_flag = i_flag = false;

            dfff_byte = 0x55;
            BALow = false;
            first_irq_cycle = first_nmi_cycle = 0;
            #if DEBUG_INSTRUCTIONS
            debugLogger = new DebugLog(this, false);
            #endif
        }
コード例 #7
0
ファイル: C64Display.cs プロジェクト: rudzen/sharp-c64
 public C64Display(C64 c64)
 {
     _TheC64 = c64;
 }
コード例 #8
0
ファイル: Frodo.cs プロジェクト: archer87pl/sharp-c64
 public Frodo()
 {
     _TheC64 = new C64();
     _TheC64.Initialize();
 }