Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : CAPSLOCK.ASM

 
Output of file : CAPSLOCK.ASM contained in archive : TASMSWAN.ZIP
%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


  3 Responses to “Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : CAPSLOCK.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/