home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / zenith / z100 / 206 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.sys.zenith.z100
  2. Path: sparky!uunet!spool.mu.edu!agate!overload.lbl.gov!dog.ee.lbl.gov!news!nosc!halibut.nosc.mil!koziarz
  3. From: koziarz@halibut.nosc.mil (Walter A. Koziarz)
  4. Subject: Re: writing a custom-character to screen...
  5. Message-ID: <1992Dec28.235537.29711@nosc.mil>
  6. Sender: usenet@nosc.mil (Network News)
  7. Organization: Naval Ocean Systems Center, San Diego
  8. References: <1992Dec28.131540.23725@nosc.mil>
  9. Date: Mon, 28 Dec 1992 23:55:37 GMT
  10. Lines: 28
  11.  
  12. In article <1992Dec28.131540.23725@nosc.mil> koziarz@halibut.nosc.mil (Walter A. Koziarz) writes:
  13.  
  14. a description of a character_mask... and a fragment of code... and then the
  15. following arithmetic discussion...
  16.  
  17. >okay, my problem is -- how do I go about determining the 'start point' to get
  18. >row 25, col 80 of the screen?  I interpret all the information that exists to
  19. >tell me that I should use 9*24*128+79 to get me to the 80th column in row 25.
  20. >*but* it doesn't work... what am I missing?  incidentally -- the arithmetic
  21. >above is based upon _9_ scanlines per char, _24_ character rows, _128_ bytes
  22. >per character rows and _79_ character-positions to 'skip' in the first scanline
  23. >of character row 25 (see the example code, the '79' in mov si,79 *does* put me
  24. >at row 1, col 80)...  I feel I *must* be missing something quite basic...
  25.  
  26. >Walt K.
  27.  
  28. ummmm, yes, I *was* missing something *very* basic...  there are *16*
  29. scanlines, not 9...  using the relationship:
  30.  
  31.     rrow = 16*24*128+79
  32.  
  33. lets me place the character at row 25, column 80 using the code-fragment shown
  34. earlier... (that code-fragment was originally written by W. Ching and was
  35. re-printed in an article in "Z-100 Life Line", issue #17)
  36.  
  37. Many thanks to gern for giving me the key piece to this puzzle...
  38.  
  39. Walt K.
  40.