??? 08/09/05 09:33 Read: times |
#99026 - what dangerous Responding to: ???'s previous message |
hi,
Ian Bell said:
Yes but they don't do it as a subroutine but as in line code within a subroutine so they do not manipulate the stack contents to move the return address. I still think this is too dangerous - I am with Erik on this one.
The code itself is 100% safe within conditions I previously mentioned. And it does not fails with an interrupt. It is because SP register has not been modifyed during all manipulations and the number of PUSH instructions is exactly the same as number of POP ones. The problem is not in the code but in that how it may be used. For example, I may say that instruction JMP is very dangerous because you may pass wrong address for it. Regards, Oleg |