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

Function ADDIU

pcsx2/DebugTools/DisR5900asm.cpp:822–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820void ADDI( std::string& output ) { _sap("addi\t%s, %s, 0x%04X") GPR_REG[DECODE_RT], GPR_REG[DECODE_RS], DECODE_IMMED);}
821
822void ADDIU( std::string& output )
823{
824 int rt = DECODE_RT;
825 int rs = DECODE_RS;
826 s16 imm = DECODE_IMMED;
827
828 if (disSimplify && rs == 0)
829 ssappendf(output, "li\t%s, %s",GPR_REG[rt],signedImmediate(imm));
830 else
831 ssappendf(output, "addiu\t%s, %s",disDestSource(rt,rs),signedImmediate(imm));
832}
833
834void SLTI( std::string& output ) { _sap("slti\t%s, 0x%04X") disDestSource(DECODE_RT, DECODE_RS), DECODE_IMMED); }
835void SLTIU( std::string& output ) { _sap("sltiu\t%s, 0x%04X") disDestSource(DECODE_RT, DECODE_RS), DECODE_IMMED); }

Callers

nothing calls this directly

Calls 3

ssappendfFunction · 0.85
signedImmediateFunction · 0.85
disDestSourceFunction · 0.85

Tested by

no test coverage detected