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

Function ORI

pcsx2/DebugTools/DisR5900asm.cpp:838–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836void ANDI( std::string& output ) { _sap("andi\t%s, 0x%04X") disDestSource(DECODE_RT, DECODE_RS), DECODE_IMMED);}
837
838void ORI( std::string& output )
839{
840 int rt = DECODE_RT;
841 int rs = DECODE_RS;
842
843 u32 unsignedImm = (u16) DECODE_IMMED;
844
845 if (disSimplify && rs == 0)
846 ssappendf(output, "li\t%s, 0x%X",GPR_REG[rt],unsignedImm);
847 else
848 ssappendf(output, "ori\t%s, 0x%X",disDestSource(DECODE_RT, DECODE_RS),unsignedImm);
849}
850
851void XORI( std::string& output ) { _sap("xori\t%s, 0x%04X") disDestSource(DECODE_RT, DECODE_RS), DECODE_IMMED); }
852void LUI( std::string& output ) { _sap("lui\t%s, 0x%04X") GPR_REG[DECODE_RT], DECODE_IMMED); }

Callers

nothing calls this directly

Calls 2

ssappendfFunction · 0.85
disDestSourceFunction · 0.85

Tested by

no test coverage detected