Using _ret_ with a pop instruction
ozpropdev
Posts: 2,792
in Propeller 2
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.
but doing it the "conventional" way works ok.
Is this the expected behavour and I'm simply guilty of a "coding violation"?
Maybe a note in the docs is needed.
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.
Comments
Formerly known as TonyB?