Shop OBEX P1 Docs P2 Docs Learn Events
Reset Under Program Control — Parallax Forums

Reset Under Program Control

Brian FairchildBrian Fairchild Posts: 549
edited 2009-03-05 15:26 in Propeller 1
Is there any way to restart the Prop under program control.

I have a app which is loaded into the EEPROM and which runs on reset. After a bit of housekeeping it loads another spin binary from an SD card and runs it. I want to easily get back to square one from the second application. I realise I could write some code to load the original spin binary from the EEPROM and execute that but I was wondering if there was any easy way?

I've tried playing with Coginit(Cogid, ...) but that only restarts the currently running app.

What I want is the propeller version of 'jmp 0x000'.

Comments

Sign In or Register to comment.