def setup(self): self.block = AllocatableBlock() self.block.from_list([0] * 0x100000) self.block.deallocate((self.NEW_DESTINATION_OFFSET, 0x0F58EE)) self.block[self.DOOR_OFFSET:self.DOOR_OFFSET + 3] = self.DOOR_DATA self.block.write_multi(self.DOOR_OFFSET + 3, self.DESTINATION_OFFSET & 0xffff, 2) self.block[self.DESTINATION_OFFSET:self.DESTINATION_OFFSET + len(self.DESTINATION_DATA)] = self.DESTINATION_DATA
def setup(self): self.block = AllocatableBlock()
def setup(self): self.block = AllocatableBlock() self.block.from_list([0] * 0x100000) self.block[self.DOOR_OFFSET:self.DOOR_OFFSET + 5] = self.DOOR_DATA