public BigInteger readStackValue(int relativeOffset, int size, boolean signed)
			throws Exception {
		long offset = readRegister(stackPtrReg).longValue() + relativeOffset;
		byte[] bytes = readMemory(stackMemorySpace.getAddress(offset), size);
		return converter.getBigInteger(bytes, size, signed);
	}
Read a stack value from the memory state.

@param relativeOffset offset relative to current stack pointer
@param size data size in bytes
@param signed true if value read is signed, false if unsigned
@return value
@throws Exception error occurs reading stack pointer
Ghidra/Framework/Emulation/src/main/java/ghidra/app/emulator/EmulatorHelper.java