home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / ba01e.do < prev    next >
Text File  |  2006-10-19  |  4KB  |  142 lines

  1.  
  2. Title: SCREEN (LCD)
  3.  
  4. Displaying characters, or images, on the screen is considered output.  Output 
  5. is the function of converting digitized data into analog data.  Analog data is 
  6. data not intended to be stored for further processing. 
  7.  
  8. The LCD (liquid crystal display) screen consists of 15,360 (240x64) individual 
  9. dots, or "pixels" which you may turn on "PSET" or turn off "PRESET" from 
  10. BASIC.  These pixels can also be grouped into 320 (40x8) positions at which 
  11. you can display any of the Model 100's printable characters. 
  12.  
  13.  
  14. CLS
  15.  Turns off all of the LCD pixels on the screen and moves the cursor to the 
  16.  upper left corner of the screen. 
  17.  
  18.  
  19. CLOSEfilenumberlist
  20.  Closes the files OPEN'ed as filenumber. 
  21.  
  22.  
  23. CSRLIN
  24.  Returns the vertical position (line number) of the cursor, where 0 is the top 
  25.  line and 7 is the bottom line. 
  26.  
  27.  
  28. LCOPY
  29.  Prints the text on the screen onto the printer.  LCOPY ignores non-text data. 
  30.  
  31.  
  32. LINE(x1,y1)-(x2,y2),colorswitch,BF
  33.  Draws a line from coordinates x1,y1 to x2,y2.  If colorswitch is an odd 
  34.  number, BASIC set the points of the line, and if colorswitch is even then 
  35.  BASIC resets the points of the line.  B tells BASIC to draw a box with 
  36.  corners at (x1,y1) and (x2,y2).  BF tells BASIC to fill in the box with 
  37.  colorswitch.  Both B and BF require that you specify colorswitch. 
  38.  
  39.  
  40. LISTlinenumberrange
  41.  List the linenumberrange of the current program on the screen. 
  42.  
  43.  
  44. MAXFILES
  45.  Stores the current maximum number of files.  You may access MAXFILES line any 
  46.  numeric variable. 
  47.  
  48.  
  49. OPEN"LCD:"FOROUTPUTASfilenumber
  50.  Allocates a buffer for a screen file and assigns it the given filenumber. 
  51.  
  52.  
  53. POS(dummynumericexpression)
  54.  Returns the current cursor position. 
  55.  
  56.  
  57. PRESET(x-coordinate,y-coordinate)
  58.  Turns off the LCD pixel at x-coordinate,y-coordinate, where x-coordinate is a 
  59.  numeric expression ranging from 0 to 239, and y-coordinate is a numeric 
  60.  expression ranging from 0 to 63. 
  61.  
  62.  
  63.  
  64. PRINTexpressionlist
  65.  Prints the data in expressionlist onto the screen, starting at the left most 
  66.  end of the line. 
  67.  
  68.  
  69. PRINT@screenposition,
  70.  Prints at the given screenposition,. 
  71.  
  72.  
  73. PRINTUSING"format";expressionlist
  74.  Prints the data in expressionlist using the specified format.  Format 
  75.  consists of one of more of the following "field specifiers": 
  76.  
  77. Prints first string character.
  78.  PRINTUSING"!";"Tandy"
  79.  
  80. Prints 2+n characters from a string.
  81.  PRINTUSING"\\";"Tandy"
  82.  
  83. Print one digit for each #.
  84.  PRINTUSING"#####";5
  85.  
  86. Inserts the algebraic sign of the number.
  87.  PRINTUSING"+####";-13
  88.  
  89. Inserts a minus sign either at the beginning or end of negative numbers.  
  90.  PRINTUSING"-####";14 
  91.  
  92. Converts leading blanks to leading asterisk blanks.
  93.  PRINTUSING"**#####";145 
  94.  
  95. Inserts a dollar sign to the immediate left of the formatted number.  
  96.  PRINTUSING"$$#####";450 
  97.  
  98. Changes leading spaces to asterisks except for the space to the immediate left 
  99. of the number, where is inserts a dollar sign. 
  100.  PRINTUSING"**$###";12 
  101.  
  102. Inserts a decimal point.
  103.  PRINTUSING"#####.##";14.5
  104.  
  105. Inserts a comma before every three printed digits to the left of the decimal 
  106. point. 
  107.  PRINTUSING"#########,";14432
  108.  
  109. Prints the number in exponential format.
  110.  PRINTUSING"###.##^^^^";342200 
  111.  
  112.  
  113. PRINT#filenumber,expressionlist
  114.  Prints the values of expressionlist to the LCD file OPEN'ed as filenumber. 
  115.  
  116.  
  117. PRINT#filenumber,USING"format";expressionlist
  118.  Formats the data in expressionlist and sends it to the LCD file OPEN'ed as 
  119.  filenumber.  See PRINTUSING for an explanation of format. 
  120.  
  121.  
  122. PSET(x-coordinate,y-coordinate)
  123.  Turns on the LCD pixel at x-coordinate,y-coordinate, where x-coordinate is a 
  124.  numeric expression ranging from 0 to 239, and y-coordinate is a numeric 
  125.  expression ranging from 0 to 63. 
  126.  
  127.  
  128. SAVE"LCD:"
  129.  Lists the current BASIC program onto the screen  (note: Pressing PAUSE has no 
  130.  effect on this command.) 
  131.  
  132.  
  133. SCREENONorOFF
  134.  Turns the LABEL line on or off.  On is 0,0.  Off is 0,1. 
  135.  
  136.  
  137. TAB(numericexpression)
  138.  Skips numericexpression spaces before printing the next data item.  
  139.  Numericexpression ranges between 0 and 255. 
  140.  
  141. <EOF>
  142.