When a Cog runs out of code to run is that like a COGSTOP?
As a newbie I am trying to confirm that if a Cog runs out of code to run does it go into sleep mode and is that the same as a COGSTOP?· Reason I ask because if I call another method with COGNEW will it see this Cog as available or should I always use COGSTOP to shutdown a Cog.· Would the condition be the same if I start a Cog with CONINIT and the Cog runs out of code to run?· Will it be seen as available?
Thanks,
Tony
Thanks,
Tony
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
also, if the cog runs out of code, it'll continue to run, it'll just continue through the cogram executing each location's instruction, unless you have a infinite loop ( here jmp #here ) or cogstop
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Composite NTSC sprite driver: Forum
NTSC & PAL driver templates: ObEx Forum
OnePinTVText driver: ObEx Forum