mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
More SPU Instructions: Floating point arithmetic
Implemented Floating/Double-floating arithmetic operations: Add, Substract and Multiply: FA, FS, FM, DFA, DFS, DFM respectively. * Fixed issue in the register editor: Wrong value displayed when reading 64 bit or 128 bit registers. * Fixed issue in the register editor: Error when writing to 128 bit registers.
This commit is contained in:
parent
9c6ae554fa
commit
db7e68d308
3 changed files with 44 additions and 20 deletions
|
@ -255,7 +255,7 @@ public:
|
|||
{
|
||||
long reg_index;
|
||||
reg.AfterFirst('[').RemoveLast().ToLong(®_index);
|
||||
if (reg.StartsWith("GPR")) return wxString::Format("%032x", GPR[reg_index]);
|
||||
if (reg.StartsWith("GPR")) return wxString::Format("%016llx%016llx", GPR[reg_index]._u64[1], GPR[reg_index]._u64[0]);
|
||||
}
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
@ -270,8 +270,8 @@ public:
|
|||
{
|
||||
unsigned long long reg_value0;
|
||||
unsigned long long reg_value1;
|
||||
if (!value.SubString(16,32).ToULongLong(®_value0, 16)) return false;
|
||||
if (!value.SubString(0,16).ToULongLong(®_value1, 16)) return false;
|
||||
if (!value.SubString(16,31).ToULongLong(®_value0, 16)) return false;
|
||||
if (!value.SubString(0,15).ToULongLong(®_value1, 16)) return false;
|
||||
GPR[reg_index]._u64[0] = (u64)reg_value0;
|
||||
GPR[reg_index]._u64[1] = (u64)reg_value1;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue