mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-23 06:31:28 +00:00
ppcfpopcodes: replace logical AND with AND where required.
This commit is contained in:
parent
fab6d829dc
commit
d4df3c7e07
@ -1016,14 +1016,14 @@ void ppc_mffsdot(){
|
||||
void ppc_mtfsf(){
|
||||
reg_b = (ppc_cur_instruction >> 11) & 31;
|
||||
uint32_t fm_mask = (ppc_cur_instruction >> 17) & 255;
|
||||
crm += ((fm_mask && 1) == 1)? 0xF0000000 : 0x00000000;
|
||||
crm += ((fm_mask && 2) == 1)? 0x0F000000 : 0x00000000;
|
||||
crm += ((fm_mask && 4) == 1)? 0x00F00000 : 0x00000000;
|
||||
crm += ((fm_mask && 8) == 1)? 0x000F0000 : 0x00000000;
|
||||
crm += ((fm_mask && 16) == 1)? 0x0000F000 : 0x00000000;
|
||||
crm += ((fm_mask && 32) == 1)? 0x00000F00 : 0x00000000;
|
||||
crm += ((fm_mask && 64) == 1)? 0x000000F0 : 0x00000000;
|
||||
crm += ((fm_mask && 128) == 1)? 0x0000000F : 0x00000000;
|
||||
crm += ((fm_mask & 1) == 1)? 0xF0000000 : 0x00000000;
|
||||
crm += ((fm_mask & 2) == 1)? 0x0F000000 : 0x00000000;
|
||||
crm += ((fm_mask & 4) == 1)? 0x00F00000 : 0x00000000;
|
||||
crm += ((fm_mask & 8) == 1)? 0x000F0000 : 0x00000000;
|
||||
crm += ((fm_mask & 16) == 1)? 0x0000F000 : 0x00000000;
|
||||
crm += ((fm_mask & 32) == 1)? 0x00000F00 : 0x00000000;
|
||||
crm += ((fm_mask & 64) == 1)? 0x000000F0 : 0x00000000;
|
||||
crm += ((fm_mask & 128) == 1)? 0x0000000F : 0x00000000;
|
||||
uint32_t quickfprval = (uint32_t)ppc_state.ppc_fpr[reg_b];
|
||||
ppc_state.ppc_fpscr = (quickfprval & crm) | (quickfprval & ~(crm));
|
||||
}
|
||||
@ -1031,14 +1031,14 @@ void ppc_mtfsf(){
|
||||
void ppc_mtfsfdot(){
|
||||
reg_b = (ppc_cur_instruction >> 11) & 31;
|
||||
uint32_t fm_mask = (ppc_cur_instruction >> 17) & 255;
|
||||
crm += ((fm_mask && 1) == 1)? 0xF0000000 : 0x00000000;
|
||||
crm += ((fm_mask && 2) == 1)? 0x0F000000 : 0x00000000;
|
||||
crm += ((fm_mask && 4) == 1)? 0x00F00000 : 0x00000000;
|
||||
crm += ((fm_mask && 8) == 1)? 0x000F0000 : 0x00000000;
|
||||
crm += ((fm_mask && 16) == 1)? 0x0000F000 : 0x00000000;
|
||||
crm += ((fm_mask && 32) == 1)? 0x00000F00 : 0x00000000;
|
||||
crm += ((fm_mask && 64) == 1)? 0x000000F0 : 0x00000000;
|
||||
crm += ((fm_mask && 128) == 1)? 0x0000000F : 0x00000000;
|
||||
crm += ((fm_mask & 1) == 1)? 0xF0000000 : 0x00000000;
|
||||
crm += ((fm_mask & 2) == 1)? 0x0F000000 : 0x00000000;
|
||||
crm += ((fm_mask & 4) == 1)? 0x00F00000 : 0x00000000;
|
||||
crm += ((fm_mask & 8) == 1)? 0x000F0000 : 0x00000000;
|
||||
crm += ((fm_mask & 16) == 1)? 0x0000F000 : 0x00000000;
|
||||
crm += ((fm_mask & 32) == 1)? 0x00000F00 : 0x00000000;
|
||||
crm += ((fm_mask & 64) == 1)? 0x000000F0 : 0x00000000;
|
||||
crm += ((fm_mask & 128) == 1)? 0x0000000F : 0x00000000;
|
||||
uint32_t quickfprval = (uint32_t)ppc_state.ppc_fpr[reg_b];
|
||||
ppc_state.ppc_fpscr = (quickfprval & crm) | (quickfprval & ~(crm));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user