83Plus:BCALLs:4030

From WikiTI
Revision as of 18:32, 29 September 2009 by FloppusMaximus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Official Name: NewContext

BCALL Address: 4030

Loads one of the TIOS builtin apps.

Inputs

Outputs

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.