mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-23 06:31:28 +00:00
Slight tweak to PPC Macros
This commit is contained in:
parent
fafbd9a04f
commit
505b5e6468
@ -30,12 +30,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <cmath>
|
||||
#include <cfloat>
|
||||
|
||||
// Used for FP calcs
|
||||
|
||||
// Storage and register retrieval functions for the floating point functions.
|
||||
|
||||
#define GET_FPR(reg) ppc_state.fpr[(reg)].dbl64_r
|
||||
|
||||
double fp_return_double(uint32_t reg) {
|
||||
return ppc_state.fpr[reg].dbl64_r;
|
||||
}
|
||||
|
@ -112,6 +112,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
int reg_d = (opcode >> 21) & 31; \
|
||||
int reg_b = (opcode >> 11) & 31;
|
||||
|
||||
#define GET_FPR(reg) ppc_state.fpr[(reg)].dbl64_r
|
||||
|
||||
#define ppc_grab_regsfpdiab(opcode) \
|
||||
int reg_d = (opcode >> 21) & 31; \
|
||||
int reg_a = (opcode >> 16) & 31; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user