10-29-2003, 01:04 PM
I'm trying to code a cursor management for SCREEN 12 mode, for a young progger in France.
I thought it would be easy, but this code just won't work ! All I have is a blank mouse pointer (i.e. 100% invisible).
Does the problem come from the code, or from the mouse driver (I run XP Pro)
I thought it would be easy, but this code just won't work ! All I have is a blank mouse pointer (i.e. 100% invisible).
Does the problem come from the code, or from the mouse driver (I run XP Pro)
Code:
DATA 1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1
DATA 0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0
DATA 0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0
DATA 0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0
DATA 0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0
DATA 0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0
DATA 0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0
DATA 0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0
DATA 0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0
DATA 0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0
DATA 0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0
DATA 0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0
DATA 1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1
DIM Cursor$(63)
FOR m% = 0 TO 31
Byte% = 0
FOR p% = 0 TO 7
READ Bit%
Byte% = Byte% + Bit% * 2 ^ (7 - p%)
NEXT p%
Cursor$(m%) = CHR$(Byte%)
NEXT m%
Regs.ax = 9
Regs.bx = 8 'Hot spot, horizontal
Regs.cx = 8 'Hot spot, horizontal
Regs.dx = VARSEG(Cursor$)
Regs.dx = VARPTR(Cursor$)
CALL INTERRUPTx(&H33, Regs, Regs)