if (!hm.writeToFreeASMLink(compPal, palPointerArray[i], palLen[i], palCompLen))
if (!hm.writeToFreeASMLink(compPal, palPointerArray[i], (i == 2 && same ? 0 : palLen[i]), palCompLen, true))
        private boolean writePalettes()        {            /* COMPRESS PALETTES */            for (int i = 0; i < NUM_PALETTES; i++)            {                byte[] udataPal = new byte[512];                HackModule.writePalette(udataPal, 0, palette[i]);                byte[] compPal;                int palCompLen = comp(udataPal, compPal = new byte[600], 512);                if (!hm.writeToFreeASMLink(compPal, palPointerArray[i],                    palLen[i], palCompLen))                    return false;                System.out                    .println("Wrote "                        + (palLen[i] = palCompLen)                        + " bytes of the Gas Station #"                        + i                        + " palette at "                        + Integer.toHexString(palPointer[i] = hm.rom                            .readRegAsmPointer(palPointerArray[i])) + " to "                        + Integer.toHexString(palPointer[i] + palCompLen - 1)                        + ".");            }            return true;        }