This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

return value of subroutines and SCXT

Hi,

i am wondering how to give back a value of a subroutine to the calling routine and use a register when using scxt.

example:

SCXT CP,#0FC40h

NOP

CALLS something

CMP R10, ONES

JMP CC_NE, somewhere

POP CP

NOP

the problem is i would like to pop cp direktly afer the subroutine returns, but in this case R10 is lost.

0