On Thu, Jul 15, 2010 at 12:03 PM, robin <[email protected]> wrote: >>And branch instructions. > > What do you mean? > A branch instruction is EXecuted just like the others. > The only difference is that the branch address needs checking prior to > execution.
Hmm... I would expect EX of a branch never to return back to your simulator, but resume execution outside your simulator. Wouldn't you need to "interpret" the branch such that you load the effective address into the register that you're using to point into the program code that you're playing? It's an interesting thought experiment, but more for the Friday afternoon... (and that's not even yet in .au ) | Rob
