Fix Func 30h (Get DOS Version) return version 0.0 in config.sys

This commit is contained in:
lpproj 2019-12-20 10:01:01 +09:00 committed by Kenneth J Davis
parent 6a29f57715
commit 9eb9b1a046
2 changed files with 4 additions and 0 deletions

View File

@ -1240,6 +1240,7 @@ STATIC VOID sysVersion(BYTE * pLine)
LoL->os_setver_major = major; /* not the internal os_major */
LoL->os_setver_minor = minor; /* not the internal os_minor */
((psp far *)MK_FP(DOS_PSP, 0))->ps_retdosver = (minor << 8) + major;
}
STATIC VOID Files(BYTE * pLine)

View File

@ -200,6 +200,9 @@ STATIC void PSPInit(void)
/* open file table pointer */
p->ps_filetab = p->ps_files;
/* default system version for int21/ah=30 */
p->ps_retdosver = (LoL->os_setver_minor << 8) + LoL->os_setver_major;
/* first command line argument */
/* p->ps_fcb1.fcb_drive = 0; already set */
fmemset(p->ps_fcb1.fcb_fname, ' ', FNAME_SIZE + FEXT_SIZE);