home *** CD-ROM | disk | FTP | other *** search
/ ftp.update.uu.se / ftp.update.uu.se.2014.03.zip / ftp.update.uu.se / pub / rainbow / msdos / decus / RB140 / grlib03a.arj / ASMD.H < prev    next >
Text File  |  1988-12-19  |  4KB  |  96 lines

  1. ;asmd.h
  2. ;******************************************************************
  3. ;   REFERENCES TO GRAPHICS DATA FIELDS IN openws.asm              *
  4. ;******************************************************************
  5. .XLIST
  6. EXTRN  ws_data:BYTE        ;All the bytes needed to initialise
  7.                 ;the work station. DO NOT CHANGE.
  8. EXTRN  p1:BYTE            ;param table for PRAM & FIGS cmnds.
  9. EXTRN  ws_type:BYTE        ;work station type. 1 to 6
  10. EXTRN  ws_wmo:BYTE        ;write mode. 0 to 3
  11. EXTRN  gbmod:BYTE        ;GO's mode register.
  12. EXTRN  fgbg:BYTE        ;defines fore_grnd/back_grnd colour.
  13. EXTRN  alups:BYTE        ;defines the writing mode.
  14. EXTRN  gbmskl:BYTE        ;GO's write mask, split into low and
  15. EXTRN  gbmskh:BYTE        ;high bytes.
  16. EXTRN  gdcml:BYTE        ;GDC's write mask, as above.
  17. EXTRN  gdcmh:BYTE
  18. EXTRN  curl0:BYTE        ;three bytes which define the GDC's
  19. EXTRN  curl1:BYTE        ;cursor position.
  20. EXTRN  curl2:BYTE        ;curl2 only uses it's high nibble.
  21. EXTRN  ymax:WORD        ;max pixels on 'y' axis. 0 to ymax
  22. EXTRN  xmax:WORD        ;max pixels on 'x' axis. 0 to xmax
  23. EXTRN  twdir:BYTE        ;direct'n for word & vector drawing.
  24. EXTRN  nmritl:BYTE        ;# words to write. used by FIGS
  25. EXTRN  nmrith:BYTE
  26. EXTRN  sh_p_lin:WORD        ;number of shifts to do to convert a
  27.                 ;line number to an absolute address.
  28. EXTRN  bytes_p_lin:WORD        ;number of words per line.
  29. EXTRN  x_start:WORD        ;four gen. purpose variables, mainly
  30. EXTRN  y_start:WORD        ;used for line drawing to defined the
  31. EXTRN  x_stop:WORD        ;start and stop vectors.
  32. EXTRN  y_stop:WORD
  33. EXTRN  g_strtx:WORD        ;defines current 'x' offset from the
  34.                 ;start of line to 1st pix. displayed
  35. EXTRN  scr_top:BYTE        ;define the top & bottom lines for
  36. EXTRN  scr_bot:BYTE        ;vertical scrolling.
  37. EXTRN  scrltb:BYTE        ;mirror of line number sequence.
  38. EXTRN  clmpda:BYTE        ;defines the colour intensities.
  39. EXTRN  pattbl:BYTE        ;defines patterns & repeat factors
  40.                 ; for drawing lines.
  41.  
  42. ;***** LINE VARIABLES *****
  43. EXTRN  l_col:BYTE        ;line colour.
  44. EXTRN  l_type:BYTE        ;line type, indexes "pattbl".
  45. EXTRN  l_wid:BYTE        ;line width. (not used currently).
  46.  
  47. ;***** FILL VARIABLES *******
  48. EXTRN  f_col:BYTE        ;fill colour.
  49. EXTRN  f_type:BYTE        ;fill type. 0 to 3
  50. EXTRN  f_style:BYTE        ;fill style. 0 to 7
  51. EXTRN  f_patrn:BYTE        ;table of patterns for filling:
  52.  
  53. ;***** TEXT VARIABLES *****
  54. EXTRN  t_col:BYTE        ;text colour.affects "text"&"gtext."
  55. EXTRN  t_font:BYTE        ;text font.   affects "gtext" only.
  56. EXTRN  t_sca:BYTE        ;text scale.  affects "text" only.
  57. EXTRN  t_dir:BYTE        ;direction that text is written.
  58.                 ;             affects "text" only.
  59. EXTRN  t_x:WORD        ;define the bottom left of the char.
  60. EXTRN  t_y:WORD        ;cell in which char. is displayed.
  61.  
  62. ;***** MARKER VARIABLES *****
  63. EXTRN  m_col:BYTE        ;marker colour.
  64. EXTRN  m_type:BYTE        ;marker type. 0 to 15
  65. EXTRN  m_sca:BYTE        ;marker scale.
  66. EXTRN  m_tab:BYTE        ;vector table for markers.
  67.  
  68. ;***** WORK AREAS *****
  69. EXTRN   old_int_off:WORD    ;saved Graphics board int vector offset
  70. EXTRN   old_int_seg:WORD    ;saved Graphics board int vector segment
  71. EXTRN   int_done:BYTE
  72. EXTRN   gintvect:WORD        ;Graphics board interrupt vector location
  73.  
  74. ;***** SWITCHES *****
  75. EXTRN   swisg:BYTE        ;1= graphics option present
  76. EXTRN   sw100a:BYTE        ;1= 100a, 0= 100b
  77.  
  78. ;***** TEXT FONT TABLES *****
  79. EXTRN  tfonts:WORD        ;table of 4 pointers to the user definable
  80.                 ;gtext fonts. (256 characters per font)
  81.  
  82. ;***** GP Work area ****
  83. EXTRN  gp_buff:WORD        ;2k gen. purpose array for 'xy' points.
  84.                 ;Used heavily by "circle","segment",
  85.                 ;"arc" and "rectangle", therefore
  86.                 ;don't use it for these functions.
  87.  
  88.     SEGEND  DATA
  89.     SEGDEF  CODE
  90. EXTRN  dseg_sav:WORD        ;Save of DS for later use
  91. EXTRN  eseg_sav:WORD        ;Save of ES for later use
  92.     SEGEND  CODE
  93.     SEGDEF  DATA
  94. .LIST
  95. 
  96.