Conditions | 2 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import struct |
||
6 | def compiler(object_dict: dict, output_path: str, mode: str): |
||
7 | header_list = list(object_dict.keys()) |
||
8 | header_list.sort() |
||
9 | for memory_location in header_list: |
||
10 | integer = int(object_dict[memory_location], 16) |
||
11 | object_dict[memory_location] = struct.pack('>i', integer) |
||
12 | output_writer(output_path, header_list, object_dict, mode) |
||
13 |