if(c < 1 || c > 15) { return; }
        public void setPaletteColor(int c, int palette, int subPalette,            Color col)        {            int bgrBlock;            bgrBlock = (col.getRed() >> 3) & 0x1f;            bgrBlock += ((col.getGreen() >> 3) & 0x1f) << 5;            bgrBlock += ((col.getBlue() >> 3) & 0x1f) << 10;            bgrBlock &= 0x7FFF;            hm.rom.write(this.palettes[palette].start + (32 * subPalette)                + (2 * c), bgrBlock, 2);        }