home *** CD-ROM | disk | FTP | other *** search
- ; ---------------------------------------------------------------
- ; FULLKEY --- Returns numeric scan code and ASCII value for a key
- ; ---------------------------------------------------------------
- ; Copyright(c) 1988-1990 - James Occhiogrosso
- ;
-
- INCLUDE DEVELOP.MAC ; Include Developer's Library Macro file
-
- PUBLIC FULLKEY ; Declare public function
- EXTRN __RETNI:FAR ; Return numeric integer
-
- CODESEG SEGMENT 'CODE'
- ASSUME CS:CODESEG
-
- FULLKEY PROC FAR
-
- MOV AX, 0 ; Read Character DOS function
- INT 16h ; Keyboard I/O ROM call
- RET_INT ; Return integer key value
-
- FULLKEY ENDP ; End of procedure
- CODESEG ENDS ; End of code segment
-
- END ; End of assembly
-
-