diff options
| author | 2014-05-28 21:20:00 -0400 | |
|---|---|---|
| committer | 2014-05-28 21:20:00 -0400 | |
| commit | 9fd5d6c7d81053e05b3b4218bdee2575cd1f3fd0 (patch) | |
| tree | dfaf077de27b4061756887b2e16359ed2be2401d /src | |
| parent | lcd: moved kFrameTicks to lcd.h for use in other modules (diff) | |
| download | yuzu-9fd5d6c7d81053e05b3b4218bdee2575cd1f3fd0.tar.gz yuzu-9fd5d6c7d81053e05b3b4218bdee2575cd1f3fd0.tar.xz yuzu-9fd5d6c7d81053e05b3b4218bdee2575cd1f3fd0.zip | |
hle: removed PARAM64 macro (this was incorrect), made several bug fixes accordingly for decoding U64 function parameters
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 4 | ||||
| -rw-r--r-- | src/core/hle/hle.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 24cc74fc6..d31fab298 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -750,11 +750,11 @@ template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){ | |||
| 750 | } | 750 | } |
| 751 | 751 | ||
| 752 | template<int func(u32, s64)> void WrapI_US64() { | 752 | template<int func(u32, s64)> void WrapI_US64() { |
| 753 | int retval = func(PARAM(0), PARAM64(1)); | 753 | int retval = func(PARAM(0), ((PARAM(3) << 32) | PARAM(2))); |
| 754 | RETURN(retval); | 754 | RETURN(retval); |
| 755 | } | 755 | } |
| 756 | 756 | ||
| 757 | template<int func(void*, void*, u32, u32, s64)> void WrapI_VVUUS64() { | 757 | template<int func(void*, void*, u32, u32, s64)> void WrapI_VVUUS64() { |
| 758 | int retval = func(Memory::GetPointer(PARAM(0)), Memory::GetPointer(PARAM(1)), PARAM(2), PARAM(3), PARAM(4)); | 758 | int retval = func(Memory::GetPointer(PARAM(5)), Memory::GetPointer(PARAM(1)), PARAM(2), PARAM(3), ((PARAM(4) << 32) | PARAM(0))); |
| 759 | RETURN(retval); | 759 | RETURN(retval); |
| 760 | } | 760 | } |
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index c075147c3..c31e273b5 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 11 | 11 | ||
| 12 | #define PARAM(n) Core::g_app_core->GetReg(n) | 12 | #define PARAM(n) Core::g_app_core->GetReg(n) |
| 13 | #define PARAM64(n) (Core::g_app_core->GetReg(n) | ((u64)Core::g_app_core->GetReg(n + 1) << 32)) | ||
| 14 | #define RETURN(n) Core::g_app_core->SetReg(0, n) | 13 | #define RETURN(n) Core::g_app_core->SetReg(0, n) |
| 15 | 14 | ||
| 16 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 15 | //////////////////////////////////////////////////////////////////////////////////////////////////// |