7 #include <sys/farptr.h>
15 unsigned short old = _farpeekw( _dos_ds, addr );
16 _farpokew( _dos_ds, addr, (row << 8) | col );
19 _farpokew( _dos_ds, addr, col );
29 unsigned short usShapePos, usShapeSize;
31 usShapePos = _farpeekw( _dos_ds, 0x450 +
__fb_con.
active *
sizeof(
short ) );
32 usShapeSize = _farpeekw( _dos_ds, 0x460 );
33 shape_visible = (usShapeSize & 0xC000)==0x0000;
38 x = usShapePos & 0xFF;
43 y = (usShapePos >> 8) & 0xFF;
48 regs.h.dh = (
unsigned char) y;
49 regs.h.dl = (
unsigned char) x;
50 __dpmi_int(0x10, ®s);
52 _farpokew( _dos_ds, 0x450 +
__fb_con.
active *
sizeof(
short ), (y << 8) | x );
56 int shape_start, shape_end;
58 shape_start = (usShapeSize >> 8) & 0x1F;
59 shape_end = usShapeSize & 0x1F;
60 shape_visible = cursor!=0;
63 regs.h.ch = (
unsigned char) (shape_start + (shape_visible ? 0x00 : 0x20));
64 regs.h.cl = (
unsigned char) shape_end;
65 __dpmi_int(0x10, ®s);
68 return ( (x & 0xFF) | ((y & 0xFF) << 8) | (shape_visible ? 0x10000 : 0) );
75 return result + 0x0101;