Showing changes from revision #2 to #3:
Added | Removed | Changed
Entry | |
---|---|
R0 | 256 (&100) |
R2 | Currently active object Pointer |
Exit | |
---|---|
R0 | 0 to stop application, else R0 is preserved |
R2 | Preserved? |
The purpose of this call is to call inform your application that a new application is going to be started.
This call is made just before a new application is going to be started in the current application space – for example example, due to a*Run or module command. It calls the UpCall vector.
One reason to use this call is so that an application can tidy up itself before a new one is started, e.g. removing routines from vector.
Another reason to use this UpCall is to prevent an application from starting. If you don’t want the application to start, your routine should set R0 to 0, and intercept the call to the vector. This will cause the error ‘Unable to start application’ to be given. Otherwise, you must pass the call on with all registers preserved.