36.94 mS
38.02 mS
Archived
37.04 mS
37.58 mS
Unarchived
The times in the table are for one function call, averaged over 500 calls as shown in the examples
above. The test routines ran on a HW2 TI-92 Plus, AMS 2.05. The local routine, archived, is about 3%
faster than the global routine. This is not significant for most applications, but if your program makes
thousands of calls to the subroutine, you may save a few seconds.
Defining the subroutine locally reduces the number of variables in a folder, and makes it a bit easier to
remove the program if needed. If the subprogram has no use outside of its calling routine, there is little
point to defining it globally.
[7.45] Display text in multiple fonts, and Pretty-Print expressions
TI Basic programs are usually limited to displaying text in a single font size. However, E.W. ( author
also of the EQW equation writer) has written a function to display text in 3 font sizes, as well as show
expressions in pretty-print on any display screen. Much of the following description is from E.W.'s
header in the C source code. You can get this function, called write(), from Bhuvanesh Bhatt's web site
at http://tiger.towson.edu/~bbhatt1/ti/. The C source code is included.
The zip file includes versions for both the TI-89 (write.89z) and the TI-92 Plus (write.9xz). Make sure
you use the correct version for your calculator. The examples in this tip show screen shots from the
TI-92 Plus; screen shots from the TI-89 are similar.
write() supports these features:
!
Write a line of text in one of three fonts and four modes.
!
Write multiple text lines with the different fonts and modes.
!
Write a line of text mixed with pretty-printed expressions.
!
Write multiple lines of text mixed with pretty-printed expressions.
write() displays the arguments on the current active screen. It will only write inside the screen client
area, that is, it will not write in the toolbar display or the status line area. The active screen may be the
home screen, the Program I/O screen, or the Graph screen. Your program is responsible for displaying
the screen before calling write(). These commands are used to display the different screens:
Home screen:
DispHome
Program I/O screen:
Disp
Graph screen:
DispG
There are three possible syntaxes for write():
Syntax 1:
write(x, y, string [,font_size] [,mode])
Syntax 2:
write(x, y, {string, string, ...} [,font_size] [,mode])
Syntax 3:
write(x, y, {format_string, "expr",...,format_string,"expr"} [,font_size] [,mode])
7 - 53
Summary of Contents for TI-92+
Page 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Page 53: ...LCD connector detail PCB switch side 1 42...
Page 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Page 55: ...Key cap detail 1 44...
Page 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Page 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...