-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Test cases and creation of correct R43 SMC.BIN for testing
- Fixing SMC.BIN header for compatible ROM.BINs
- Loading branch information
1 parent
634481b
commit a0b0223
Showing
18 changed files
with
8,997 additions
and
8,043 deletions.
There are no files selected for viewing
Binary file not shown.
File renamed without changes.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
from intelhex import IntelHex | ||
|
||
src1 = IntelHex() | ||
src1. | ||
src1.fromfile("C:/Users/svenv/OneDrive/Documents/GitHub/x16-flash/python/x16-smc-r45.1.hex", format="hex") | ||
src1.tofile("r45.1.preview.bin", format="bin") | ||
|
||
src1.fromfile("C:/Users/svenv/OneDrive/Documents/GitHub/x16-flash/python/x16-smc-header.hex", format="hex") | ||
src1.tofile("python/SMC-HEADER.BIN", format="bin") | ||
|
||
src2 = IntelHex() | ||
|
||
src2.fromfile("C:/Users/svenv/OneDrive/Documents/GitHub/x16-flash/python/x16-smc-r45.1.0.hex", format="hex") | ||
src2.tofile("python/SMC-R45.1.0.BIN", format="bin") | ||
|
||
# Try reading the file in binary mode and writing it back in binary | ||
# mode. By default it reads files in text mode | ||
input1 = open('python/SMC-HEADER.BIN', 'rb').read() | ||
input2 = open('python/SMC-R45.1.0.bin', 'rb').read() | ||
|
||
input1 += input2 | ||
|
||
with open('python/SMC.BIN', 'wb') as fp: | ||
fp.write(input1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:100000002B2C000000000000000000000000000099 | ||
:1000100000000000000000000000000000000000E0 | ||
:00000001FF |
931 changes: 464 additions & 467 deletions
931
python/x16-smc-r45.1.hex → python/x16-smc-r45.1.0.hex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.