Using _ret_ with a pop instruction

Hi Chip

If i use the _ret_ option with a pop instruction the P2 sets "myreg" to the value on the top of the stack but also returns to the same value.
	_ret_	pop	myreg

but doing it the "conventional" way works ok.
	pop	myreg
	ret

Is this the expected behavour and I'm simply guilty of a "coding violation"?
Maybe a note in the docs is needed.
Melbourne, Australia

Comments

Sign In or Register to comment.