??? 08/15/05 12:45 Read: times |
#99420 - Do it as you wish Responding to: ???'s previous message |
J Cena said:
This is NOT a solution, I have mentioned in one of my previous post that you are trying to return from a subroutine with RETI command, which is impossible and assembler does not accept it. And as I have mentioned in my reply to that post of yours, it is NOT an assembler problem - it is a problem of error checking in the assembler (in fact I am convinced the error checking is in the SIMULATOR you are using, not the assembler - please tell me if I am wrong) - a feature, which I am convinced can be turned off. Please study the manual or ask the support. J Cena said: As I mentioned in my reply to Russell Bull, there is no need to pop (unless you really counted stack usage and absolutely full stack is possible) as you will reset sp during the reinitialisation. Just I too would recommend to disable all interrupts first.
I think push and pop is the best option, as I am not using priorities at the moment so hopefully it would not become an issue. Jan Waclawek |