Skip to content

Commit

Permalink
Merge pull request #162 from Decompollaborate/develop
Browse files Browse the repository at this point in the history
1.25.0
  • Loading branch information
AngheloAlf authored Apr 22, 2024
2 parents 03a522b + 57ec900 commit b927012
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.24.3] - 2024-04-24
## [1.25.0] - 2024-04-22

### Added

- R4000 ALLEGREX instruction set compatibility
- Used by the PlayStation Portable (PSP) CPU.
- `rabbitizer` 1.10.0 or above is required.

## [1.24.3] - 2024-04-04

### Changed

Expand Down Expand Up @@ -1499,6 +1507,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Version 1.0.0

[unreleased]: https://github.com/Decompollaborate/spimdisasm/compare/master...develop
[1.25.0]: https://github.com/Decompollaborate/spimdisasm/compare/1.24.3...1.25.0
[1.24.3]: https://github.com/Decompollaborate/spimdisasm/compare/1.24.2...1.24.3
[1.24.2]: https://github.com/Decompollaborate/spimdisasm/compare/1.24.1...1.24.2
[1.24.1]: https://github.com/Decompollaborate/spimdisasm/compare/1.24.0...1.24.1
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ MIPS platforms too.
- RSP decoding has been tested to build back to matching assemblies with
[armips](https://github.com/Kingcom/armips/).
- PS1's R3000 GTE instruction set support.
- PSP's R4000 ALLEGREX instruction set support.
- PS2's R5900 EE instruction set support.
- (Experimental) Same VRAM overlay support.
- Overlays which are able to reference symbols from other overlays in other
Expand All @@ -68,7 +69,7 @@ If you use a `requirements.txt` file in your repository, then you can add
this library with the following line:

```txt
spimdisasm>=1.24.3,<2.0.0
spimdisasm>=1.25.0,<2.0.0
```

### Development version
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[project]
name = "spimdisasm"
# Version should be synced with spimdisasm/__init__.py
version = "1.24.3"
version = "1.25.0"
description = "MIPS disassembler"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rabbitizer>=1.9.4,<2.0.0
rabbitizer>=1.10.0,<2.0.0
2 changes: 1 addition & 1 deletion spimdisasm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from __future__ import annotations

__version_info__: tuple[int, int, int] = (1, 24, 3)
__version_info__: tuple[int, int, int] = (1, 25, 0)
__version__ = ".".join(map(str, __version_info__))# + ".dev0"
__author__ = "Decompollaborate"

Expand Down
2 changes: 1 addition & 1 deletion spimdisasm/disasmdis/DisasmdisInternals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def addOptionsToParser(parser: argparse.ArgumentParser) -> argparse.ArgumentPars
parser.add_argument("input", help="Hex words to be disassembled. Leading '0x' must be omitted", nargs='+')

parser.add_argument("--endian", help="Set the endianness of input files. Defaults to 'big'", choices=["big", "little", "middle"], default="big")
parser.add_argument("--instr-category", help="The instruction category to use when disassembling every passed instruction. Defaults to 'cpu'", choices=["cpu", "rsp", "r3000gte", "r5900"])
parser.add_argument("--instr-category", help="The instruction category to use when disassembling every passed instruction. Defaults to 'cpu'", choices=["cpu", "rsp", "r3000gte", "r4000allegrex", "r5900"])
parser.add_argument("--pseudos", help="Enables all pseudo-instructions supported by rabbitizer", action="store_true")

return parser
Expand Down
2 changes: 1 addition & 1 deletion spimdisasm/elfObjDisasm/ElfObjDisasmInternals.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def addOptionsToParser(parser: argparse.ArgumentParser) -> argparse.ArgumentPars

parser.add_argument("--split-functions", help="Enables the function and rodata splitter. Expects a path to place the splited functions", metavar="PATH")

parser.add_argument("--instr-category", help="The instruction category to use when disassembling every passed instruction. Defaults to 'cpu'", choices=["cpu", "rsp", "r3000gte", "r5900"])
parser.add_argument("--instr-category", help="The instruction category to use when disassembling every passed instruction. Defaults to 'cpu'", choices=["cpu", "rsp", "r3000gte", "r4000allegrex", "r5900"])

parser.add_argument("--function-info", help="Specifies a path where to output a csvs sumary file of every analyzed function", metavar="PATH")

Expand Down
1 change: 1 addition & 0 deletions spimdisasm/frontendCommon/FrontendUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def getSplittedSections(context: common.Context, splits: common.FileSplitFormat,
"cpu": rabbitizer.InstrCategory.CPU,
"rsp": rabbitizer.InstrCategory.RSP,
"r3000gte": rabbitizer.InstrCategory.R3000GTE,
"r4000allegrex": rabbitizer.InstrCategory.R4000ALLEGREX,
"r5900": rabbitizer.InstrCategory.R5900,
}

Expand Down
2 changes: 1 addition & 1 deletion spimdisasm/singleFileDisasm/SingleFileDisasmInternals.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def addOptionsToParser(parser: argparse.ArgumentParser) -> argparse.ArgumentPars

parser.add_argument("--split-functions", help="Enables the function and rodata splitter. Expects a path to place the splited functions", metavar="PATH")

parser.add_argument("--instr-category", help="The instruction category to use when disassembling every passed instruction. Defaults to 'cpu'", choices=["cpu", "rsp", "r3000gte", "r5900"])
parser.add_argument("--instr-category", help="The instruction category to use when disassembling every passed instruction. Defaults to 'cpu'", choices=["cpu", "rsp", "r3000gte", "r4000allegrex", "r5900"])

parser.add_argument("--nuke-pointers", help="Use every technique available to remove pointers", action=common.Utils.BooleanOptionalAction)
parser.add_argument("--ignore-words", help="A space separated list of hex numbers. Any word differences which starts in any of the provided arguments will be ignored. Max value: FF. Only works when --nuke-pointers is passed", action="extend", nargs="+")
Expand Down

0 comments on commit b927012

Please sign in to comment.