Source code for /engineering/rendsite/test/source/2XTILE/XTILE20!.USEOriginal file XTILE20!.USE
   1 ; USE file for the XTile  Assembler routine lib
   2 ;
   3 ; COPYRIGHT (C) 1992 Erich P Gatejen 1992  All Rights Reserved
   4 ;
   5 ; File: XTILE.USE
   6 ;
   7 ; Mode X graphics manager.
   8 
   9 
  10 ; XTile Asm Constants
  11 
  12 SC_INDEX	equ	03C4h 	;Sequence Controller Index
  13 CRTC_INDEX	equ     03D4h	;CRT Controller Index
  14 MISC_OUTPUT	equ	03C2h	;Misc. Output Reg.
  15 SCREEN_SEG	equ     0A000h	;Display memory seg.
  16 IN_STATUS0	equ	03c2h
  17 IN_STATUS1	equ     03DAh
  18 AC_INDEXR	equ	03c0h
  19 BIT_MASK	equ	08h	;Index to bit mask
  20 GC_INDEX	equ     03CEh	;Graphics Controller Index
  21 PAL_SET_COLOR   equ     03C8h	;Palette color set
  22 PAL_RGB_COLOR	equ	03C9h	;Palette data port
  23 
  24 
  25 PAGE0		equ	0	;Page 0 offset
  26 PAGE1		equ  	19200	;Page 1 offset
  27 BACKGROUND	equ	38400	;Background page offset
  28 STORE		equ	57600	;Image/Tile storage
  29 DIRECT_PAGE	equ	8	;Indicates direct load of write page offset
  30 
  31 SCREEN_W		equ	80		;Dec 80. Pix X. ( 80 x 4deep = 320 )
  32 
  33 ; Dispositions for the SD_Move_Tile
  34 ON_SCREEN		equ	0
  35 TO_ALT_PAGE	equ  1
  36 TO_BACKGROUND  equ  2
  37 
  38 
  39 
  40 ; Constants for mouse
  41 MOUSE_PRESENT	equ  0
  42 MOUSE_NOTPRES  equ	1
  43 MBACK_VALID    equ  0
  44 MBACK_INVALID  equ  1
  45 
  46 MOUSEPSIZE	equ	16			;  20 XBlocks per alignment
  47 MSAVEOFFSET	equ	0FFFFh - 16    ; Mouse background save site
  48 				; ^^Top of memory minus size in XBlocks of image
  49 MOUSEOFFSET    equ  0FFFFh - 80    ; Address for mouse pointer
  50 				; XBlocks adjustment is compensated by 4 alignments
  51 
  52 ; Types of font register
  53 UPLOADFONT	equ	0
  54 DONTUPLOADFONT equ  1
  55 
  56 ; MASKFONT write
  57 DOMASK		equ  1
  58 DONTMASK		equ  0
  59 
  60 ; MOUSE HANDLER LOCK
  61 LOCKM		equ	1
  62 NOTLOCKM		equ	0
  63 
  64 ; General
  65 TRUE			equ	1
  66 FALSE		equ	0