Problems detecting the EMM
Hi,
I have problems with an accounting software for a hotel.
It refuses to run under DOSEMU but fails reporting a missing EMM. I have loaded "ems.sys" within "config.sys", and xms, ems, and dpmi memory settings in "dosemu.conf" seem ok to me.
Tracing the program's system calls with "dosemu -Da" showed me it tries to detect an EMM by opening the 'files' EMMXXXX0, EMMQXXX0, $MMXXXX0, QMMXXXX0, EMMXXXQ0 and QEMM386$. See the trace snippet below.
INT21 (0) at 12bb:7ff7: AX=3d00, BX=0000, CX=ffef, DX=100a, DS=1b5d, ES=f800
INT21: open file "EMMXXXX0"
int 0x21, ax=0x3d00
INT2F at 003e:ac43: AX=1123, BX=0003, CX=6a99, DX=100a, DS=1b5d, ES=0139
MFS: Entering dos_fs_redirect, FN=23
MFS: selecting drive fn=23 sda_cds=0x1fbaf
MFS: FNX=EMMXXXX0
MFS: dos_fs: build_ufs_path for DOS path 'EMMXXXX0'
MFS: MFS: dos_gen: ufs '/root/dosemu/drives/d/', path 'EMMXXXX0', l=22
MFS: dos_gen: path_to_ufs 'emmxxxx0'
MFS: dos_fs: build_ufs_path result is '/root/dosemu/drives/d/emmxxxx0'
MFS: no drive selected fn=23
MFS: Finished dos_fs_redirect
int 0x2f, ax=0x1123
INT2F at 003e:6ae5: AX=1116, BX=6a99, CX=0000, DX=1000, DS=0139, ES=0139
MFS: Entering dos_fs_redirect, FN=16
MFS: selecting drive fn=16 sda_cds=0xfcb8
MFS: selected drive 3: /root/dosemu/drives/d/
MFS: (mode = 0x0000)
MFS: (sft_open_mode = 0x0000)
MFS: Open existing file D:\HOTEL2\EMMXXXX0
MFS: dos_fs: build_ufs_path for DOS path 'D:\HOTEL2\EMMXXXX0'
MFS: MFS: dos_gen: ufs '/root/dosemu/drives/d/', path '\HOTEL2\EMMXXXX0', l=22
MFS: dos_gen: path_to_ufs '/hotel2/emmxxxx0'
MFS: dos_fs: build_ufs_path result is '/root/dosemu/drives/d/hotel2/emmxxxx0'
MFS: find_file(/root/dosemu/drives/d/hotel2/emmxxxx0)
MFS: find file /root/dosemu/drives/d/hotel2/emmxxxx0
MFS: scan_dir(/root/dosemu/drives/d/hotel2,emmxxxx0)
MFS: scan_dir gave emmxxxx0 FALSE
MFS: find_file(): no match: /root/dosemu/drives/d/hotel2/emmxxxx0
MFS: find_file gave /root/dosemu/drives/d/hotel2/emmxxxx0 0
MFS: open failed: '/root/dosemu/drives/d/hotel2/emmxxxx0'
MFS: Finished dos_fs_redirect
INT21 (0) at 12bb:7ff7: AX=3d00, BX=0000, CX=ffef, DX=1013, DS=1b5d, ES=f800
INT21: open file "EMMQXXX0"
int 0x21, ax=0x3d00
etc. etc.
Discovering that I checked how the DOSEMU "ems.sys" calls himself: It would respond to " EMS", but not on anything of the above :(
My question now: Is it possible to change the name the "ems.sys" driver reports?
Any help appreciated
Jan
Quoted 6 lines · Jan Kandziora
Tracing the program's system calls with "dosemu -Da" showed me it tries to detect an EMM by opening the 'files' EMMXXXX0, EMMQXXX0, $MMXXXX0, QMMXXXX0, EMMXXXQ0 and QEMM386$. See the trace snippet below.
INT21 (0) at 12bb:7ff7: AX=3d00, BX=0000, CX=ffef, DX=100a, DS=1b5d, ES=f800
INT21: open file "EMMXXXX0"
I solved this issue only recently in dosemu-1.1.3.3 and later. EMMXXXX0 is the name of the device, however previous dosemu's did not recognize it as a device name.
In earlier versions you could quickly hack around the issue by adding EMMXXX0 to the list of reserved names ("CON", "AUX" etc) in src/dosext/mfs/mangle.c. The newest DOSEMU's walk the DOS device driver chain to find out which names correspond to devices which is a better way to do this IMHO.
Bart