home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 24 DOS
/
24-DOS.zip
/
title011.zip
/
title.asm
< prev
next >
Wrap
Assembly Source File
|
2000-03-09
|
830b
|
37 lines
; TITLE.COM version 0.11 for DOS batch file in OS/2 WARP MVDM session
; Copyright (c) 1994, 1999, 2000, NBG01720@nifty.ne.jp
.model tiny
.code
org 100h
main: mov ax,4010h ;OS/2 WARP installation check
int 2Fh ;
or ax,ax ;
jnz NotWarp ;Branch if not in OS/2 WARP
cld
mov di,81h
xor bx,bx
xchg bl,[di-1]
mov [di+bx],bh ;Store zero as a string terminater
mov cx,bx
mov al,' ' ;Ignore leading space of argument
repe scasb ;
mov ah,64h ;Set session title
mov dx,1 ;
mov cx,636Ch ;
xor bx,bx ;
dec di ; ES:DI -> new ASCIIZ title
bye: int 21h ; or empty string to restore default title
int 20h ;Terminate program
NotWarp:mov ah,9 ;Write string to standard output
mov dx,offset message ;
jmp bye ;
message db "This program can be run only on DOS session of OS/2 WARP"
db 13,10,"$"
end main