On Tue, Apr 01, 2008 at 05:59:41PM -0700, Andrew Lentvorski wrote:
How about a trampoline? Place a jump instruction into RAM and always jump there and then it jumps to where you want to go.
Also, is PC not modifiable? Normally there is a "Put into PC register".
The original posting was about architectures where RAM was a different address space than ROM, so jumping to RAM doesn't even make sense. Many older CPUs didn't have the PC as a generally accessible register, and only supported control transfer through explicit branch instructions. If they didn't include one that would jump to a computed address, you didn't get to do that. David -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
