Whole file
eerimoq/bincopy
The author described this change as “Fix: Implement Intel HEX record type 5, execution start address.”. It counts as a record because the check below fails on the code as it stood at fa2a1de0f and passes on f4146f893, with nothing else changed between the two runs.
Projecteerimoq/bincopy
Fix saved2016-06-22
Sharing licenceMIT · LICENSE
Change size+4 −3
What the code was meant to do, written into the code itself as a save note
Fix: Implement Intel HEX record type 5, execution start address.
The change
| 8 | 8 | import string | |
| 9 | 9 | ||
| 10 | 10 | __author__ = 'Erik Moqvist' | |
| 11 | - | __version__ = '2.1.3' | |
| 11 | + | __version__ = '2.1.4' | |
| 12 | 12 | ||
| 13 | 13 | DEFAULT_WORD_SIZE = 8 | |
| 14 | 14 | ||
| ⋯ | |||
| 387 | 387 | elif type_ == 1: | |
| 388 | 388 | pass | |
| 389 | 389 | elif type_ == 2: | |
| 390 | - | extmaximumed_segment_address = int(binascii.hexlify(data), 16) * 16 | |
| 390 | + | extmaximumed_segment_address = int(binascii.hexlify(data), | |
| 391 | + | 16) * 16 | |
| 391 | 392 | elif type_ == 3: | |
| 392 | 393 | pass | |
| 393 | 394 | elif type_ == 4: | |
| 394 | 395 | extmaximumed_linear_address = (int(binascii.hexlify(data), 16) | |
| 395 | 396 | * 65536) | |
| 396 | 397 | elif type_ == 5: | |
| 397 | - | print('warning: ignoring type 5') | |
| 398 | + | self.execution_start_address = int(binascii.hexlify(data), 16) | |
| 398 | 399 | else: | |
| 399 | 400 | raise Error('bad ihex type %d' % type_) | |
| 400 | 401 | ||
The check that tells the two apart
fail→pass·tests/test_bincopy.py::BinCopyTest::test_issue_4_2
Check file tests/test_bincopy.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itfa2a1de0f73da5eb5a1c659b1ba094e92483a77d
Broken version dated2016-06-02
Modulebincopy
Units changedFile
Fingerprintc757ec46d60f9473
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.