home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / articles / archives / limanews.exe / XHI2.TXT < prev    next >
Text File  |  2006-10-19  |  16KB  |  314 lines

  1. ORIGINALLY PUBLISHED IN LIMA NEWSLETTER SEPTEMBER 1989
  2.  
  3.  
  4.  
  5.      ^^^^^^^^^^^^^^^^^^^^^ XHi v3.2 
  6.      ^^^^^^^Xbasic Hi Resolution Graphics Support  
  7.      ^^^^^^^^^a software review by Charles Good 
  8.      ^^^^^^^^^^^^^^^Lima Ohio User Group 
  9.       
  10.      The 9938 video chip controls all video displays produced by
  11. the Geneve and by 99/4A systems that use a DIJIT systems AVPC
  12. card or the Mechatronics 80 column peripheral.  In addition to
  13. the familiar 99/4A display modes, the 9938 chip has two
  14. additional graphic modes each of which allows the computer to
  15. display any of 512 colors.  One of these graphic modes, G7, is
  16. 512 pixels wide and allows the simultaneous use of 16 colors.
  17. The other, G6, is only 256 pixels wide, but allows the
  18. simultaneous display of up to 256 colors.  In both cases the
  19. color of each pixel can be individually set.  Geneve users can
  20. utilize these high resolution graphics modes with the recently
  21. released "final" Myarc Advanced Basic and with MYART, but these
  22. programs will not run on 99/4A systems.  Now, with XHi, these
  23. high resolution graphis modes are also available from regular TI
  24. Extended Basic.  XHi was originally designed for use on a Geneve,
  25. but it works fine on other kinds of 9938 systems.  It is the only
  26. software that allows those using a 99/4A with an AVPC or
  27. Mechatronics 80 column peripheral to utilize the full graphic
  28. potential of the 9938 video chip. 
  29.       
  30.      XHi is yet another "adds features to regular extended basic"
  31. software package resembling those that have been reviewed
  32. recently by Barry Traver in COMPUTER SHOPPER.  It is a tagged
  33. object code file that loads from Xbasic (either from command mode
  34. or from within an Xbasic program) with CALL LOAD and takes quite
  35. a while to load.  XHi only works on systems that use the 9938
  36. video chip.  Once loaded XHi resides in low memory expansion, you
  37. are returned to Xbasic, and the special graphic features of the
  38. 9938 chip are available to the user via CALL LINK statements.
  39. All the normal features of Xbasic are retained.  All Xbasic
  40. commands continue to work normally.  To access either of the 9938
  41. chip's high resolution graphic modes you need to incorporate
  42. XHi's CALL LINK statements into an Xbasic program and then run
  43. the program.  You can't try out the CALL LINK's individually from
  44. command mode, and this makes experimenting with XHi somewhat
  45. difficult.  Some (but not all) of XHi's CALL LINK's are described
  46. below: 
  47.      -CALL LINK's will display and optionally clear either the G6
  48. or G7 screen. 
  49.      -CALL LINK("NORMAL") switches display back to the normal
  50. Xbasc screen, also known as graphics 2 mode (G2). 
  51.      -CALL LINK("DCOL",color number) sets the color of newly
  52. activated screen pixels until the color number is changed. 
  53.      -CALL LINK("BACK", color number) sets the background color
  54. much as CALL SCREEN does to the G2 screen. 
  55.      -CALL LINK("PLOT",VCOOR,HCOOR) plots a pixel at the stated
  56. coordinates. 
  57.      -CALL LINK("CIRCLE",etc) makes a circle from a specified
  58. point with a specified radius. 
  59.      -CALL LINK("LINE",etc) draws a line between two specified
  60. sets of coordinates. 
  61.      -CALL LINK("VIPORT",etc) creates a rectangular "viewport" on
  62. the screen.  The effect of this is to create something like a
  63. pull down menu window.  The viewport can be as large as the
  64. entire screen.  Output to the screen only alters the area in the
  65. viewport. 
  66.      -CALL LINK("XPAND" or "REDUCX", etc) will enlarge or shrink
  67. the viewport horizontally. 
  68.      -CALL LINK("COPY", etc) can make multiple copies of the
  69. viewport on other parts of the screen.  If the viewport has a
  70. picture or graphic design, this can produce very interesting
  71. effects. 
  72.      -CALL LINK("PRINT",TEXT$, etc) prints a text string starting
  73. at specified coordinates. 
  74.      -CALL LINK("CWIDTH") specifies the width of the columns,
  75. hence the size of the letters placed on the screen with CALL
  76. LINK("PRINT", etc).  Minimum letter size will yield 80 column
  77. text. 
  78.      -CALL LINK("COLMIX,COLOR,RED,GREEN,BLUE) redefines the RGB
  79. components of one of Xbasic's 16 standard colors. 
  80.      -Complete control of high resolution sprites is possible
  81. with CALL LINKS.  You can create multicolored sprites and have
  82. as many as 8 sprites displayed simultaneously on each screen line
  83. instead of the 4 that is normally possible with an unmodified
  84. 99/4A. 
  85.       
  86.      The best way to see XHi do its stuff is to run the Xbasic
  87. demo programs.  LOAD on the XHi disk will boot XHi and then allow
  88. you to run the demo programs from menus.  The HIRESDEMO Xbasic
  89. program (which can be run from one of LOAD's menus) produces an
  90. absolutely SPECTACULAR graphics display.  Just keep pressing
  91. <ENTER> every time the action stops to see the next part of
  92. HIRESDEMO.  The best way to learn how to use the XHi CALL LINK
  93. statements is to study the Xbasic listings of the demo programs
  94. and utilities.   XHi comes with an extensive documentation file
  95. written in English (the author is German).   This doc file is
  96. easy to read and should be read carefully several times.  The doc
  97. contains almost everything you need to know about XHi, but
  98. specific information is sometimes hard to find because it is
  99. buried. 
  100.       
  101.      As you know, regular Xbasic only supports 16 colors.  So how
  102. does XHi allow 512 colors to be selected from Xbasic and how can
  103. you put 256 of these colors on the screen at one time?   With XHi
  104. you can redefine any or all of Xbasic's 16 colors, selecting the
  105. red, green, and blue component of each redefined color.  In this
  106. way you can assign to any Xbasic color number (1-16) to any of
  107. the 9938 chip's 512 colors.  OK, so how can you simultaneously
  108. display 256 colors on a G6 screen if you only have 16 colors to
  109. play with at one time? Simply create a program that puts your
  110. first 16 colors onto the G6 screen wherever you want, and then
  111. redefines the 16 Xbasic colors into other colors and puts these
  112. additional colors on the G6 screen, etc.  The earlier colors will
  113. remain on the G6 screen unaltered and will still be there as you
  114. put new redefined colors onto the high resolution screen. 
  115.       
  116.      With XHi you have simultaneous use of both the normal Xbasic
  117. G2 screen and either a G6 or G7 high resolution screen. Pixel
  118. information for both screens is kept in VDP RAM and you can
  119. instantly switch the monitor display from one to the other in a
  120. program with commands such as CALL LINK("HIRES") and CALL
  121. LINK("NORMAL").  All input is normally in the Xbasic screen
  122. unless specially programmed for high resolution display.  If you
  123. are currently viewing the high resolution screen and you type
  124. something, you often won't see what you type because you are
  125. typing onto the (temporarily invisible) Xbasic screen.  CALL
  126. LINK("NORMAL") will switch to the Xbasic screen and show you what
  127. you just typed. 
  128.       
  129.      Any exit to commnd mode from a running Xbasic program while
  130. viewing a high resolution screen, without first returning to the
  131. Xbasic screen from within the program with CALL LINK("NORMAL"),
  132. will scramble the contents of the high resolution screen and
  133. leave you looking at high resolution garbage.  This includes
  134. exits caused by CLEAR (FCTN/4), BREAK, encountering an Xbasic
  135. error, or even the logical END of the Xbasic program.  You then
  136. have to blindly type CALL LINK("NORMAL") to return to the Xbasic
  137. command mode screen to see what happened. 
  138.       
  139.      Any high resolution screen can be saved to or loaded from
  140. MYART format with CALL LINK("SAVE" {or "LOAD"},"DSKx.FILENAME").
  141. You can, for example, load a picture created on the Geneve with
  142. MYART, modify the picture, and then resave it.  The following
  143. Xbasic program, when run in the XHi environment, will prompt you
  144. for a MYART file name, display the picture, and at the press of
  145. any key prompt you for another MYART file name. 
  146.      100 CALL CLEAR !clears the n 
  147.      ormal Xbasic G2 screen 
  148.      110 DISPLAY AT(7,2):"MYART D 
  149.      RIVE AND FILE NAME?" !prompt 
  150.      for MYART file name with dri 
  151.      ve 
  152.      120 ACCEPT AT(7,2):F$ !F$ is 
  153.      the DSKxFILENAME of the pict 
  154.      ure. Program can be safely e 
  155.      nded here with CLEAR (F/4) 
  156.      130 CALL LINK("CLR256") !swi 
  157.      tches monitor display to G6 
  158.      high resolution screen and c 
  159.      lears this screen. Change to 
  160.      "HICLR" for G7 display. 
  161.      140 CALL LINK("LOAD",F$) !lo 
  162.      ads MYART picture file into  
  163.      G6 screen for viewing 
  164.      150 CALL KEY(0,K,S) !waits f 
  165.      or any keypress 
  166.      160 IF S=0 THEN 150 !if no k 
  167.      eypress then wait some more 
  168.      170 CALL LINK("NORMAL") !if  
  169.      a key is pressed returns to  
  170.      regular Xbasic G2 screen. 
  171.      180 GOTO 100 !restart progra 
  172.      m with prompt for another pi 
  173.      cture file. 
  174.       
  175.      A utility called ARTLES is included which allows loading of
  176. TI Artist pictures (those with both a "_P" and a "_C" file) into
  177. a high resolution screen.  This utility is called from within XHi
  178. with CALL LINK("ARTLES","ARTFILENAM") without disturbing XHi.
  179. After viewing the TI Artist picture, you can modify and/or save
  180. it in MYART format.  The ability to directly call ARTLES from
  181. within XHi is new to XHi v3.2. 
  182.       
  183.      A VERY useful feature that is new to v3.2 of XHi is
  184. HARDCOPY, a utility to print MYART graphics on a printer in black
  185. and white.  You can specify picture size from very small to
  186. larger than normal page size.  This allows the picture to be
  187. artificaly stretched, which sometimes considerably improves the
  188. final result.  You can also print only part of a picture,
  189. entering the upper left pixel coordinates and the size of the
  190. rectangular area to be printed.  To mimic colors, the dot matrix
  191. printer will produce either 16 or 256 different dot densities
  192. corresponding to the number of colors in the picture.  The
  193. HARDCOPY utility that comes with XHi v3.2 is described as a
  194. "preliminary version", so the description of its use that follows
  195. may not be totally applicable to future versions of HARDCOPY.
  196. This is the ONLY utility I know of that allows printing of MYART
  197. graphics, at least on 99/4A systems.  It's use was very confusing
  198. to me at first, but it is really quite simple to use once you
  199. know how.  There are some MYART pictures that it won't print.
  200. Best results are obtained with pictures that have large areas of
  201. one color and a light background. 
  202.      -The printer must be set for IBM mode because very fine
  203. 1/216 inch line feeds are needed.  On my Star SG10 printer IBM
  204. mode can only be set with a dip switch.  This is the only time I
  205. have ever used my printer in IBM mode. 
  206.      -Totally ignore the HCSETUP set up program.  IBM mode is
  207. same in almost all printers.  HARDCOPY is internally
  208. preconfigured and normally shouldn't need an external
  209. configuration data file. 
  210.      -Enter the MYART file name when prompted and don't leave
  211. any trailing blank spaces to the left of the cursor after the
  212. file name.  Such trailing spaces cause an I/O error.  Use DELETE
  213. (F/1) to get rid of extra trailing characters rather than typing
  214. over them with spaces.  Press <ENTER>. 
  215.      -The number of picture colors is displayed (16 or 256).
  216. Don't change this (by pressing 1 or 2) unless you have good
  217. reason to second guess HARDCOPY's choice.  Just press <ENTER>. 
  218.      -You now see two rectangular boxes.  One box has a picture
  219. color (HOARDCOPY apparently knows which of the 512 possible
  220. colors are in the picture) and the other box shows the
  221. corresponding printer dot pattern that will emulate this color.
  222. You can cycle through these 16 or 256 colors with the arrow keys
  223. and you can change the dot pattern of the displayed color by
  224. pressing number keys.  Don't change the dot patterns.  Use the
  225. ones already provided by HARDCOPY unless you have a good reason
  226. to change.  Just press <ENTER> when the two boxes are displayed. 
  227.      -You can now set the picture size, stretch the picture to
  228. twice its normal width, and crop the printout by pressing the
  229. appropriate keys and following the prompt.  If you do not
  230. enlarge the picture, your printout will be only a few inches in
  231. length and width. 
  232.      -Press 4 to print the picture.  If you don't like the
  233. results experiment with spreading out the picture.  This makes it
  234. easier to distinguish between areas of different dot densities. 
  235.       
  236.       COMPLAINTS: (all rather minor) 
  237.      The actual XHi program works just fine with my AVPC equipped
  238. 99/4A.  However the LOAD  and COLDEF (color definition) Xbasic
  239. programs have some features I dislike.  Fortunately, since these
  240. are written in Xbasic, these programs are easy to modify to my
  241. liking.  LOAD, as written, requires its disk to be named XHi with
  242. a lower case i.  The use of lower case letters in disk and file
  243. names is not standard practice in the TI world and can lead to
  244. problems.  You cannot, for example, use lower case letters for
  245. disk names of newly initialized disks created with the DMII
  246. module or with DM1000. 
  247.       
  248.      Because LOAD and COLDEF were written on a Geneve, which has
  249. a fancy keyboard, these programs reference key codes not often
  250. used on a TI keyboard.  The author makes use of the Geneve's HOME
  251. key frequently when one would expect a press of the <ENTER> key.
  252. On the 99/4A keyboard the equivalent of HOME is CTRL/L.  You
  253. also, in one case, have to figure out that on the 99/4A keyboard
  254. you need to press CTRL/.  (period) to do something.  LOAD and
  255. COLDEF need to be altered to get rid of references to
  256. DSK.XHi.FILENAME and weird keycodes in order to be more easily
  257. used on 99/4A based systems. 
  258.       
  259.       CONCLUSIONS:  
  260.      I agree with one of my correspondants who stated, "On the
  261. Sears scale of things I rate XHi as a BEST."  It is a very noble
  262. effort to harness the power of the 9938 chip in a familiar
  263. environment.  For Geneve owners, XHi probably isn't as user
  264. friendly as MYART, but it is alot cheaper.  It is the only tool
  265. Geneve owners have to incorporate high resolution G6 and G7
  266. graphics into the large body of existing Xbasic software.
  267. Although the recently released Myarc Advanced Basic will support
  268. high resolution graphics, Advanced Basic is largely incompatable
  269. with TI extended basic. 
  270.       
  271.      Both Geneve and 99/4A users will benefit from HARDCOPY.  It
  272. is said to print MYART graphics in shades of gray with better
  273. quality output than can be obtained with MYART's own screen
  274. dump. 
  275.       
  276.      For 99/4A users with the AVPC or the Mechatronics 80 column
  277. peripheral XHi is the only show in town.  It is the only
  278. currently available software package that allows 99/4A systems
  279. equipped with the 9938 chip to take full advantage of all the
  280. high resolution color graphics capabilities of the 9938.  Even if
  281. you just want to view MYART graphics created by others, XHi is
  282. superior to the Barry Boone MYART viewing program that is
  283. distributed with the AVPC.  A greater varity of MYART pictures
  284. can be displayed with XHi.  I very strongly recommend XHi to AVPC
  285. and Mechatronics 80 column users. 
  286.       
  287.      And now a personal comment.  I know that XHi v2.0 and v3.0
  288. have been available in the United States since the beginning of
  289. the year (1989).  On July 1, I sent a fairware payment to the
  290. author, 
  291.      Alexander Hulpke 
  292.      Sadowastrasse 68 
  293.      5600 Wuppertal 1 
  294.      West Germany. 
  295.      A few weeks later Alexander sent me a disk with his very
  296. latest (v3.2) and a short note stating, "Yours is the first
  297. fairware payment I have received from the United States.
  298. Congratulations!"  COME ON NOW PEOPLE, after all this time am I
  299. the one and only person in the United States who uses XHi?  I
  300. don't think so!  XHi has obviously taken many 10's of hours of
  301. work to create.  PAY THE MAN FOR HIS WORK or we may never hear
  302. from him again.   Alexander has other high resolution and 80
  303. column stuff in the works.  I have seen some of this additional
  304. material.  You may never see any of it unless Alexander gets some
  305. more fairware donations. 
  306.       
  307.      Alexander has promised to send me the next XHi version with
  308. an improved HARDCOPY.  User groups, not individuals, can obtain a
  309. copy the latest XHi by sending a disk and paid return mailer to
  310. the Lima User Group, P.O. Box 647, Venedocia OH 45894, USA.  I
  311. won't complain if you put something on the disk for the Lima UG
  312. library. 
  313.      .PL 1 
  314.