for (int i = 0; i < numPals; i++)
for (int i = 0; i < animPal.length; i++)
        private boolean writeAnimPalette()        {            int numPals = num == 0 ? NUM_ANIM_PALETTES : NUM_CHAR_ANIM_PALETTES;            byte[] udataPal = new byte[getAnimPaletteSize() * numPals * 2];            int palOff = 0;            /* COMPRESS ANIM PALETTE */            for (int i = 0; i < numPals; i++)            {                HackModule.writePalette(udataPal, palOff, animPal[i]);                palOff += animPal[i].length * 2;            }            byte[] compPal;            int palCompLen = comp(udataPal, compPal = new byte[600]);            if (!hm.writeToFreeASMLink(compPal, animPalPointerArray[num],                animPalLen, palCompLen))                return false;            System.out.println("Wrote "                + (animPalLen = palCompLen)                + " bytes of the title screen #"                + num                + " animated palette at "                + Integer.toHexString(animPalPointer = hm.rom                    .readRegAsmPointer(animPalPointerArray[num])) + " to "                + Integer.toHexString(animPalPointer + palCompLen - 1) + ".");            return true;        }