MCPcopy Create free account
hub / github.com/devosoft/avida / Inst_Val_Add

Method Inst_Val_Add

avida-core/source/cpu/cHardwareTransSMT.cc:1269–1276  ·  view source on GitHub ↗

9

Source from the content-addressed store, hash-verified

1267
1268//9
1269bool cHardwareTransSMT::Inst_Val_Add(cAvidaContext&)
1270{
1271 const int dst = FindModifiedStack(STACK_BX);
1272 const int op1 = FindModifiedStack(STACK_BX);
1273 const int op2 = FindModifiedNextStack(op1);
1274 Stack(dst).Push(Stack(op1).Top() + Stack(op2).Top());
1275 return true;
1276}
1277
1278//10
1279bool cHardwareTransSMT::Inst_Val_Sub(cAvidaContext&)

Callers

nothing calls this directly

Calls 3

TopMethod · 0.80
StackClass · 0.70
PushMethod · 0.45

Tested by

no test coverage detected