Mail Archives: djgpp-workers/1998/07/28/14:48:37
According to Eli Zaretskii:
> Could you please use your test program to see what is the seg:off
> address of the font in those cases which work (including QEMM and
> DISPLAY.SYS) and in those where it breaks.
>
> One solution is obviously to tell people to unload EMM386, or replace
> it with QEMM, or not load DISPLAY.SYS. But I would like to find a
> solution even with both of them loaded, since somebody might need
> that.
Ok, here are the results. All configurations except the last work.
The program was compiled using DJGPP v201.
es and bp is the seg:off you asked for, font_seg is probably not
interesting and src and dest is calculated from seg:off respectively
font_seg:
src = ( ( (unsigned)regs.x.es ) << 4 ) + regs.x.bp;
dest = ( (unsigned)font_seg ) << 4;
QEMM, QDPMI, DJGPP v201: works fine:
es = 0xffff; bp = 0xb4f2; font_seg = 0x2cee; src = 0x10b4e2; dest = 0x2cee0.
QEMM, QDPMI, DJGPP v202: works fine:
es = 0xffff; bp = 0xb4f2; font_seg = 0x2cf8; src = 0x10b4e2; dest = 0x2cf80.
QEMM, CWSDPMI, DJGPP v202: works fine:
es = 0xffff; bp = 0xb4f2; font_seg = 0x2634; src = 0x10b4e2; dest = 0x26340.
EMM386, No DISPLAY.SYS, DJGPP v202: works fine:
es = 0xc000; bp = 0x4ab0; font_seg = 0x2a34; src = 0xc4ab0; dest = 0x2a340.
No EMM386, DISPLAY.SYS, DJGPP v202: works fine:
es = 0xffff; bp = 0xbf32; font_seg = 0x5634; src = 0x10bf22; dest = 0x56340.
EMM386, DISPLAY.SYS, DJGPP v202: crashes:
es = 0xffff; bp = 0xbf32; font_seg = 0x2e34; src = 0x10bf22; dest = 0x2e340.
Exiting due to signal SIGSEGV
Page fault at eip=00001e67, error=0005
eax=0010c000 ebx=0002e455 ecx=00000006 edx=00000000 esi=0010c001
edi=0000001b
ebp=0004dcc0 esp=0004dc58 program=c4.exe
cs: sel=00e7 base=100a0000 limit=0005ffff
ds: sel=00ef base=100a0000 limit=0005ffff
es: sel=00ef base=100a0000 limit=0005ffff
fs: sel=00ff base=00000000 limit=ffffffff
gs: sel=00ff base=00000000 limit=ffffffff
ss: sel=00ef base=100a0000 limit=0005ffff
Call frame traceback EIPs:
0x00001e67
0x00001e98
0x00002cd2
Silence,
MartinS
- Raw text -