* contrib/hbnf/scancode.prg
* contrib/hbnf/vidmode.prg
* contrib/hbnf/miltime.prg
* contrib/hbnf/savearr.prg
* contrib/hbnf/dispmsg.prg
* contrib/hbnf/mouse1.prg
* contrib/hbnf/settime.prg
* contrib/hbnf/page.prg
* contrib/hbnf/pegs.prg
* contrib/hbnf/min2dhm.prg
* contrib/hbnf/dosver.prg
* contrib/hbnf/metaph.prg
* contrib/hbnf/woy.prg
* contrib/hbnf/setdate.prg
* contrib/hbnf/linked.prg
* contrib/hbnf/aredit.prg
* contrib/hbnf/xbox.prg
* contrib/hbnf/ftround.prg
* contrib/hbnf/dectobin.prg
* contrib/hbnf/aemaxlen.prg
* contrib/hbnf/nwlstat.prg
* contrib/hbnf/tempfile.prg
* contrib/hbnf/scregion.prg
* contrib/hbnf/mouse2.prg
* contrib/hbnf/pickday.prg
* contrib/hbnf/datecnfg.prg
* contrib/hbnf/easter.prg
* contrib/hbnf/aeminlen.prg
* contrib/hbnf/pchr.prg
* contrib/hbnf/tbwhile.prg
* contrib/hbnf/calendar.prg
* contrib/hbnf/elapsed.prg
* contrib/hbnf/aading.prg
* examples/hbvpdf/hbvpdf.prg
* examples/hbvpdf/hbvpdft.prg
* examples/gtwvw/tests/prog1.prg
* examples/gtwvw/tests/prog2.prg
* examples/gtwvw/tests/wvwtest9.prg
* examples/gtwvw/tests/ebtest7.prg
* examples/gtwvw/tests/prog0.prg
! eliminated most (if not all) ' = ' operators
some minor compatibility notes added to NF
(NF being buggy by behaving inconsistently
due to _SET_EXACT setting)
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* File......: dosver.prg
|
|
* Author....: Glenn Scott
|
|
* CIS ID....: ?
|
|
*
|
|
* This is an original work by Glenn Scott and is placed in the
|
|
* public domain.
|
|
*
|
|
* Modification history:
|
|
* ---------------------
|
|
*
|
|
* Rev 1.2 15 Aug 1991 23:02:24 GLENN
|
|
* Forest Belt proofread/edited/cleaned up doc
|
|
*
|
|
* Rev 1.1 12 Jun 1991 02:38:24 GLENN
|
|
* Documentation mod and removal of reference to constant INT86_SUCCESS.
|
|
* Checked for ft_int86() compatibility.
|
|
*
|
|
* Rev 1.0 01 Apr 1991 01:01:14 GLENN
|
|
* Nanforum Toolkit
|
|
*
|
|
*/
|
|
|
|
#include "ftint86.ch"
|
|
|
|
#define DOS 33
|
|
#define DOSVER 48
|
|
|
|
#ifdef FT_TEST
|
|
FUNCTION MAIN()
|
|
QOut( "Dos version: " + FT_DOSVER() )
|
|
RETURN NIL
|
|
#endif
|
|
|
|
FUNCTION FT_DOSVER()
|
|
/* local aRegs[ INT86_MAX_REGS ] */
|
|
local cResult
|
|
|
|
/* aRegs[ AX ] := MAKEHI( DOSVER )
|
|
if FT_INT86( DOS, aRegs )
|
|
cResult := alltrim( str( LOWBYTE( aRegs[ AX ] ) ) ) + "." + ;
|
|
alltrim( str( HIGHBYTE( aRegs[ AX ] ) ) )
|
|
endif
|
|
*/
|
|
cResult:= _get_dosver()
|
|
RETURN ( cResult )
|