Putting a function on the stack is equivalent to placing it in RAM, so here's another way: Define an array of RAM bytes, copy down the routine bytes from your ROM space, in C-code use an "__asm JSR xxxx" to that location.
Thank you geezer, i would like to know how can i know (from code) which is the size of the function i want to put into the RAM. Yes im using C language. Thank you!