Make executables for ChonkPC
This is a WIP executable maker following the .exe
format from the ChonkPC documentation.
To get started, download the main.py file and place it into an empty directory. Create a new directory within with the name "executable". Place the binary generated by C-honky in there, and rename it to "CODE". Create a "CONF" file containing addresses for the CODE and DATA segments. Here's an example:
# file structure
╠ CODE
╠ CONF
╙ DATA
╙ image.out # filenames can only be up to 10 bytes long
CONF example:
CODE_AD=10000000
DATA_AD=100F0000
Makex depends on the rich
library to show pretty output. You can install it using:
pip3 install rich
To use Makex, just run the following command
python3 main.py executable/
Example output:
-----------------------
Found entity -> "image2.out"
Loaded entity ["image2.out"] - Size: 0x17e1 Addr: 0x100f0000
-----------------------
Found entity -> "image.out"
Loaded entity ["image.out"] - Size: 0x17e1 Addr: 0x100f17e1
-----------------------
Table size: 0x23
CODE_AD: 0x10000000
CODE_SZ: 0x74ed8
DATA_AD: 0x100f0000
DATA_SZ: 0x2fc2
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.