Skip to content

Commit

Permalink
Merge pull request #101 from Decompollaborate/develop
Browse files Browse the repository at this point in the history
1.11.4
  • Loading branch information
AngheloAlf authored Feb 20, 2023
2 parents f51df2a + 45d54b6 commit 49e26c9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-FileCopyrightText: © 2022-2023 Decompollaborate
# SPDX-License-Identifier: MIT

[project]
name = "spimdisasm"
# Version should be synced with spimdisasm/__init__.py
version = "1.11.3"
version = "1.11.4"
description = "MIPS disassembler"
# license = "MIT"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions spimdisasm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python3

# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-FileCopyrightText: © 2022-2023 Decompollaborate
# SPDX-License-Identifier: MIT

from __future__ import annotations

__version_info__ = (1, 11, 3)
__version_info__ = (1, 11, 4)
__version__ = ".".join(map(str, __version_info__))
__author__ = "Decompollaborate"

Expand Down
7 changes: 5 additions & 2 deletions spimdisasm/frontendCommon/FrontendUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ def writeFunctionInfoCsv(processedFiles: dict[common.FileSectionType, list[mips.
csvPath.parent.mkdir(parents=True, exist_ok=True)

with csvPath.open("w") as f:
f.write("address,name,file,length,hash of top bits of words,functions called by this function,non-jal function calls,referenced functions\n")
f.write("vrom,address,name,file,length,hash of top bits of words,functions called by this function,non-jal function calls,referenced functions\n")
for textFile in processedFiles.get(common.FileSectionType.Text, []):
for func in textFile.symbolList:
assert isinstance(func, mips.symbols.SymbolFunction)
f.write(f"0x{func.vram:08X},{func.getName()},{textFile.getName()},0x{func.sizew*4:X},")
f.write(f"0x{func.vromStart:06X},0x{func.vram:08X},{func.getName()},{textFile.getName()},0x{func.sizew*4:X},")

bitswordlist = []
for instr in func.instructions:
Expand Down Expand Up @@ -220,6 +220,9 @@ def writeFunctionInfoCsv(processedFiles: dict[common.FileSectionType, list[mips.

f.write("\n")

# For adding new lines at the end of each file
# f.write("\n")


def cliMain():
parser = argparse.ArgumentParser(description="Interface to call any of the spimdisasm's CLI utilities", prog="spimdisasm")
Expand Down
4 changes: 2 additions & 2 deletions spimdisasm/singleFileDisasm/SingleFileDisasmInternals.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def processArguments(args: argparse.Namespace) -> int:
vromEnd = int(args.end, 16)
if vromEnd == 0xFFFFFF:
vromEnd = len(array_of_bytes)
vromDataStart = None if args.data_start is None else int(args.data_start)
vromDataEnd = None if args.data_end is None else int(args.data_end)
vromDataStart = None if args.data_start is None else int(args.data_start, 16)
vromDataEnd = None if args.data_end is None else int(args.data_end, 16)
fileVram = int(args.vram, 16)
splits = getSplits(fileSplitsPath, vromStart, vromEnd, fileVram, vromDataStart, vromDataEnd, args.disasm_rsp)

Expand Down

0 comments on commit 49e26c9

Please sign in to comment.