This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Where to find the stack info used in keil c?

i am not sure if the stack is overflow in my project.
thank a lot!

Parents
  • And now it enter ISR, so push "A, B, DHP, DHL, PSW" to stack. So is it SP 0x33 + 5 = 0x38? It seems so strange in my program.
    ?

    When an interrupt happens some process is in progress in the main, let us say the following happens
    main: load dptr
    interrupt
    main: load what dptr points to

    Now, if the interrupt uses the dptr (changes its contents) what would happen if it did not save the DPTR at entry and resore it on exit.

    Erik

Reply
  • And now it enter ISR, so push "A, B, DHP, DHL, PSW" to stack. So is it SP 0x33 + 5 = 0x38? It seems so strange in my program.
    ?

    When an interrupt happens some process is in progress in the main, let us say the following happens
    main: load dptr
    interrupt
    main: load what dptr points to

    Now, if the interrupt uses the dptr (changes its contents) what would happen if it did not save the DPTR at entry and resore it on exit.

    Erik

Children