Is there an "End" for assembly?
Steel
Posts: 313
I have an assembly routine that I want to·run on a new cog and to end as soon as the last ASM command completes.· Is there an "END" to put into the ASM, or does the cog stop automatically when it runs the last ASM command?
The reason I ask is because I remember seeing that once your ASM routine finishes, it goes into an endless loop.
·
The reason I ask is because I remember seeing that once your ASM routine finishes, it goes into an endless loop.
·
Comments
You can either go into an "endless loop" - add WAITCNT to reduce power consumption! - or stop the COG, fetching your own COG number and kill it. Consult the manual
Post Edited (deSilva) : 8/6/2007 7:31:11 PM GMT
deSilva is referring to this code fragment:
This effective resets the cog, shutting it down.