Exemplo n.º 1
0
        public void updateCRC16()
        {
            byte[] contents     = getContents();
            byte[] checksumArea = new byte[0x820];
            Array.Copy(contents, 0x20, checksumArea, 0, 0x820);
            ushort checksum = ROM.CalcCRC16(checksumArea);

            setUshortAt(2, checksum);
        }
Exemplo n.º 2
0
        public void UpdateCRC16()
        {
            byte[] contents = getContents();
            byte[] header   = new byte[0x15E];
            Array.Copy(contents, 0, header, 0, 0x15E);

            ushort crc16 = ROM.CalcCRC16(header);

            setUshortAt(0x15E, crc16);
        }
Exemplo n.º 3
0
        public void updateCRC16()
        {
            updatingCrc = true;
            byte[] contents     = getContents();
            byte[] checksumArea = new byte[0x820];
            Array.Copy(contents, 0x20, checksumArea, 0, 0x820);
            ushort checksum = ROM.CalcCRC16(checksumArea);

            setUshortAt(2, checksum);
            Console.Out.WriteLine("UPDATING BANNER CHECKSUM!!!!");
            updatingCrc = false;
        }