def to_asm(self):
        self.locked = True
        hexes = ["$%02X" % v for v in self.lst]
        asm = ''
        length = (len(hexes) / 16)
        if 16 % len(hexes):
            length += 1
        for i in range(length):
            asm += '  .db ' + ','.join(hexes[i * 16:i * 16 + 16]) + '\n'
        if len(asm) > 0:
            return asm
        return False
dataset/ETHPy150Open gutomaia/pyNES/pynes/nes_types.py/NesArray.to_asm/swapped operands of `%`