示例#1
0
        public void SidReader_ReadRSIDV2_TrazDetails_Data()
        {
            SIDv2Reader sr = new SIDv2Reader(Path.Combine(resourceDir, "Traz.sid"));

            sr.ReadSidHeader();
            byte[] data = sr.ReadSidData(sr.Header.DataOffset);
        }
示例#2
0
        public void SidReader_ReadRSIDV2_Version()
        {
            SIDv2Reader sr = new SIDv2Reader(Path.Combine(resourceDir, "FileSignature_Emulation_RSIDFile.sid"));

            sr.ReadSidHeader();
            Assert.AreEqual(0x02, sr.Header.Version);
        }
示例#3
0
        public void SidReader_ReadPSIDV2_DataOffset()
        {
            SIDv2Reader sr = new SIDv2Reader(Path.Combine(resourceDir, "FileSignature_Emulation_PSIDFile.sid"));

            sr.ReadSidHeader();
            Assert.AreEqual(0x7C, sr.Header.DataOffset);
        }
示例#4
0
        public void SidReader_ReadRSIDV2_TrazDetails_Flags()
        {
            SIDv2Reader sr = new SIDv2Reader(Path.Combine(resourceDir, "Traz.sid"));

            sr.ReadSidHeader();
            Assert.AreEqual(0x02, sr.Header.Version);
            Assert.AreEqual(SIDVersion.MOS6581, sr.Header.SIDVersion);
            Assert.AreEqual(VideoStandardClock.PAL, sr.Header.VideoStandardClock);
        }