home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HOT Scene Stuff
/
hotscenestuffzyklop1996.iso
/
diskmags
/
deutsch
/
microcod
/
stod2
/
sources
/
mauspas.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-02-01
|
899b
|
47 lines
PROGRAM MausCursor;
USES CRT,DOS;
Const
cursor: Array [0..31] Of Word = (
$7fc7,$7377,$ffdf,$d5ff,$6e33,$e7f3,$f727,$e1ff,
$dfd4,$f6c7,$ef77,$ee73,$fff7,$dffb,$f771,$c7ff,
$2000,$1100,$da8,$e20,$90,$3820,$41f9,$4890,
$1088,$21,$f0f0,$2252,$8000,$440,$4200,$0);
hsx : Word = 0;
hsy : Word = 0;
VAR Regs : Registers;
PROCEDURE InitMouse;
BEGIN
Regs.AX := 0;
Intr($33,Regs); {Maus initialisieren}
Regs.AX := 1;
Intr($33,Regs); {Maus sichtbar machen}
END;
PROCEDURE SetzeMaske;
BEGIN
Regs.AX := 9;
Regs.BX := hsx;
Regs.CX := hsy;
Regs.DX := Ofs(Cursor);
Regs.ES := Seg(Cursor);
Intr($33,Regs);
END;
PROCEDURE InitMode(Modus : BYTE);
BEGIN
Regs.AL := Modus;
Regs.AH := 0;
Intr($10,Regs);
END;
BEGIN
InitMode($12); {640x480x16}
InitMouse;
SetzeMaske;
ReadLn;
InitMode(3); {TextModus 80x25 in Farbe}
END.