C
CWatters
Guest
"Jamie" <jamie_5_not_valid_after_5_Please@charter.net> wrote in message
news:VpHne.3031$QX1.756@fe06.lga...
the stack yourself before branching to the sub? If it is and you forgot then
when you do the ret you might get 0000
news:VpHne.3031$QX1.756@fe06.lga...
I don't know that device but... Do you have to put the program counter onVidar L?kken wrote:
I'm programming a atmel Tiny 2313, and have to use the "ret"
statement.
The problem is that ret simply jumps to the top of the program, not
the location it was called from. I'm prorgramming in assembler (of
course...).
Does anyone know how to "enable" ret call?
make sure you cleaned up your stack.
using the RET is simply popping things off the
stack to generate a return address.
overflow of the stack or writing 0's on the
stack i guess could cause it also :_)
the stack yourself before branching to the sub? If it is and you forgot then
when you do the ret you might get 0000