Propeller-2 set up a stack?
JonTitus
Posts: 193
in Propeller 2
How do I set up a stack for assembly-language subroutine calls in an assembly-language program? Perhaps each cog has its own stack at a defined address? The V33 docs are silent on this topic and mention "stack" only 6 times. Searches here and elsewhere didn't provide any guidance. Thank you. --Jon
Comments
Alternatively, you can use the memory pointed to by the PTRA or PTRB register as a call stack using the CALLA/CALLB and RETA/RETB instructions in place of the normal CALL/RET instructions.
remember address and carry/zero flag is pushed/popped