A92: Stack and return values


[Prev][Next][Index][Thread]

A92: Stack and return values




Hello all,

I want to use the stack to return a value.  Because JSR stores the PC on the
SP before jumping and RTS needs this value intact, I can't just push the
return value on the stack.  Does anyone know how I can do a return value
without using the data registers?


====
Aaron Hill (mozart@inlink.com)
IRC Nickname on EF-Net: SeracOhw
http://www.inlink.com/~mozart/i3/


Follow-Ups: