Add MIT license and some help
This commit is contained in:
parent
9159747352
commit
1efd8ef07e
|
@ -7,3 +7,10 @@ These patches depend on the `tbxi` library. Install and use it like this:
|
||||||
git clone https://github.com/elliotnunn/tbxi-patches.git
|
git clone https://github.com/elliotnunn/tbxi-patches.git
|
||||||
|
|
||||||
tbxi-patches/macmini.py /path/to/MacOSROM -o ~/mac-mini-rom.hqx
|
tbxi-patches/macmini.py /path/to/MacOSROM -o ~/mac-mini-rom.hqx
|
||||||
|
|
||||||
|
|
||||||
|
## Useful scripts
|
||||||
|
|
||||||
|
Included are the simple PowerPC assembler `ppcasm.py` and the Preferred
|
||||||
|
Executable Format manipulator `cfmtool.py`. Feel free to include them in your
|
||||||
|
own projects.
|
||||||
|
|
21
cfmtool.py
21
cfmtool.py
|
@ -1,5 +1,26 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
# Copyright (c) 2019 Elliot Nunn
|
||||||
|
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
# This is a single-file library for manipulating Preferred Executable Format files
|
# This is a single-file library for manipulating Preferred Executable Format files
|
||||||
# A command line-interface is available (just call cfmtool.py --help)
|
# A command line-interface is available (just call cfmtool.py --help)
|
||||||
|
|
||||||
|
|
25
ppcasm.py
25
ppcasm.py
|
@ -1,8 +1,29 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
# Copyright (c) 2019 Elliot Nunn
|
||||||
|
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
# Dead-simple PowerPC assembler
|
# Dead-simple PowerPC assembler
|
||||||
# Supports instructions and labels, and nothing else!
|
# Usable as a library or an executable
|
||||||
# Requires Python 3, and nothing else!
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in New Issue