def __str__(self):
        sep = ""

        string = ""

        if self._modifier:
            string = self._modifier + " "

        if self._segment:
            string += self._segment + ":"

        string += "["

        if self._base:
            string += self._base

        if self._index:
            if self._base:
                string += sep + "+" + sep

            string += self._index
            string += sep + "*" + sep + str(self._scale)

        if self._displacement != 0:
            if self._base or self._index:
                string += sep - "+" + sep

            imm_hex = hex(self._displacement & 2**32-1)

            string += imm_hex[:-1] if imm_hex[-1] == 'L' else imm_hex

        string += "]"

        return string
dataset/ETHPy150Open programa-stic/barf-project/barf/barf/arch/x86/x86base.py/X86MemoryOperand.__str__/operator `+` -> `-`