Difference between revisions of "83Plus:Basic:Graphics:Disp"

From WikiTI
Jump to: navigation, search
(Cleaned up formatting to match template)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
+
[[Category:83Plus:Basic:Graphics|Disp]]
[[Category:83Plus:Basic:Graphics|whatever]]
+
 
 +
== Synopsis ==
 +
'''Token size:''' 1 byte
 +
 
 +
'''Syntax:''' Disp ''value1'',''value2'',...
 +
 
 +
Displays a sequence of values or text on the homescreen.
 +
 
 +
== Outputs: ==
 +
 
 +
''value1'', ''value2'', etc. will be displayed at the current value of ([[83Plus:RAM:844B|curRow]]). ([[83Plus:RAM:844B|curRow]]) is then increased. If ([[83Plus:RAM:844B|curRow]]) is 7, the screen will shift up instead up increasing ([[83Plus:RAM:844B|curRow]]).
 +
 
 +
Each argument can be a string, a variable, a matrix or a list. If the value is a string, then it will be aligned to the left. If it's a variable, matrix or list, then it will be displayed aligned to the right.
 +
 
 +
If a matrix or list has too many elements to show on the screen at once, (...) will be shown, but you cannot scroll through the list. Use [[83Plus:Basic:Graphics:Pause|Pause <value>]] if you want to be able to scroll to the list.
 +
 
 +
== Comments ==
 +
 
 +
*STO (->) cannot be displayed in a string with Disp.
 +
*The double quote (") cannot be displayed with Disp, as it always is treated as a string deliminer.
 +
*As always when working with a string, the ending quote " isn't needed if nothing else is to follow before a newline, and can be left out to save a byte.
 +
 
 +
== Example ==
 +
 
 +
:Disp "string",5,{1,2,3},<nowiki>[[3,3][3,3]]</nowiki>
 +
:Disp Str1,A,L1,[A]
 +
 
 +
== See also: ==
 +
[[83Plus:Basic:Graphics:Pause|Pause]]

Latest revision as of 16:01, 16 September 2006


Synopsis

Token size: 1 byte

Syntax: Disp value1,value2,...

Displays a sequence of values or text on the homescreen.

Outputs:

value1, value2, etc. will be displayed at the current value of (curRow). (curRow) is then increased. If (curRow) is 7, the screen will shift up instead up increasing (curRow).

Each argument can be a string, a variable, a matrix or a list. If the value is a string, then it will be aligned to the left. If it's a variable, matrix or list, then it will be displayed aligned to the right.

If a matrix or list has too many elements to show on the screen at once, (...) will be shown, but you cannot scroll through the list. Use Pause <value> if you want to be able to scroll to the list.

Comments

  • STO (->) cannot be displayed in a string with Disp.
  • The double quote (") cannot be displayed with Disp, as it always is treated as a string deliminer.
  • As always when working with a string, the ending quote " isn't needed if nothing else is to follow before a newline, and can be left out to save a byte.

Example

:Disp "string",5,{1,2,3},[[3,3][3,3]]
:Disp Str1,A,L1,[A]

See also:

Pause