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

Method Push

avida-core/source/cpu/cCPUStack.h:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59inline void cCPUStack::Push(int value)
60{
61 if (stack_pointer == 0) stack_pointer = nHardware::STACK_SIZE - 1;
62 else stack_pointer--;
63 stack[stack_pointer] = value;
64}
65
66inline int cCPUStack::Pop()
67{

Callers 15

ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected