home *** CD-ROM | disk | FTP | other *** search
- %TITLE "Tests capslock key"
-
- IDEAL
- DOSSEG
- MODEL small
- STACK 256
-
- SEGMENT BIOSData at 0040h
- ORG 017h
- KbFlag db ?
- ENDS BIOSData
-
- DATASEG
-
- CapsString db 'CapsLock is: ', 0
- CapsOn db 'ON',0
- CapsOff db 'OFF',0
-
-
- CODESEG
-
- ;--------- from STRIO.OBJ
- EXTRN StrWrite:proc
-
- Start:
- mov ax,BIOSData
- mov es,ax
- ASSUME es:BIOSData
- mov bl,[KbFlag]
- mov ax,@data
- mov ds,ax
- mov es,ax
- ASSUME: ds:@data, es:@data
- mov di, offset CapsString
- call StrWrite
- mov di, offset CapsOn
- test bl,040h
- jnz @@10
- mov di, offset CapsOff
- @@10:
- call StrWrite
- mov ax,04C00h
- int 21h
-
- END Start