-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from Decompollaborate/develop
1.12.0
- Loading branch information
Showing
28 changed files
with
521 additions
and
12 deletions.
There are no files selected for viewing
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 @@ | ||
blank_issues_enabled: true |
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,45 @@ | ||
name: Feature suggestion | ||
description: Suggest a new feature (cool new ideas are interesting to hear about) | ||
title: "[Suggestion]: " | ||
labels: ["enhancement"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for suggesting a new feature! | ||
- type: textarea | ||
id: the-feature | ||
attributes: | ||
label: Explain the feature | ||
description: What does this new feature do? How it would be done? | ||
placeholder: | | ||
- Print capybara ascii art on each run | ||
- Introduce achievements | ||
- Play the Oof sound on errors | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: advantage | ||
attributes: | ||
label: Advantage | ||
description: What are the pros of this new feature? | ||
placeholder: | | ||
- XYZ is a common case. | ||
- The produced assembly would be more correct because... | ||
- Would fix Windows builds. | ||
- type: textarea | ||
id: disadvantage | ||
attributes: | ||
label: Disadvantage | ||
description: What could be any drawback of the new feature? | ||
placeholder: | | ||
- Slower runtime. | ||
- Harder to debug. | ||
- Would fix Windows builds. | ||
- type: textarea | ||
id: example | ||
attributes: | ||
label: Example(s) | ||
description: Include examples on how this feature would look like or related info. | ||
validations: | ||
required: true |
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,78 @@ | ||
name: Frug Report | ||
description: File a frug report (because something isn't working as it should) | ||
title: "[Frug]: " | ||
labels: ["frug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for filing a frug report! | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Explain the problem. | ||
description: What happened? What did you expect to happen? | ||
placeholder: What went wrong? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproducer | ||
attributes: | ||
label: Reproducer | ||
description: Please provide instructions to reproduce the problem. | ||
placeholder: | | ||
Use the following file (attach it please) and run IJK with parameters ABC. | ||
Clone the repo on github.com/example/example and do XYZ | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: instruction-set-flavor | ||
attributes: | ||
label: Is this issue related to an specific MIPS extension? | ||
description: rabbitizer supports many MIPS flavors, which one were you using specifically? | ||
options: | ||
- I don't know / Does not apply | ||
- Normal MIPS CPU (without any extensions) | ||
- RSP (Reality Signal Processor, the Nintendo 64 vector coprocessor) | ||
- R3000 GTE (Geometry Transformation Engine, a Sony PlayStation 1 extension) | ||
- R4000 ALLEGREX (A Sony PlayStation Portable extension) | ||
- R5900 EE (Emotion Engine, A Sony PlayStation 2 extension) | ||
default: 0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: rabbitizer-version | ||
attributes: | ||
label: rabbitizer version | ||
description: What version of rabbitizer are you running? (`pip show rabbitizer` if installed via `pip` or check `include/common/RabbitizerVersion.h` if used as a C or C++ library) | ||
validations: | ||
required: true | ||
- type: input | ||
id: splat-spimdisasm-version | ||
attributes: | ||
label: "Optional: splat/spimdisasm version" | ||
description: Were you running rabbitizer through splat or spimdisasm? What are their versions? | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: other-version | ||
attributes: | ||
label: "Optional: Version of other stuff" | ||
description: Here you can put the version of whatever other software you think may be relevant, like Python, rabbitizer, binutils, OS, etc. | ||
placeholder: | | ||
- Python: 4.18 | ||
- clang: 17.½ | ||
- binutils: 2.π | ||
- Wine on WSL2 on Windows 11 on VirtualBox on OpenBSD on Minecraft command blocks. | ||
- Etc | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: user-comments | ||
attributes: | ||
label: "Extra comments?" | ||
description: Here you can mention any other additional comments or info you may want to say. | ||
placeholder: | | ||
There's no problem leaving this. | ||
validations: | ||
required: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
[package] | ||
name = "rabbitizer" | ||
# Version should be synced with include/common/RabbitizerVersion.h | ||
version = "1.11.2" | ||
version = "1.12.0" | ||
edition = "2021" | ||
authors = ["Anghelo Carvajal <[email protected]>"] | ||
description = "MIPS instruction decoder" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* SPDX-FileCopyrightText: © 2024 Decompollaborate */ | ||
/* SPDX-License-Identifier: MIT */ | ||
|
||
#ifndef RABBITIZER_JR_REG_DATA_HPP | ||
#define RABBITIZER_JR_REG_DATA_HPP | ||
#pragma once | ||
|
||
#include "analysis/RabbitizerJrRegData.h" | ||
|
||
namespace rabbitizer { | ||
class JrRegData { | ||
protected: | ||
RabbitizerJrRegData regData; | ||
|
||
public: | ||
JrRegData(); | ||
JrRegData(const RabbitizerJrRegData &other); | ||
|
||
/** | ||
* Returns a pointer to the inner RabbitizerJrRegData. | ||
* It is recommended to not mess with it unless you know what you are doing. | ||
*/ | ||
RabbitizerJrRegData *getCPtr(); | ||
const RabbitizerJrRegData *getCPtr() const; | ||
|
||
bool hasInfo() const; | ||
|
||
int offset() const; | ||
uint32_t address() const; | ||
bool checkedForBranching() const; | ||
int lastBranchOffset() const; | ||
}; | ||
} | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* SPDX-FileCopyrightText: © 2024 Decompollaborate */ | ||
/* SPDX-License-Identifier: MIT */ | ||
|
||
#include "analysis/JrRegData.hpp" | ||
|
||
using namespace rabbitizer; | ||
|
||
JrRegData::JrRegData() { | ||
RabbitizerJrRegData_init(&this->regData); | ||
} | ||
JrRegData::JrRegData(const RabbitizerJrRegData &other) { | ||
RabbitizerJrRegData_copy(&this->regData, &other); | ||
} | ||
|
||
RabbitizerJrRegData *JrRegData::getCPtr() { | ||
return &this->regData; | ||
} | ||
const RabbitizerJrRegData *JrRegData::getCPtr() const { | ||
return &this->regData; | ||
} | ||
|
||
bool JrRegData::hasInfo() const { | ||
return this->regData.hasInfo; | ||
} | ||
|
||
int JrRegData::offset() const { | ||
return this->regData.offset; | ||
} | ||
uint32_t JrRegData::address() const { | ||
return this->regData.address; | ||
} | ||
bool JrRegData::checkedForBranching() const { | ||
return this->regData.checkedForBranching; | ||
} | ||
int JrRegData::lastBranchOffset() const { | ||
return this->regData.lastBranchOffset; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* SPDX-FileCopyrightText: © 2024 Decompollaborate */ | ||
/* SPDX-License-Identifier: MIT */ | ||
|
||
#ifndef RABBITIZER_JR_REG_DATA_H | ||
#define RABBITIZER_JR_REG_DATA_H | ||
#pragma once | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
#include "common/Utils.h" | ||
|
||
#include "RabbitizerTrackedRegisterState.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
|
||
typedef struct RabbitizerJrRegData { | ||
bool hasInfo; | ||
|
||
int offset; | ||
uint32_t address; | ||
bool checkedForBranching; | ||
int lastBranchOffset; | ||
} RabbitizerJrRegData; | ||
|
||
|
||
NON_NULL(1) | ||
void RabbitizerJrRegData_init(RabbitizerJrRegData *self); | ||
NON_NULL(1, 2) | ||
void RabbitizerJrRegData_copy(RabbitizerJrRegData *self, const RabbitizerJrRegData *other); | ||
|
||
NON_NULL(1, 2) | ||
void RabbitizerJrRegData_initFromRegisterState(RabbitizerJrRegData *self, const RabbitizerTrackedRegisterState *state); | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
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.