diff options
| author | bunnei <bunneidev@gmail.com> | 2018-11-21 14:32:21 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-11-22 00:58:00 -0500 |
| commit | 033b46253e6c7de33c5f8b51adb9d96ca606669d (patch) | |
| tree | af5ad3a30c91e3e769e55eb542f8455bed694ccf /src/video_core/macro_interpreter.h | |
| parent | bb175ab4309225ef64a4ce48f4c7d781cc35a3a6 (diff) | |
macro_interpreter: Implement AddWithCarry and SubtractWithBorrow.
- Used by Undertale.
Diffstat (limited to 'src/video_core/macro_interpreter.h')
| -rw-r--r-- | src/video_core/macro_interpreter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/macro_interpreter.h b/src/video_core/macro_interpreter.h index 62d1ce289..cde360288 100644 --- a/src/video_core/macro_interpreter.h +++ b/src/video_core/macro_interpreter.h @@ -117,7 +117,7 @@ private: bool Step(u32 offset, bool is_delay_slot); /// Calculates the result of an ALU operation. src_a OP src_b; - u32 GetALUResult(ALUOperation operation, u32 src_a, u32 src_b) const; + u32 GetALUResult(ALUOperation operation, u32 src_a, u32 src_b); /// Performs the result operation on the input result and stores it in the specified register /// (if necessary). @@ -165,5 +165,7 @@ private: std::vector<u32> parameters; /// Index of the next parameter that will be fetched by the 'parm' instruction. u32 next_parameter_index = 0; + + bool carry_flag{}; }; } // namespace Tegra |
