home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
club100
/
ref
/
ba01e.do
< prev
next >
Wrap
Text File
|
2006-10-19
|
4KB
|
142 lines
Title: SCREEN (LCD)
Displaying characters, or images, on the screen is considered output. Output
is the function of converting digitized data into analog data. Analog data is
data not intended to be stored for further processing.
The LCD (liquid crystal display) screen consists of 15,360 (240x64) individual
dots, or "pixels" which you may turn on "PSET" or turn off "PRESET" from
BASIC. These pixels can also be grouped into 320 (40x8) positions at which
you can display any of the Model 100's printable characters.
CLS
Turns off all of the LCD pixels on the screen and moves the cursor to the
upper left corner of the screen.
CLOSEfilenumberlist
Closes the files OPEN'ed as filenumber.
CSRLIN
Returns the vertical position (line number) of the cursor, where 0 is the top
line and 7 is the bottom line.
LCOPY
Prints the text on the screen onto the printer. LCOPY ignores non-text data.
LINE(x1,y1)-(x2,y2),colorswitch,BF
Draws a line from coordinates x1,y1 to x2,y2. If colorswitch is an odd
number, BASIC set the points of the line, and if colorswitch is even then
BASIC resets the points of the line. B tells BASIC to draw a box with
corners at (x1,y1) and (x2,y2). BF tells BASIC to fill in the box with
colorswitch. Both B and BF require that you specify colorswitch.
LISTlinenumberrange
List the linenumberrange of the current program on the screen.
MAXFILES
Stores the current maximum number of files. You may access MAXFILES line any
numeric variable.
OPEN"LCD:"FOROUTPUTASfilenumber
Allocates a buffer for a screen file and assigns it the given filenumber.
POS(dummynumericexpression)
Returns the current cursor position.
PRESET(x-coordinate,y-coordinate)
Turns off the LCD pixel at x-coordinate,y-coordinate, where x-coordinate is a
numeric expression ranging from 0 to 239, and y-coordinate is a numeric
expression ranging from 0 to 63.
PRINTexpressionlist
Prints the data in expressionlist onto the screen, starting at the left most
end of the line.
PRINT@screenposition,
Prints at the given screenposition,.
PRINTUSING"format";expressionlist
Prints the data in expressionlist using the specified format. Format
consists of one of more of the following "field specifiers":
Prints first string character.
PRINTUSING"!";"Tandy"
Prints 2+n characters from a string.
PRINTUSING"\\";"Tandy"
Print one digit for each #.
PRINTUSING"#####";5
Inserts the algebraic sign of the number.
PRINTUSING"+####";-13
Inserts a minus sign either at the beginning or end of negative numbers.
PRINTUSING"-####";14
Converts leading blanks to leading asterisk blanks.
PRINTUSING"**#####";145
Inserts a dollar sign to the immediate left of the formatted number.
PRINTUSING"$$#####";450
Changes leading spaces to asterisks except for the space to the immediate left
of the number, where is inserts a dollar sign.
PRINTUSING"**$###";12
Inserts a decimal point.
PRINTUSING"#####.##";14.5
Inserts a comma before every three printed digits to the left of the decimal
point.
PRINTUSING"#########,";14432
Prints the number in exponential format.
PRINTUSING"###.##^^^^";342200
PRINT#filenumber,expressionlist
Prints the values of expressionlist to the LCD file OPEN'ed as filenumber.
PRINT#filenumber,USING"format";expressionlist
Formats the data in expressionlist and sends it to the LCD file OPEN'ed as
filenumber. See PRINTUSING for an explanation of format.
PSET(x-coordinate,y-coordinate)
Turns on the LCD pixel at x-coordinate,y-coordinate, where x-coordinate is a
numeric expression ranging from 0 to 239, and y-coordinate is a numeric
expression ranging from 0 to 63.
SAVE"LCD:"
Lists the current BASIC program onto the screen (note: Pressing PAUSE has no
effect on this command.)
SCREENONorOFF
Turns the LABEL line on or off. On is 0,0. Off is 0,1.
TAB(numericexpression)
Skips numericexpression spaces before printing the next data item.
Numericexpression ranges between 0 and 255.
<EOF>