Beispiel #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="in_parent"></param>
        public Cassette(CoProcessor in_parent)
        {
            CoProc = in_parent;

            m_directory_file = new DirectoryFile(this);

            ReadBuffer     = new byte[InternalBufferSize];
            m_write_buffer = new byte[InternalBufferSize];
        }
Beispiel #2
0
        public void SetSettings(SDCartSettings in_settings)
        {
            Settings = in_settings;

            m_coproc = new CoProcessor(this);

            // load ROM
            Rom = new byte[MaxCartRomSize];
            for (int i = 0; i < Rom.Length; i++)
            {
                Rom[i] = 0xff;
            }

            LoadROMContent(@"d:\Projects\Retro\SDCART\CartProgram\sdcart.bin", 0);

            // initialize members
            m_map_register = 0;
        }