1

Check your definitions. Often the convention is "input is the contents of memory positions 0 to $n$", result might be e.g. accept if register 0 is non-zero when the RAM halts.


1

You can implement, on a RAM machine, an interpreter that simulates the behavior of an arbitrary Turing machine (that's just a matter of programming, and there's nothing conceptually interesting or difficult about it); then use it on this particular Turing machine. That's much easier to do, but might not lead to nice code for the RAM machine. Or, you can ...


Only top voted, non community-wiki answers of a minimum length are eligible