home *** CD-ROM | disk | FTP | other *** search
- function call( see :boolean;color:integer;
- xpos:integer;ypos:integer):integer;
- begin
- if not see then
- begin
- with registers do
- begin
- bx:=1;
- ax:=12*256+color; {this will write}
- cx:=xpos;
- dx:=ypos;
- intr($10,registers);
- end;
- end
- else
- with registers do
- begin
- bx:=0;
- ax:=13*256; {this will see}
- cx:=xpos;
- dx:=ypos;
- intr($10,registers);
- call:= registers.ax and 255;
- end;
- end;