-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCURSOR.INC
executable file
·49 lines (42 loc) · 1.5 KB
/
CURSOR.INC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
page ,132
;-----------------------------Module-Header-----------------------------;
; Module Name: CURSOR.INC
;
; This file contains definitions for the cursor requirements of
; the EGA Hires Black and White Display Driver.
;
; Created: 23-Feb-1987
; Author: **** ***** [*****]
;
; Copyright (c) 1984-1987 Microsoft Corporation
;
; Exported Functions: none
;
; Public Functions: none
;
; Public Data: none
;
; General Description:
;
; Restrictions:
;
;-----------------------------------------------------------------------;
CUR_HEIGHT equ 32 ;Height of cursor/icon
MAX_BUF_HEIGHT equ 64 ;Number of scans in work buffer
SCREEN_WIDTH equ 640 ;Screen width in pixels
SCREEN_HEIGHT equ 350 ;Screen height in pixels
SCAN_BYTES equ 80 ;# bytes in one scanline
CUR_ICON_WIDTH equ 4 ;Width in bytes of cursor/icon
SAVE_WIDTH equ CUR_ICON_WIDTH+1 ;Width of save area
BUF_WIDTH equ SAVE_WIDTH+CUR_ICON_WIDTH ;Width of work buffer
SCAN_INC equ SCAN_BYTES-BUF_WIDTH ;Index to next scan line
MASK_LENGTH equ SAVE_WIDTH*CUR_HEIGHT ;#bytes in AND/XOR mask
FARTHEST equ (CUR_ICON_WIDTH+1)*8 ;How far apart in X old and
; new cursor may be for
; both to fit in work buffer
X_RATE equ 1 ;X mickeys/pixel rate
Y_RATE equ 2 ;Y mickeys/pixel rate
INIT_CURSOR_X equ SCREEN_WIDTH/2 ;Initial cursor x
INIT_CURSOR_Y equ SCREEN_HEIGHT/2 ;Initial cursor x
CUR_ROUND_LEFT equ 0FFF0h ;Round down to a word
CUR_ROUND_RIGHT equ 0000Fh ;Round up to a word