hi there
im working on pic16f84a and make an assembly program with delay subroutine on MPLAB and when i take the .hex file and go to simulate it on Proteus i get the message 'stack underflow executing return instruction' when i searched for it on the web i found that this message means that the assembler found a "return" instruction before a "call" instruction . and i put the delay subroutine on the beginning of the program because if i put it after the end of the program the MPLAB execute an error that the "label" of delay subroutine not previously defined . what can i do ? and does the message of the Proteus mean it ?
thx
im working on pic16f84a and make an assembly program with delay subroutine on MPLAB and when i take the .hex file and go to simulate it on Proteus i get the message 'stack underflow executing return instruction' when i searched for it on the web i found that this message means that the assembler found a "return" instruction before a "call" instruction . and i put the delay subroutine on the beginning of the program because if i put it after the end of the program the MPLAB execute an error that the "label" of delay subroutine not previously defined . what can i do ? and does the message of the Proteus mean it ?
thx