Example #1
0
        private int BGColor(int raw)
        {
            byte BPG = ppu.ReadByte(0xff47);

            switch (raw)
            {
            case 0:
                return(BPG & 0x3);

            case 1:
                return((BPG >> 2) & 0x3);

            case 2:
                return((BPG >> 4) & 0x3);

            case 3:
                return((BPG >> 6) & 0x3);
            }
            return(3);
        }