Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1055 → Rev 1056

/svarcom/trunk/cmd/ver.c
31,16 → 31,17
 
static enum cmd_result cmd_ver(struct cmd_funcparam *p) {
char *buff = p->BUFFER;
unsigned char maj = 0, min = 0;
unsigned char maj = 0, min = 0, rev = 0, verflags = 0;
 
/* help screen */
if (cmd_ishlp(p)) {
nls_outputnl(20,0); /* "Displays the DOS version." */
outputnl("");
outputnl("ver [/about]");
output("ver [/about]");
#ifdef VERDBG
outputnl("ver /dbg");
output(" [/dbg]");
#endif
outputnl("");
return(CMD_OK);
}
 
100,19 → 101,20
return(CMD_OK);
}
 
if (p->argc != 0) {
nls_outputnl(0,6); /* "Invalid parameter" */
return(CMD_FAIL);
}
 
_asm {
push ax
push bx
push cx
mov ah, 0x30 /* Get DOS version number */
push dx
 
mov ax, 0x3306 /* Get true DOS version number */
int 0x21 /* AL=maj_ver_num AH=min_ver_num BX,CX=OEM */
mov [maj], al
mov [min], ah
mov [maj], bl
mov [min], bh
mov [rev], dl
mov [verflags], dh
 
pop dx
pop cx
pop bx
pop ax
119,9 → 121,22
}
 
sprintf(buff, svarlang_str(20,1), maj, min); /* "DOS kernel version %u.%u" */
outputnl(buff);
 
sprintf(buff, svarlang_str(20,5), 'A' + rev); /* Revision %c */
outputnl(buff);
 
{
const char *loc = svarlang_str(20,7); /* low memory */
if (verflags & 16) loc = svarlang_str(20,8); /* HMA */
if (verflags & 8) loc = svarlang_str(20,9); /* ROM */
sprintf(buff, svarlang_str(20,6), loc); /* DOS is in %s */
outputnl(buff);
}
 
outputnl("");
nls_output(20,2); /* "SvarCOM shell ver" */
outputnl(" " PVER);
 
return(CMD_OK);
}
/svarcom/trunk/history.txt
9,6 → 9,7
- FOR command: accepts control characters as pattern delimiters
- FOR command: patterns without wildcards are processed as messages
- implemented the TRUENAME command
- VER command: displays DOS revision and memory area location
- ln creates %DOSDIR%\LINKS directory when needed and warns on error
- ln add outputs an error message when link already exists
- added Polish translations
/svarcom/trunk/lang/en-utf8.txt
106,6 → 106,11
20.2:SvarCOM shell ver
20.3:SvarCOM is a shell interpreter for DOS kernels compatible with MS-DOS 5+.
20.4:This software is distributed under the terms of the MIT license.
20.5:Revision %c
20.6:DOS is in %s
20.7:low memory
20.8:HMA
20.9:ROM
 
# TYPE
21.0:Displays the contents of a text file.
/svarcom/trunk/lang/pl-utf8.txt
106,6 → 106,11
20.2:Wersja powłoki SvarCOM
20.3:SvarCOM jest interpreterem poleceń dla systemów DOS kompatybilnych z MS-DOS 5+.
20.4:To oprogramowanie jest udostępniane na zasadach licencji MIT.
20.5:Rewizja %c
20.6:DOS jest w %s
20.7:pamięci konwencjonalnej
20.8:HMA
20.9:ROM
 
# TYPE
21.0:Wyświetla zawartość pliku tekstowego.