> On a tini 390, when I call a bad pointer that is out of the memory, the Tini
> automaticaly reboot.
> Is there an interupt that detect that ? How can I get it ?
No there won't be an interrupt. The 8032 hardware has
no clue about 'good' and 'bad' pointers.
(Or a corrupted stack. It also doesn't know a memory acknowledge)
But there is hope: just fill the unused part of the
memory with 0x12. You can do that with srecord.
If the CPU steps onto these 0x12 0x12 0x12 it will start
executing code at 0x1212. You should place a panic routine
which does a stack dump there. By examining the stack dump
(call stack) you'll find the culprit.
You should probably also insert code at the destination
of the reset vector which checks if it is executed directly after
a reset. (if not call/jump to 0x1212)
If you have something that almost works you
might want to post it here. No one will promise but
it might save you work.