My Counter for my cpu stack is given the up signal at the same time it is given the clock pulse to advance. This happens on the pull from stack instruction so the counter goes back up the stack one and gets th right address..
But here is the thing, even though the clock and up signal are both true at the same time it alternates between counting up one and counting down one. i'm not sure why as it works when testing it normally with a constant 1 for up and ticking the clock myself.
EDIT: Just tested the instruction in the chip. and for some reason i get a different thing happening. When setting the first 8 bits of FP to 00001110 (Pull from stack) the counter counts down to FFFF, but then the next time i set 00001110 it jumps to 2 for no reason and to 1 and to 0 then to ffff and repeat. there is no way this is not a bug in circuitverse... plus it should be going up not down.
Here is a link to the sim if you wanna look at it. https://circuitverse.org/users/17603 The chip is called "Stack".