Category : Miscellaneous Language Source Code
Archive   : HF0258.ZIP
Filename : AMASM.ASM
Output of file : AMASM.ASM contained in archive : HF0258.ZIP
.model large
PUBLIC Getchasm
.code
Getchasm PROC
mov ah,01h ; set up for interrupt routine,
; character
; input with echo
sub al,al ; zero al
int 21h ; call interrupt, puts character into al
sub ah,ah ; zero ah
cmp al,0h ; check if function or Alt+
jne toend ; if wasn't can return the character
mov ah,06h ; get second character from keyboard
mov dl,0FFh
int 21h ; returns character in al
mov ah,al ; switches the high and low bytes
; to signal a Function or Alt+
; sequence entered
sub al,al ; zero al
toend:
ret
Getchasm ENDP
END
;***********************************************
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/