タイトル | : get true ver (ax=$3306) |
投稿日 | : 2023/01/29(日) 22:34 |
投稿者 | : 文太 | 番 号 | : 10540 10538 番 文太 さんへのコメント |
面白くない結果でした。 === Macrotmp by B ===; always returns "true" dos version * M 50 ^^ "Macrotmp" ax=$3306, &i($21) ;vtdos returns 6.20 here &m("MS-DOS v%d.%d",bx&$FF,bx>>8&$FF) ;vtdos returns the ver of ; ax=$3000, &i($21) ;command.com used again. ; &m("MS-DOS v%d.%d",ax&$FF,ax>>8&$FF) ;So made, it seems. * ------------------------------------------------------------------- INT 21 - DOS 5+ - GET TRUE VERSION NUMBER AX = 3306h Return: BL = major version BH = minor version DL = revision (bits 2-0, all others 0) DH = version flags bit 3: DOS is in ROM bit 4: DOS is in HMA AL = FFh if true DOS version < 5.0 Notes: this function always returns the true version number, unlike AH=30h, whose return value may be changed with SETVER because of the conflict from the CBIS redirector (see next entry), programs should check whether BH is less than 100 (64h) and BL is at least 5 before accepting the returned BX as the true version number; however, even this is not entirely reliable when that redirector is loaded Under MS-DOS/PC DOS, DR DOS, PTS-DOS, S/DOS this function does not use any of the DOS internal stacks and thus is fully reentrant OS/2 v2.1 will return BX=0A14h (version 20.10) Windows 95 and Windows 95 SP1 return version 7.00; Windows 95 OSR2 and OPK3 (OSR2.5) return version MS 7.10. the Windows NT DOS box returns BX=3205h (version 5.50) Novell DOS 7 returns IBM v6.00, which some software displays as IBM DOS v6.10 (because of the version mismatch in true IBM DOS mentioned for INT 21/AH=30h); versions through Update 15 all return revision code 00h ------------------------------------------------------------------- --------N-213306-----------------------------; NEVER MIND INT 21 - CBIS network - NETWORK REDIRECTOR - ??? AX = 3306h Return: AX = 3306h BL = ??? (usually 00h) BH = ??? (usually 00h or FFh) Note: unknown function, is in conflict with DOS 5+ version call SeeAlso: AX=3306h"DOS"
- No.10540 一括表示へ - コメント元:10538 一括表示へ - [ 返信 ] [引用無し] pre