Julian Wolfe wrote:
Okay, it halts with 20 in the octal display. Is that
the address?
I guess I need to take this one step at a time.
On Sep 20, 2006, at 1:39 AM, Don North wrote:
Ok, this means that the halt instruction was at 16(8) and probably
came from the trapcatcher setup at 14(8). You can verify this by
examining location 14(8) and see that is has a 16(8) in it.
14(8) is the vector for the BPT instruction. Now you need to examine
the SP and look on the stack at (SP) to find the saved PC of where
the actual trap occurred. This should be back somewhere in the program
code (if you are lucky). It could be you are unlucky :-(, your CPU went
wild and just happened to run across an instruction word with an
opcode of 000003 (which is BPT).