Category : C Source Code
Archive   : CEXPRESS.ZIP
Filename : NUMDOWN.ASM

 
Output of file : NUMDOWN.ASM contained in archive : CEXPRESS.ZIP
;unsigned short num_lock_down();

EXTRN _memory_model:byte

_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _num_lock_down
_num_lock_down proc near
push si ;
sub ax,ax ;clear AX
mov es,ax ;point ES to 0000:0000
mov si,418H ;offset of status byte
mov bl,32 ;test bit 5
mov ax,1 ;TRUE value
test es:[si],bl ;test the bit
jnz L1 ;jump if TRUE
mov ax,0 ;FALSE value
L1: pop si ;
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_num_lock_down ENDP
_TEXT ENDS
END


  3 Responses to “Category : C Source Code
Archive   : CEXPRESS.ZIP
Filename : NUMDOWN.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/