Difference between revisions of "83Plus:BCALLs:4030"
From WikiTI
(NewContext: alternative to NewContext0) |
(→Comments: clarify page saving/restoring silliness) |
||
Line 19: | Line 19: | ||
This routine (similar to [[83Plus:BCALLs:4033|NewContext0]]) puts away the current app, loads the context vectors for a particular builtin app, and calls the appropriate initialization code. | This routine (similar to [[83Plus:BCALLs:4033|NewContext0]]) puts away the current app, loads the context vectors for a particular builtin app, and calls the appropriate initialization code. | ||
− | Unlike NewContext0, this routine saves and restores the current page in port 6 regardless of the app selected. It also sets ([[83Plus:RAM:8444|kbdKey]]) to zero. | + | Unlike NewContext0, this routine saves and restores the current page in port 6 regardless of the app selected (this saving and restoring is not necessary if you're B_CALLing the routine, but might be useful if you're B_JUMPing to it for some reason.) It also sets ([[83Plus:RAM:8444|kbdKey]]) to zero. |
Latest revision as of 18:32, 29 September 2009
Synopsis
Official Name: NewContext
BCALL Address: 4030
Loads one of the TIOS builtin apps.
Inputs
- A = context equate (see cxCurApp)
Outputs
- Context vectors set to the desired app
Destroys
- Many additional side effects are possible depending on the app selected
Comments
This routine (similar to NewContext0) puts away the current app, loads the context vectors for a particular builtin app, and calls the appropriate initialization code.
Unlike NewContext0, this routine saves and restores the current page in port 6 regardless of the app selected (this saving and restoring is not necessary if you're B_CALLing the routine, but might be useful if you're B_JUMPing to it for some reason.) It also sets (kbdKey) to zero.