mjoha266
Member
Hello!
So I have a little problem... ...again...
I want to call a little code snippet where I do some instructions and the go back to the exact same place I were before. The thing is that I want to be able to call it from different places (in one network, the snippet is also in that same network (for now at least)) so I can't use jump instr. because I don't know where to jump.
Now, I have read a assembler course and I remember a simular problem there, however that was solved with the PUSH and POP instr. so somewhere in the code I could PUSH, then jump and do stuff, then POP and continue at the same place...
I see that there is PUSH and POP instr. in S7 to, but from the help it only stores the ACCU's and I want to store some kind of ProgramPointer as well.
Any Ideas?
/Thanks!
So I have a little problem... ...again...
I want to call a little code snippet where I do some instructions and the go back to the exact same place I were before. The thing is that I want to be able to call it from different places (in one network, the snippet is also in that same network (for now at least)) so I can't use jump instr. because I don't know where to jump.
Now, I have read a assembler course and I remember a simular problem there, however that was solved with the PUSH and POP instr. so somewhere in the code I could PUSH, then jump and do stuff, then POP and continue at the same place...
I see that there is PUSH and POP instr. in S7 to, but from the help it only stores the ACCU's and I want to store some kind of ProgramPointer as well.
Any Ideas?
/Thanks!