MCPcopy Create free account
hub / github.com/ZDoom/Raze / EmitLoadInt

Method EmitLoadInt

source/common/scripting/backend/vmbuilder.cpp:699–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697//==========================================================================
698
699size_t VMFunctionBuilder::EmitLoadInt(int regnum, int value)
700{
701 assert(regnum >= 0 && regnum < Registers[REGT_INT].MostUsed);
702 if (value >= -32768 && value <= 32767)
703 {
704 return Emit(OP_LI, regnum, value);
705 }
706 else
707 {
708 return Emit(OP_LK, regnum, GetConstantInt(value));
709 }
710}
711
712//==========================================================================
713//

Callers 2

EmitMethod · 0.80
EmitLoadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected