home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CEXPRESS.ZIP
/
KEYBOARD.ASM
/
LSTVERTU.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-05-03
|
618b
|
26 lines
;unsigned short last_vert_up(button_number);
; unsigned short button_number;
EXTRN _memory_model:byte
_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _last_vert_up
_last_vert_up proc near
mov bx,sp ;BX points to stack
cmp _memory_model,0 ;near or far?
jle begin ;jump if near
inc bx ;else add 2 to BX
inc bx ;
begin: mov bx,ss:[bx+2] ;get button number
mov ax,6 ;function number
int 33h ;get the info
mov ax,dx ;set return value
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_last_vert_up ENDP
_TEXT ENDS
END