home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CEXPRESS.ZIP
/
KEYBOARD.ASM
/
DEFHARD.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-05-03
|
720b
|
31 lines
;void define_hard_text_cursor(start_line,stop_line);
; unsigned char start_line,stop_line;
EXTRN _memory_model:byte
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _define_hard_text_cursor
_define_hard_text_cursor proc near
push bp
mov bp,sp
cmp _memory_model,0 ;near or far?
jle begin ;jump if near
inc bp ;else add 2 to BP
inc bp ;
begin: mov bx,1 ;select hardware cursor
mov ax,10 ;function number
sub cx,cx ;
mov dx,cx ;
mov cl,[bp+4] ;start line
mov dl,[bp+6] ;stop line
int 33h ;set it
pop bp ;
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_define_hard_text_cursor ENDP
_TEXT ENDS
END