VOGONS


DOSBox bugs

Topic actions

First post, by SoftCat

User metadata
Rank Member
Rank
Member

1) Incorrect scroll for negative values of registers 0Ch, 0Dh of port 3D5h.
See scroll.zip
Test programs: hs.com, vs.com
Results:
hs.gif, vs.gif -- MS-DOS videos
hs_dosbox.gif, vs_dosbox.gif -- DOSBox videos

----------------------------------------------------------------------------

2) Incorrect CGA and EGA emulation in text modes on vgaonly, svga_s3, ... machines.
See scanlines.zip
Test program: sl.com
Results:
sl_cga.png, sl_ega.png -- MS-DOS screenshots
sl_cga_dosbox.png, sl_ega_dosbox.png -- DOSBox screenshots

----------------------------------------------------------------------------

3) Incorrect PC-Speaker sound
See sound.zip
Test program: snd.com
Results:
snd.wav -- MS-DOS sound (five short signals)
snd_dosbox.wav -- DOSBox sound (one long signal)

Reply 1 of 56, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Please add what exact graphics card and gfx bios you used.

Reply 2 of 56, by SoftCat

User metadata
Rank Member
Rank
Member

My Graphics Card:
ASUS EN7300TC512
NVIDIA GeForce 7300 LE
My Graphics BIOS in file v_bios.bin.
Scroll supported on all CGA, EGA, VGA and SVGA cards. MDA and Hercules -- i don't know.
CGA/EGA emulation in text modes (int 10h, function 12h, subfunction 30h) supported on all VGA and SVGA cards.

Reply 3 of 56, by SoftCat

User metadata
Rank Member
Rank
Member

Phase change between signals in file snd.wav (MS-DOS).

Reply 4 of 56, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I think #2 is more of a "not implemented" thing than a bug. I only know of one game that needs it.

Reply 5 of 56, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Yes, cga/ega emulation functionality under vga type machines is quite useless,
if you want the different appearance just use the respective machine type.

Dunno about negative scrolling values (text mode only?) as they should be
plain unsigned values, but may be interesting.

Reply 6 of 56, by SoftCat

User metadata
Rank Member
Rank
Member

On CGA machines i can't load font for text modes.

In graphics modes too. Video memory as a ring.

Last edited by SoftCat on 2009-06-29, 19:22. Edited 1 time in total.

Reply 7 of 56, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Any game that actually uses such functionality?

Reply 8 of 56, by SoftCat

User metadata
Rank Member
Rank
Member

Old russian games which directly accessed hardware CGA registers in text modes. These games works correctly only on russian PC-XT machines with CGA cards (with russian symbol generators).

Reply 9 of 56, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You can load some graphics bios in dosbox (ldgfxrom in debugger-enabled build),
like the elpin bios that comes with bochs.

Reply 10 of 56, by SoftCat

User metadata
Rank Member
Rank
Member
	/*regular setup*/
PROGRAMS_MakeFile("MOUNT.COM",MOUNT_ProgramStart);
PROGRAMS_MakeFile("MEM.COM",MEM_ProgramStart);
PROGRAMS_MakeFile("LOADFIX.COM",LOADFIX_ProgramStart);
PROGRAMS_MakeFile("RESCAN.COM",RESCAN_ProgramStart);
PROGRAMS_MakeFile("INTRO.COM",INTRO_ProgramStart);
PROGRAMS_MakeFile("BOOT.COM",BOOT_ProgramStart);
#if C_DEBUG
PROGRAMS_MakeFile("LDGFXROM.COM", LDGFXROM_ProgramStart);
#endif
PROGRAMS_MakeFile("IMGMOUNT.COM", IMGMOUNT_ProgramStart);
PROGRAMS_MakeFile("KEYB.COM", KEYB_ProgramStart);

Please give me debug compilation with LDGFXROM.COM.

Reply 11 of 56, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie
SoftCat wrote:

Please give me debug compilation with LDGFXROM.COM.

Seriously, it's not that hard to find

Reply 12 of 56, by SoftCat

User metadata
Rank Member
Rank
Member
Kippesoep wrote:

Seriously, it\'s not that hard to find

Thank you very much.

Reply 13 of 56, by SoftCat

User metadata
Rank Member
Rank
Member

How i can load font for text modes on CGA machine? With ldgfxrom?

Reply 14 of 56, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You can't.

ldgfxrom can load a custom graphics bios, which (for example in the case
of elpin) may provide cga/ega emulation capabilities under vga.

Reply 15 of 56, by SoftCat

User metadata
Rank Member
Rank
Member

How i can do this? Before starting "DOS" in DOSBox?

Reply 16 of 56, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Nope, on the dosbox prompt. Something like "ldgfxrom vgabios.rom"

Reply 17 of 56, by SoftCat

User metadata
Rank Member
Rank
Member
wd wrote:

Nope, on the dosbox prompt. Something like "ldgfxrom vgabios.rom"

Thank you very much.

Again bug.
4) Incorrect scroll for POSITIVE values of registers 0Ch, 0Dh of port 3D5h on CGA machine.
See scroll2.zip
Test program: hs2.com
Results:
hs2_vga.gif -- DOSBox video of vgaonly machine correct scroll (register := register + 1 <=> address := address + 2)
hs2_cga.gif -- DOSBox video of cga machine incorrect scroll (register := register + 1 <=> address := address + 1)

Reply 18 of 56, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Could you make one for Hercules? (3bxh instead 3dxh, or use the address that's in the BIOS data area). So I can check real hardware.

1+1=10

Reply 19 of 56, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Nevermind, I've hex-edited the com file - it works the same as on CGA.

1+1=10