TI-Basic Z80 Programming/Output

DispEdit

Disp variable or expression e.g. :Disp "HELLO!"

Displays on screen and scrolls down. Numbers right, strings left. To make a blank line, type :Disp ""

There can be multiple expressions or variables with each having its own line

:Disp "HELLO","WORLD!"

If no arguments are added, the Home screen is displayed.

PauseEdit

Pause variable or expression

e.g.

:Pause "Press the right arrow key to see the rest of this sentence."

Displays on screen and scrolls down. Numbers right, strings left. If item is longer than 16 widths, user can scroll.

Text()Edit

Text(y,x,Var) or Text(y,x,Str) or Text(y,x,Str,Var)

e.g.

:Text(1,1,A) or :Text(1,1,"HELLO") or :Text(1,1,"VALUE IS",A)

This command displays text or variables like all the other commands, though it displays text on the draw screen, using a slightly more space efficient font size.
*Notice that this command inverts the x and y coordinates when displaying text and that it starts from the upper left 1,1 coordinate.

:Text(-1,1,1,A)

This command writes the text as big as it would be written on the HomeScreen.

OutputEdit

Output(x,y,expr) e.g. :Output(1,1,"HELLO!") This displays text starting on that square, and wraps to next line. If it is the 8th/last line, subsequent text is ignored. If it is the last command in the program, "Done" is prevented from displaying. Therefore, it is useful to end a program:

...
:''commands''
:''commands''
:Lbl Q:''closing commands'':'''Output(1,1,"")'''


Previous: Basic Variables
Next: Input
Table of Contents: TI-Basic Z80 Programming

Last modified on 9 May 2012, at 05:50