equal
deleted
inserted
replaced
580 if 0x1600 <= i <= 0x17FF or 0x1A00 <= i <= 0x1BFF: |
580 if 0x1600 <= i <= 0x17FF or 0x1A00 <= i <= 0x1BFF: |
581 for j,value in enumerate(self.Dictionary[i]): |
581 for j,value in enumerate(self.Dictionary[i]): |
582 if (value & mask) == model: |
582 if (value & mask) == model: |
583 self.Dictionary[i][j] = 0 |
583 self.Dictionary[i][j] = 0 |
584 |
584 |
|
585 def UpdateMapVariable(self, index, subIndex, size): |
|
586 model = index << 16 |
|
587 mask = 0xFFFF << 16 |
|
588 if subIndex: |
|
589 model += subIndex << 8 |
|
590 mask = 0xFF << 8 |
|
591 for i in self.Dictionary.iterkeys(): |
|
592 if 0x1600 <= i <= 0x17FF or 0x1A00 <= i <= 0x1BFF: |
|
593 for j,value in enumerate(self.Dictionary[i]): |
|
594 if (value & mask) == model: |
|
595 self.Dictionary[i][j] = model + size |
|
596 |
585 def RemoveLine(self, index, max, incr = 1): |
597 def RemoveLine(self, index, max, incr = 1): |
586 i = index |
598 i = index |
587 while i < max and self.IsEntry(i + incr): |
599 while i < max and self.IsEntry(i + incr): |
588 self.Dictionary[i] = self.Dictionary[i + incr] |
600 self.Dictionary[i] = self.Dictionary[i + incr] |
589 i += incr |
601 i += incr |