Ilya Bakulin
68ccbd5974
Added new flags -restore_old_data_from_ff and -force
...
-restore_old_data_from_ff allows to read the old data in blocks
modified by a patch from the fullflash file.
Comes handy if applying patch was not clean.
-force allows to force applying/ reverting patch if the old data
doesn't match the data in patch.
2023-10-06 13:11:29 +02:00
Ilya Bakulin
9e1d5854e9
Parse one-line strings in data fields
2023-10-05 00:01:41 +02:00
Ilya Bakulin
67f10bad31
Added a method FromString() to create PatchReader
2023-10-04 22:51:32 +02:00
Ilya Bakulin
2394ce98a3
Actually apply a parsed offset when calculating address
2023-10-04 18:19:49 +02:00
Ilya Bakulin
abdace798f
Put line number in all error messages
2023-09-26 18:18:44 +02:00
Ilya Bakulin
2bbc359776
Permit old data being longer than new data
2023-09-26 18:04:18 +02:00
User Kibab
df0d1848d2
Refactor decimal numbers code and add tests
2023-09-26 17:43:48 +02:00
User Kibab
c5389065c2
Parse integer numbers in data (modifier 0i)
2023-09-26 15:34:00 +02:00
Ilya Bakulin
798ba6aabe
Added Size() and EndAddr() convenience methods
2023-09-25 19:45:24 +02:00
User Kibab
94f8e97b9c
Added support for C-style multi-line comments
2023-09-25 13:44:26 +02:00
Ilya Bakulin
da1d0f3a3b
Removed excessive logging
2023-09-24 10:50:40 +02:00
Ilya Bakulin
3d70b24fc5
Fix handling a special case with an addr offset
...
If a user sets an addr offset at the beginning of the patch
and uses zero address, the parser
used to generate an 'index out of bounds' error.
2023-09-23 22:43:36 +02:00
Ilya Bakulin
c049015c7c
Process data separated by commas
2023-09-23 22:06:25 +02:00
Ilya Bakulin
2c8ca2498c
Always treat address offset as hexadecimal value
2023-09-23 21:31:11 +02:00
Ilya Bakulin
b74dac7add
Added processing of address offsets
2023-09-23 21:17:54 +02:00
Ilya Bakulin
054b4fda14
Recognize pragma "old_equal_ff"
2023-09-23 20:42:31 +02:00
Ilya Bakulin
7820a4d41d
Treat the lines describing one big chunk properly
2023-09-23 19:14:57 +02:00
Ilya Bakulin
90eb84397f
Added SiePatcher, a patcher for *nix systems
2023-09-23 17:45:12 +02:00