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.

Works good, if you were allowed to run code out of writable memory. :-)

Also, is PC not modifiable?  Normally there is a "Put into PC register".

No. That's the point. The chip had nothing but absolute immeidate addresses for jumps, and wouldn't load instructions out of writable memory.

Yes, there really are architectures that can't run C. :-)

--
  Darren New / San Diego, CA, USA (PST)
    "That's pretty. Where's that?"
         "It's the Age of Channelwood."
    "We should go there on vacation some time."

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to