MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / disDaddDaddu

Function disDaddDaddu

pcsx2/DebugTools/DisR5900asm.cpp:1011–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009void SLTU( std::string& output ) { _sap("sltu\t%s, %s") disDestSource(DECODE_RD,DECODE_RS), GPR_REG[DECODE_RT]); }
1010
1011void disDaddDaddu( std::string& output, const char* name )
1012{
1013 int rd = DECODE_RD;
1014 int rs = DECODE_RS;
1015 int rt = DECODE_RT;
1016
1017 if (disSimplify && rs == 0)
1018 ssappendf(output,"dmove\t%s, %s",GPR_REG[DECODE_RD],GPR_REG[DECODE_RT]);
1019 else if (disSimplify && rt == 0)
1020 ssappendf(output,"dmove\t%s, %s",GPR_REG[DECODE_RD],GPR_REG[DECODE_RS]);
1021 else if (disSimplify && rd == rs)
1022 ssappendf(output, "%s\t%s, %s",name,GPR_REG[rd],GPR_REG[rt]);
1023 else if (disSimplify && rd == rt)
1024 ssappendf(output, "%s\t%s, %s",name,GPR_REG[rd],GPR_REG[rs]);
1025 else
1026 ssappendf(output, "%s\t%s, %s, %s",name,GPR_REG[DECODE_RD], GPR_REG[DECODE_RS], GPR_REG[DECODE_RT]);
1027}
1028
1029void DADD( std::string& output ) { disDaddDaddu(output,"dadd"); }
1030void DADDU( std::string& output ) { disDaddDaddu(output,"daddu"); }

Callers 2

DADDFunction · 0.85
DADDUFunction · 0.85

Calls 1

ssappendfFunction · 0.85

Tested by

no test coverage detected