38
41
def add_copy(self, start_byte, end_byte):
39
42
# The data stream allows >64kB in a copy, but to match the compiled
40
43
# code, we will also limit it to a 64kB copy
42
45
num_bytes = min(64*1024, end_byte - start_byte)
43
46
copy_bytes = encode_copy_instruction(start_byte, num_bytes)
44
47
self.out_lines.append(copy_bytes)