TIPower System Functions

ClearScreen
ContrastDown
ContrastUp
CopyBuffer
DisableInterrupt
DrawBigText
DrawNumber
DrawString
EnableInterrupt
GetContrast
GetRandomNumber
GetRealX
GetRealY
InputString
InvertMem
LoadLibrary
LoadString
LoadString
SaveString
ScrambleRandomSeed
SetContrast
WaitForSecond
ClearScreen
 Syntax:   ClearScreen( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-83x, TI-86
 Description:  Clears the current buffer. TI-83x version automatically sends cleared screen to LCD.

ContrastDown
 Syntax:   ContrastDown( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86
 Description:  Decreases the Contrast

ContrastUp
 Syntax:   ContrastUp( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86
 Description:  Increases the Contrast

CopyBuffer
 Syntax:   CopyBuffer( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-83x
 Description:  Copies current buffer to LCD.

DisableInterrupt
 Syntax:   DisableInterrupt( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86
 Description:  Disables a user interrupt. This MUST be called if you use inrerrupts and are exiting back to the OS.

DrawBigText
 Syntax:   DrawBigText( string, col, row )
 Argument Storage:   ( syspointerarg0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws Large Font (good for titles). At the specified row and column.

DrawNumber
 Syntax:   DrawNumber( number, x, y )
 Argument Storage:   ( sysqordarg0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws small text font number on the screen at x,y.

DrawString
 Syntax:   DrawString( string, x, y )
 Argument Storage:   ( syspointerarg0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws small text font string on the screen at x,y.

EnableInterrupt
 Syntax:   EnableInterrupt( interruptname )
 Argument Storage:   ( syspointerarg0 )
 Calcs Supported:   TI-86
 Description:  Enables an interrupt defined with the
InterruptRoutine command. See DisableInterrupt.

GetContrast
 Syntax:   GetContrast( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86
 Description:  Loads the current contrast setting into the SUCCESS variable

GetRandomNumber
 Syntax:   GetRandomNumber( value )
 Argument Storage:   ( sysbytearg0 )
 Calcs Supported:   TI-86 TI-83x
 Description:  Gets a random number between 1 and value and stores it in the SUCCESS byte.

GetRealX
 Syntax:   GetRealX( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86
 Description:  Retrieves integer value of the 'x' real variable and assigns result to syswordarg0 (as a 16-bit integer) and to sysbytearg0 (as an 8-bit integer). If the value is too large, it is assigned 0. If the value is negative, then the absolute value is assigned. If the variables have not been initialized, an OS error occurs. Useful for interaction with TIBASIC.

GetRealY
 Syntax:   GetRealY( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86
 Description:  Same as
GetRealX except retrieves the Y value.

InputString
 Syntax:   InputString( x, y, length, buffer )
 Argument Storage:   ( sysbytearg0, sysbytearg1, sysbytearg2, syspointerarg0 )
 Calcs Supported:   TI-86
 Description:  Inputs a string (<256 characters) at the specified coordinates into the specified buffer, which should be created with the
MemSpace command.

InvertMem
 Syntax:   InvertMem( size, location )
 Argument Storage:   ( syswordarg0, syspointerarg0 )
 Calcs Supported:   TI-83x TI-86
 Description:  Inverts (by bit, so this is really only useful for gfx or encryption) size bytes at location.

LoadLibrary
 Syntax:   LoadLibrary( libraryname, [librarynamesize] )
 Argument Storage:   ( syspointerarg0, [syswordarg0] )
 Calcs Supported:   TI-83x TI-86
 Description:  Loads the specified library and shows error message if library was not found. See examples in Lib folder for details. TI-86 version requires the library size (declared in library includes). This is agian automatically detected with TI-83x.

LoadString
 Syntax:   LoadString( varstring, location, size )
 Argument Storage:   ( syspointerarg0, syspointerarg1, syswordarg0 )
 Calcs Supported:   TI-86
 Description:  TI 83 version is below. varstring must be a
VarString variable. Location is usually a memory space declared with MemSpace command. Size indicates how many bytes to load.

LoadString
 Syntax:   LoadString( varstring, location )
 Argument Storage:   ( syspointerarg0, syspointerarg1 )
 Calcs Supported:   TI-83x
 Description:  TI 86 version is above. varstring must be a
VarString variable. Location is usually a memory space declared with MemSpace command. Size is automatically detected. If you use TIPower to create your string file (which is technically a program, actually), you shouldn't run into any trouble.

SaveString
 Syntax:   SaveString( varstring, location, size )
 Argument Storage:   ( syspointerarg0, syspointerarg1, syswordarg0 )
 Calcs Supported:   TI-86
 Description:  Saves the string at location that is size bytes in size. Location is usually a MemSpace Variable. varstring must be declared with the
VarString command.

ScrambleRandomSeed
 Syntax:   ScrambleRandomSeed( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-86 TI-83x
 Description:  Scrambles up the random number used as a additive virtual string of random numbers by
GetRandomNumber. Only necessary in games that use excessive random numbers, like RPG's, dodging games, or games that make random levels.

SetContrast
 Syntax:   SetContrast( setting )
 Argument Storage:   ( sysbytearg0 )
 Calcs Supported:   TI-86
 Description:  Set the contrast to setting

WaitForSecond
 Syntax:   WaitForSecond( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-83x TI-86
 Description:  Waits for 2nd key to be pressed and released.