F_DEF_MASKS
(AH
=
OAH)
This function is called to define the sprite and screen masks used by the driver. If tracking is
enabled, the sprite is erased and the new sprite is displayed in its place. The size of the sprite (its
width in bytes multiplied by its height) is limited to a total of 144 bytes. The width of the save
area is one byte greater than the width of the sprite.
On Entry:
AH
=
F_DEF_MASKS (OAH)
BH
=
Width of the save area (in bytes)
BL
=
Hot Spot X coordinate
CH
=
Height of sprite (in scan lines)
CL
=
Hot Spot Y coordinate
BP
=
V_STRACK (005AH)
ES:SI
=
Pointer to sprite mask
On Exit:
AH
=
Return Status Code
Registers Altered:
AX, BP, DS
The following example shows how to use the F _DEF_MASKS function provided by the tracking
driver.
SPRITE
OW
OF9FFH
11111 00 111111111
"*,,
marks the
OW
OFOFFH
11110*0011111111
Hot Spot
OW
OE07FH
1110000001111111
OW
OE07FH
1110000001111111
OW
OC03FH
1100000000111111
OW
OC03FH
1100000000111111
OW
0801FH
1000000000011111
OW
0801FH
1000000000011111
OW
OOOOFH
; 0000000000001111
OW
OOOOFH
; 0000000000001111
OW
OFOFFH
1111 0000 11111111
OW
OFOFFH
1111 0000 11111111
OW
OFOFFH
1111 0000 11111111
OW
OFOFFH
1111 0000 11111111
OW
o
FOFFH
1111 0000 11111111
OW
OFOFFH
1111 0000 11111111
Define the XOR mask
132
Input System and HP-HIL
Need help?
Do you have a question about the Vectra and is the answer not in the manual?
Questions and answers