Home Page

PC/XT/AT (inside) WIP topic

Posted By: Kale

PC/XT/AT (inside) WIP topic - 01/12/12 11:46 PM

This topic is for everything WIP related to our beloved PC world. Bug entry on Wiki will come up in these days ...

Preliminary fix for double scan condition in EGA mode, fixes Williams Arcade Classics in-game gfxs:



Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/13/12 06:06 AM

Except now I am seeing double in Commander Keen 4 and Duke Nukem II:





These were working before.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/13/12 09:42 AM

Pushing the new driver to the limit almost.

Indycar Racing



Rise Of The Triad PC Demo



DOOM SE



Heretic PC Demo





Hexen PC Demo





Duke Nukem 3D (Slight texture issues with rooftops, ledges and some flooring).





Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/13/12 09:42 AM

Shadow Warrior





Blood (Including intro + slight texture issues)







Pinball Illusions (Works with some slight graphical issues) Sound is PC speaker and set to maximum quality, sounds perfect, no high piercing noises as with Pinball Dreams.



Text looks normal here, but in game it appears to be overlapping itself a number of times and is constantly flickering. Ingame menu also suffers from the same problem.



Some slight issues with the score display at the bottom. The flippers also suffer from some weird lines that appear on them when they move.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/13/12 09:54 AM

Quarantine (runs perfectly)





DOOM 2





Pinball Dreams 2







Other Issues:

Blake Stone: 2D works, 3D is one big coloured mess.

SimCity 2000: Needs properly VESA resolution support. The resolution is all stretched and disorted at the top of the screen. Tried Trident VGA, but no ingame graphics, just letters and numbers instead. Tried various VESA and VGA cards in the list, no luck though.

FIFA International Scocer: Still get a memory error. Abnormal Program Termination: Memory Protection Fault. CS: EIP = 000FH:0009C4E7h

FIFA 97: Works, but needs VESA resolution support so the image is well and truely not displayed correctly (just a bit at the top all stretched out). The intro, menu, loading screen and gameplay all loop over and over within 10 seconds or so.

Wacky Wheels: Works, but asks to press FIRE to start the game. By default FIRE is mapped to the SPACE BAR but nothing happens when I press it, in fact no key on my keyboard responded.

Grand Theft Auto: VESA. Receive a GTA8.EXE or GTA24.EXE is not a WATCOM program error.

CD2 Demo (Demoscene Demo from Triton). No keyboard input at the sound select screen.

Robotnik - Punish Your Machine Demo (Demoscene Demo from Rage): Crashes back to Windows after selecting a sound device, ie: none or one of the other sound options.

Need For Speed 1 Demo: Needs proper VESA resolution support. Complained about a joystick even though I disabled in the MESS ini. Pressing any key casues the driver to crash back to the desktop.

Quake: (AT486) - After typing quake at the command prompt, the cursor goes down one line and just blinks. If I hit F10 to speed things up, the machine is running at like 500%. The demoscene demo MEGAMIX from RealTech also does this. (AT586) - General Protection Fault at eip=3cf55078; flags 3096 and a bunch of other error codes after it.

Nascar Racing Demo: Can't go ingame, can use arrow keys up and down in the menu, but when I press ENTER, the text goes white and goes no further. Pressing ESC brings the text out of white to yellow (default colour).

Ignition: Pressing my luck with this one. Get a black screen only.

Screamer, Fatal Racing (Whiplash) and Future Crew's Second Reality demo all crash back to the desktop.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/13/12 10:19 AM

Indycar (in-game)

But keyboard don't function when choosing in the menu

Red Baron:
Posted By: Heihachi_73

Re: PC/XT/AT (inside) WIP topic - 01/13/12 11:38 AM

Was that the free version of Grand Theft Auto (GTA1) from Rockstar's website, or the original DOS/Win95 version? I'm assuming the free version, since the original game was CD only.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/13/12 11:43 AM

Not the free version, it was the CD-ROM version that I had installed in to DOSBOX. I managed to find a no cd patch for it and it works in DOSBOX, but no luck in MESS yet.
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 01/13/12 10:24 PM

Forgive my ignorance but how are you copying these games to the .CHD image?

I only understand how to create and use .IMA images for the floppy drive and then install to the .CHD hard drive from there.

Is there a .CHD explorer or CD drive device that I'm not aware of?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 01:06 AM

The way I do it is like this (I'm using my at486.chd file as the example in here, which is 500MB in size):

Extract the *.chd file to a *.raw file using chdman.

chdman -extract at486.chd at486.raw (or whatever your filename is called)

Once you have the *.raw file, open it up in winimage (www.winimage.com). You'll get popup box with a drop down appear. Because I now have a 500MB *.raw file, I get a message that says: "Partition on disk 0, size:511024 MB, FAT". When you see this, just hit OK.

You'll see the entire drive in a windows explorer type of a view, (use the options menu to change the view is you wish). Here you can drag and drop files and folders in to the big white window. You can also delete and extract files and folders, but you can't open and edit a file.

Everytime you inject a file or a folder full of files in to the image file within winimage, it's automatically saved. So once you've copied enough games or whatever it is what you want in there, you can just close winimage, you don't need to save anything and it won't prompt you either. There is a save button at the top that you can use if you want though.

To convert the *.raw file back to a *.chd file, you'll first need to either backup or delete your old *.chd file. Once you've done that, type the following:

chdman -createuncomphd at486.raw at486.chd (or whatever your file name is called)

Load your *.chd file in MESS and you should be good to go!

I ended up creating batch files to extract and convert the raw and chd files, it was becoming a real pain in the ass having to type it all everytime. I just double click on the batch files now, so much easier.

There is a program that comes with MESS and MAME called "wimgtool". You can try using that, but when I try to load the *.chd file, it says it's corrupted.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 02:02 AM

Destruction Derby (Works but runs slow, has graphical issues as well. Also, when you change the camera to view to "behind the car", the camera switches to a replay type of view whereby you watch the car drive by you, as in the camera being placed on the side of the road instead).

Logo has the correct aspect ratio in-game.





Tried to ram him here, but just missed.



Suppose to be the "behind the car" view, ends up being a replay type of view. Hard to drive smile

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 04:32 AM

Virtual Pool (missing score display and other information at the bottom of the screen there. Graphics become garabled if you move the the mouse around too much, see last two screenshots. Also supports VESA 640x480, not working though for obvious reasons. Sound Blaster 1.0 and Adlib work in playing MIDI music. Only Adlib produces the sound effects however.)









Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 11:23 AM

Inertia Player v1.22 (Very popular module file player back in the day. Sound being pumped out by Adlib at 44kHz).











Links Golf (Links 386 needs VESA, not working yet).











Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 01/14/12 12:34 PM

Quote:

The way I do it is like this (I'm using my at486.chd file as the example in here, which is 500MB in size):


If I try to create a blank (80MB) .CHD according to the BIOS settings:

chdman.exe -createblankhd hdd.chd 1024 9 17

and then convert that to a .RAW file:

chdman.exe -createblankhd hdd.chd 1024 9 17

NOTE: I have no idea how to create a compatible .CHD image that is 500MB in size?!

Quote:

Once you have the *.raw file, open it up in winimage (www.winimage.com). You'll get popup box with a drop down appear. Because I now have a 500MB *.raw file, I get a message that says: "Partition on disk 0, size:511024 MB, FAT". When you see this, just hit OK.


I get the following error instead:

Error reading file C:\MESS\hdd.raw

Quote:

There is a program that comes with MESS and MAME called "wimgtool". You can try using that, but when I try to load the *.chd file, it says it's corrupted.


I originally tried to use this as it made sense to start there:

Unrecognized format

Which seems a little odd.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 01:05 PM

Sorry, I assumed you already had the CHD. To create a 500MB CHD file named hdd.chd in chdman, type the following command:

chdman -createblankhd hhd.chd 1015 16 63

From the error your getting, I'm assuming your chdman.exe file is in your MESS folder located at C:\MESS\.

You'll need to install MS-DOS in it before using it properly in winimage. You might have to set the boot sequence in the BIOS to a:,c:.

Once you've created your hdd.chd file, or if you already have an existing *.chd file that you want to convert to a *.raw file, type the following command to convert it to a hdd.raw file.

chdman -extract hhd.chd hdd.raw

It should open up in winimage now.

To set this up in the BIOS, just copy the screenshot.



I've tried creating a 1GB chd file, but the driver won't accept it properly and MS-DOS freaks out when trying to install on it. 750MB might work. It's possible now actually have two hard drives installed, so you get both c:\ and d:\. I'll probably just stick with that for now.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 01:11 PM

Speed Haste (1995):











Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/14/12 02:04 PM

Theme Park (1994):



Intro:



My 2 second crap looking park overgrown with flowers. Text caption gets stuck even when I move the mouse away. Screen does not scroll automatically when moving the mouse the near the edge of the screen. There are also two pieces of seperate footpath you can see on the left and the right of the image, these constantly flash. I wasn't able to stop them from flashing, despite what the guy was telling me to do there. Other than this, it runs fine.

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/14/12 02:23 PM

A FPU rewrite is in progress by Mr. Phil, so hopefully all those texture bugs should fly away.

My end plan instead is to support VESA ... once that I fully rewrite VGA to a proper modern device (current code is basically horrendous).

Quote:
You'll need to install MS-DOS in it before using it properly in winimage. You might have to set the boot sequence in the BIOS to a:,c:.


Now that I think of it (I've thought that was a bug) ... how to do it?
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 01/14/12 02:58 PM

Quote:

Sorry, I assumed you already had the CHD.


No need for apologies. With your help I have successfully got a 500MB DOS HD up and running.

When I run DOOM2 I get the following screen though:



My Config.sys file is as follows:

Code:
DOS=HIGH,UMB
device=c:\dos\himem.sys /v
SHELL=C:\COMMAND.COM /E:256 /P


Also, when exiting the EDIT program I always get the following error:

Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/14/12 03:15 PM

Originally Posted By MikeAbson

To set this up in the BIOS, just copy the screenshot.



I've tried creating a 1GB chd file, but the driver won't accept it properly and MS-DOS freaks out when trying to install on it. 750MB might work. It's possible now actually have two hard drives installed, so you get both c:\ and d:\. I'll probably just stick with that for now.
It's possible, but you'll have to set-up Dos in Bosch. I've got a 1.5GB drive laugh



Uploaded with ImageShack.us

Originally Posted By Dr. Spankenstein

When I run DOOM2 I get the following screen though:




Try Running the driver with -ramsize 8388608
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/14/12 03:18 PM

-ramsize 8M is less typing smile
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 01/14/12 04:10 PM

All working great now! Thanks guys. smile
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 01/14/12 05:45 PM

With sound you can try -isa4 sblaster as example.
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 01/14/12 08:29 PM

Just remember that every 386 I have ever seen could only handle a half-gig hard drive as maximum size. Going larger produces unpredictable results depending on the computer - I wouldn't try it.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/14/12 10:49 PM

More magic from Carl. laugh



Still a few niggly issues, but it runs.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 01:30 AM

I've got a question about the Sound Blaster 1.5 support. I have here the two original floppy disk images for driver installation. The drivers install fine, however when I run "test-sbc.exe", it can't find I/O address at 220 Hex. I tried all values, but no luck. I don't know this is related to incomplete sound blaster emulation or some other reason. If anyone wants the drivers for testing purposes, you can get them here:

http://www.mediafire.com/?xnfb45xjxqada (look for Sound Blaster 1.5 Disks 3.5.zip - 748k).

Some games, like Pinball Dreams for example, will work when selecing the Sound Blaster, (apparently it does not rely on on the set sound / set blaster values), but games such as DOOM for example need these values set correctly before it will work.

Sorry, I should have mentioned. I have "sblaster1_5" installed in an ISA slot before MESS is loaded, in otherwords I've got this line at the bottom of my at486.ini file:

#
# SLOT DEVICES
#
isa4 sblaster1_5

I've tried all 4 ISA slots, yet get the same result. I also have the following line within my autoexec.bat file (it tells you to add it after installation or to just run it from the c: prompt before running a game that has sound blaster support.

SET SOUND=C:\SB





Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/15/12 01:34 AM

Sound Blaster support is very preliminary. I'd be working on it right now if Kale hadn't announced u6 and obligated me to run a lot of clean compiles smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 02:06 AM

Originally Posted By Kale
Now that I think of it (I've thought that was a bug) ... how to do it?


Definitely not a bug from what I can tell. I can successfully install MS-DOS 6.22 within the at486 driver without any problems, after creating a new empty hhd image within chdman.

If you attempt to boot a new CHD that has no OS on it, it'll say something along of the lines of inserting a system disk, or NO ROM BASIC, SYSTEM HALTED (usually get this message if you fdisk the drive and remove the partition completely, and you have no MS-DOS startup or install disk in the floppy drive).

In the BIOS, under Advanced CMOS Setup, change the System Boot Up Sequence from C:, A: to A:, C:. While your in here, you might as well add in your hard drive and MS-DOS floppy disk 1 image as the same time. As long as your hard disk is being recognized in the BIOS, reboot and MS-DOS should come up for installation. You won't be able to install MS-DOS on a hard drive that is 1.5GB is size though, hence the reason you've done that through Bochs already smile







Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 02:07 AM

Originally Posted By R. Belmont
Sound Blaster support is very preliminary. I'd be working on it right now if Kale hadn't announced u6 and obligated me to run a lot of clean compiles smile


Glad to hear that, no problem.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 02:57 AM

Pinball Fantasies (1992 / 1993) - Weird graphics in the menu, and can't "arrow down" to launch the ball.







No score display at the bottom when selecting "high" resolution mode.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 04:13 AM

The Simpson's Arcade (1991): (Half of the screen not being displayed properly)



Microprose Formula One Grand Prix (1992): (Steering works).





Black Thorne: Wouldn't run, says it needs at least 2MB of EMS.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/15/12 04:37 AM

Originally Posted By MikeAbson


Microprose Formula One Grand Prix (1992): (Steering does not work as it relies on the arrow keys only. The game gives you the option to steer with the mouse, yet I was not able to do so, despite navigating the game around with it. Maybe someone else will have some luck).




Mikeabson You need to use the following keys for steering :
  • Left: <
  • Right: >
  • Accelerate: A
  • Stop: Z


2 Scanned pages from my manual about Key guide:
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 06:15 AM

That's right, but instead when I would use the arrow keys, the view would change. Turns out the same thing happens in DOSBox, so the issue is not with MESS at all. Either my copy is screwed up or I need look at it some more and try to restore all the defaults for the controls, otherwise it would seem a good copy of the game would work just fine in MESS.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/15/12 07:54 AM

Originally Posted By MikeAbson
That's right, but instead when I would use the arrow keys, the view would change. Turns out the same thing happens in DOSBox, so the issue is not with MESS at all. Either my copy is screwed up or I need look at it some more and try to restore all the defaults for the controls, otherwise it would seem a good copy of the game would work just fine in MESS.


">" means "Greater-Than Symbol", not "Left Arrow". Not coincidentally, "<" means "Less-Than Symbol", not "Right Arrow". I think that's where the confusion may be.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/15/12 08:01 AM

You're right, that's what it was. I can steer the car now, so your version of the game works fine Kaylee.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/15/12 08:08 AM




PS. Needs Microsoft Mouse 6.10Z or older, else it won't work.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/15/12 11:15 AM

r14041

Reset NT flag on interrupt from virtual 8086 mode. This makes EMM386 more stable (doesn't crash out when you run certain other programs), and stops Windows 3.0 dropping back to the prompt when closing a program in 386 enhanced mode.



All right, not a PC screenshot, I just didn't have MEM.EXE in my DOS 6 setup. wink
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/15/12 03:39 PM

Second Reality (and Panic) continue to be broken, but FC's other big production mostly works:



Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/15/12 05:05 PM

Uhm ...

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/15/12 05:24 PM

If CWSDPMI works, you should be able to run DOSMAME all the way up to whenever it stopped. Might be easier to put together ROMs for a newer version smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/15/12 10:10 PM

Some weird VGA issues and it doesn't detect the mouse, but the AdLib sound works and it seems to be playable.


Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/15/12 10:33 PM

Originally Posted By R. Belmont
Some weird VGA issues and it doesn't detect the mouse, but the AdLib sound works and it seems to be playable.



Wow. That's impressive (especially if you know how difficult it was getting this game to run on real hardware, with all its memory requirements and stuff)

This makes me want to see how Zone66 runs, though I can't find my copy of it right now. There were at least 2 different versions, the first of which used a very custom DOS extender that was quite hard to get running even on real hardware. The second one switched to PMode/w (I think) and thus worked almost everywhere.

-Darkstar
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/15/12 11:01 PM

Ok, found the CD (although I think it's the newer version; I'm not sure)

It runs pretty damn well, even the sound works 100%. You have to start it with "zone66 /k /s" though, otherwise it will assume a joystick and keep flying you around in circles grin

/s is for SB sound, obviously





Also I think [w]imgtool.exe is broken for bigger files. When I tried to insert a 3.4m ZIP file, I ended up with a corrupted 40k file in the CHD, so I had to unpack it on the host and insert every file manually; this worked

Edit: just noticed that Zone66 uses the SB DSP FIFO command 0x6e, for which I couldn't find any documentation.

-Darkstar
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/15/12 11:08 PM

I wouldn't sweat unknown FIFO commands, they're largely going to appear as an artifact of known-but-unhandled commands.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/15/12 11:19 PM

I bet it's the same thing I've just fixed anyway.
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 01/16/12 10:14 AM

Awesome, Ultima VII. One of my favourites. What about Ultima Underworld? wink

Out of interest, has anybody tried the likes of 3D Studio or any other 386/486 era FPU-reliant software?
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/16/12 04:42 PM

I think that Destruction Derby already abuses of the FPU (and if I've understood it correctly it has collision issues)
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/16/12 04:57 PM

Yeah, the 3D games on earlier pages of this thread are using the FPU and could probably stand to be re-run with the changes that were submitted.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/16/12 09:43 PM

I'm not entirely sure what changes have been made, but I'll run those games I posted at the start of this thread again. Is it sound and video corrections l'm looking for?
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/16/12 09:54 PM

Video corrections.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/16/12 10:00 PM

Any game with 3D polygons or 3D features (Destruction Derby and Virtual Pool in particular).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/16/12 10:05 PM

No problems.
Posted By: Sune

Re: PC/XT/AT (inside) WIP topic - 01/16/12 10:17 PM

Geoff Crammond's Stunt Car Racer (EGA) and The Sentinel (VGA) sound like good candidates.

Stunt Car Racer is pretty straight forward, if you aren't familiar with The Sentinel, visit its Wikipedia article. It's "different".
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 01/16/12 11:24 PM

Make my day and test Grand Prix Unlimited and Disney's Coaster? smile
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 01/16/12 11:28 PM

You won't find any pre-486/Pentium era games using the x87, main reasons being that it was an expensive upgrade until the arrival of the 486DX and the additional precision was of little benefit given the x87's performance. I can think of two exceptions - Falcon 3.0 and El Fish.

As mentioned, anything 3D requiring a 486 and upwards is a good bet.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/17/12 12:18 AM

did things like Imagine run on a 486, or require higher? I remember that being rather hilarious because the entire program mimics the original Amiga interface, in DOS..

Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 12:24 AM

Jazz Jackrabbit bails with:

Quote:

Unhandled exception 000D at 0020 3A36 ErrCode 0100
Loader error (000D): unrecognized error

C:\GAMES\JAZZ>


Nooo, my precious
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 12:51 AM

Coaster, by Disney Interactive





















Works great, and the game is still rad as hell.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 01:27 AM

Pickle Wars, by Redwood Games



















Works great, and the game is still weird as hell.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 01:53 AM

With the latest SB FIFO changes and sblaster1_5, Wolfenstein 3D is unable to get into the game. In particular, this is printf'd:

SB FIFO command: d1
SB FIFO command: 40
Set time constant: 72 -> 7042
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/17/12 02:23 AM

Fractint would be a good FPU test case. With the latest SVN it's graduated from "dies horribly" to "calculates a big empty image instead of the Mandelbrot set and prints funny error messages"
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/17/12 09:21 AM

Alrightly, testing out the updated video corrections that have been made, both Destruction Derby and Virtual Pool have the same problems as before unfortunately, however on the Build Engine side of things, with the exception of some text in the Shadow Warrior menu and loading screens, being black and not white, they look fine now.

Duke Nukem 3D: Graphics fixed.









Blood: Graphics fixed.







Shadow Warrior: I didn't test thoroughly enough before, but I'm going to assume it previously had graphical errors just like the other two build games above did. It's fine now, except for some text in the menu and loading screen, which is suppose to be a white colour, not black.





Sorry, I should also mention in regards to the issue I had with Destruction Derby, and the camera reverting to a replay type of a view when driving from "behind the car", this camera switch only happens when I go around a corner, once I'm out out the corner and on to a straight, the camera goes back to being behind the car. This does not happen in dosbox though.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/17/12 10:44 AM

Grand Prix Unlimited:









Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/17/12 11:13 AM

Originally Posted By Justin
Except now I am seeing double in Commander Keen 4 and Duke Nukem II:





These were working before.


Looks like all Early VGA games is now broken frown tested a few more (looks like Kale's Doublescan fix might cause it)


Filed a bug here: http://bugzilla.mess.org/show_bug.cgi?id=2108

(PS> Did a test with the Doublescan removed and it fixed the problem)
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/17/12 04:27 PM

That isn't "early" VGA, it's EGA.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/17/12 04:42 PM

The splash screen for the Space Pigs EGA Megademo has the same problem. Not that more test cases are probably necessary smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/17/12 08:23 PM

Ok, regression should be gone for good with latest. Additionally I should have fixed a bunch of line compare bugs as well.
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/17/12 08:30 PM

Thanks muchly smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/17/12 09:29 PM

Intermission:

Fixed bit 0 input state in CGA, fixes booting in Dig Dug:





This is actually the same in VGA, so it might fix rasters for The Incredible Machine.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 10:49 PM

Ladder Man I, by Soleau Software, has extremely broken colors. I would link to a site that has proper screenshots, but technically it's a link to a ROM site, so I can't do that. However, here are the broken shots:







Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 10:56 PM

ZZT, by Epic Megagames













Works great and is still just as awesome as I remember it. Notably, this was one of the first games that couldn't be played in Windows's MS-DOS compatibility mode due to the lower 4 lines or so of text being cut off for some reason, so it's great to see it in MESS again. Sure, it worked in DOSBox, but it's not quite the same.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 11:04 PM

Brix, by Michael Riedel



















Another one that works just fine, with decent Adlib background music and sound effects as well. Honestly, I'm pleasantly surprised at how many games work more or less without issues.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/17/12 11:40 PM

Ladder Man III, by Soleau Software

Same issues as the first.












Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/18/12 12:00 AM

Originally Posted By Just Desserts
Ladder Man I, by Soleau Software, has extremely broken colors. I would link to a site that has proper screenshots, but technically it's a link to a ROM site, so I can't do that. However, here are the broken shots:









This is probably what it's supposed to look like:



Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/18/12 09:15 AM

Wacky Wheels: Mario Kart clone for the PC, fun game. The keyboard / joystick changes now allow me in to play. Not sure what's up the incorrect aspect ratio of the screenshots though, game looks normal when you actually play it.









Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/18/12 10:08 AM

This one needs some debugger trickery to work currently, but it is rather special...




MAME 0.1

For those interested, the debugger trickery is as follows (bold items are debugger commands):
Open the debugger
bpset 1003c2b5
Continue emulation and run MAME
Wait until the debugger breaks in again
eax=ecx
Continue emulation, and viola, MAME runs and is playable.
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 01/18/12 01:08 PM

Originally Posted By mahlemiut
This one needs some debugger trickery to work currently, but it is rather special...


\o/ You've done it! \o/ laugh
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/18/12 01:18 PM

MikeAbson: MESS takes screenshots that are 1:1 from the framebuffer, before the stretching applied to give it the proper aspect ratio on your screen. Looks like that game is using one of the weird "Mode X" modes: 320x400 or something like that.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/18/12 02:15 PM

Looks like it's now defaulting to 320x400 (but me don't mind, It's displaying correctly)

Star Wars X-Wing - Space Combat Simulator

Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 01/18/12 04:52 PM

Originally Posted By mahlemiut
This one needs some debugger trickery to work currently, but it is rather special...




MAME 0.1

For those interested, the debugger trickery is as follows (bold items are debugger commands):
Open the debugger
bpset 1003c2b5
Continue emulation and run MAME
Wait until the debugger breaks in again
eax=ecx
Continue emulation, and viola, MAME runs and is playable.


How about to run a early version of MESS? ; )
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/18/12 05:18 PM

Originally Posted By Anna Wu
How about to run a early version of MESS? ; )


Much more difficult - the first version of MESS was based on a MAME somewhere in the 0.3x cycle.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/18/12 05:22 PM

Anything that runs with 320 x 400 it's because it's enabling double scan mode. According to the docs that literally doubles every scanline, so 320 x (200 * 2).

And well, MESS 0.1 is actually based on MAME 0.35, I'm not that sure that I would like to try that on a 486 tbh.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/18/12 05:25 PM

MAME 0.35 still had paletted 8-bit output and dirty rectangles so it should run just as well as 0.1 on the same hardware for non-scrolling games. And it uses the same DOS extender so a similar debugger trick should work.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/18/12 06:11 PM

you mean you don't want to emulate Stephh's development environment for most of the time I was doing MAME stuff...

IIRC he was still using a 486 well into the .80s with overnight 48 hour compiles ;-)

Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/18/12 07:29 PM

Master Of Magic (played it for a bit, but I'm not really that good in it)

Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/18/12 09:13 PM

Originally Posted By Haze
you mean you don't want to emulate Stephh's development environment for most of the time I was doing MAME stuff...

IIRC he was still using a 486 well into the .80s with overnight 48 hour compiles ;-)


I had a quote of Stephh from the old MAME forums in my EMail signature for some time:
"And if I'm the last DOS user - emulate me now!"
...I think when I made the switch to Windows (somewhere around 2001 or so, and I felt that already was pretty late) he was still using DOS smile

-Darkstar
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 01/18/12 09:32 PM

Tried some things as I was playing with DOS stuffs anyway ... maybe some German keyboard peculiarities here:

I setup a hard drive in the at486 environment.

- On a "real" PC I can get a backslash by pressing AltGR + ß (which is probably -/_ on an English keyboard), here nothing happens, I have to use AltGR+92 (on the numeric keypad)

- If I press Numlock, MESS freezes while beeping incessantly

- Epic Pinball loads fine, loads the table and freezes just before allowing me to play by going into a "pause" state (displayed at the bottom of the screen)

- I also get the "Syntax Error" on trying to exit DOS edit.

It's fun playing with it!

Robert
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/18/12 09:45 PM

A note to everyone taking screenshots who wants them to be in the correct aspect ratio: Just specify -snapsize 640x480 and you should be good to go.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/18/12 09:58 PM

The syntax error in DOS edit is quite annoying; it makes it hard to fiddle with config.sys/autoexec.bat.
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 01/18/12 10:18 PM

Hmm, I wasn't seeing the error in the version I was using. Will check tomorrow.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/18/12 10:28 PM

This is off a fresh DOS 6.22 install. Open any file, going to Exit will show "Syntax Error".
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/18/12 11:00 PM

Thanks to Carl, no more debugger trickery is needed to run MAME 0.1 in MESS. Enjoy. smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/18/12 11:15 PM

Nice smile
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/19/12 02:31 AM



Doesn't do much else yet though
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/19/12 08:31 AM

Virtual Pool: Latest round of VGA fixes have corrected the graphics in this game. The information panel at the bottom now shows, and the graphics don't go all weird when you pan around all over the place. I used Paint to change the pixel height and width so that the aspect ratio looks more normal in here.





Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/19/12 08:43 AM

if you follow JD's advice

Originally Posted By Just Desserts
A note to everyone taking screenshots who wants them to be in the correct aspect ratio: Just specify -snapsize 640x480 and you should be good to go.


you don't need Paint wink

-snapsize can be added either in the command line or in mess.ini
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/19/12 08:57 AM

Sorry, I should read prior comments a bit more, I'll try that next time, thank you smile

Street Rod 2: The graphics go all weird when you drive, appears to be an outstanding bug that I've noticed for a while, but after all the vga fixes lately I was thinking that would have been resolved, which is why I decided to test it out here. The other issue I noticed that wasn't happening before, is that the mouse sometimes has a mind of it's own, and will slide up or down or left or right all by itself.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/19/12 10:06 AM

Indycar Racing: Keyboard response now works in the menu, (it's a bit sensitive though), so it's possible to select different tracks and so fourth.





Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/19/12 10:19 AM

Nascar Racing PC Demo: Keyboard working here as well, now goes in-game.













Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/19/12 11:42 PM

Heroes of Might & Magic tries to access i/o ports at 0x320-1 ... what lies in there?
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 01/19/12 11:53 PM

It's an alternative address for an MPU-401/General Midi device
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/19/12 11:56 PM

Midi IIRC?

*edit* beat to it ;-)
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/20/12 07:04 AM

The ROMs for e.g. the LAPC-I are dumped.... wink
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 01/20/12 07:16 AM

...We just need an intel MCS-96 core for the main cpu.
Any volunteers?
Also, the reverb dsp is an unknown architecture.

(P.S. can someone help me fix the upd772x core so interrupts and p0/p1/serial out works? I can't figure out how to do that with new c++ cpu cores, only on the old ones)

LN
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/20/12 09:02 AM

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/20/12 09:16 AM

I just updated the source code, and now the at driver only runs at 85% instead of 100%, which is a bit odd. This happens on the atvga, at386 and at486 drivers. I can't run the at586 any faster than about 65% idle in DOS anyway. I can push F10 (unthrolled?) and the drivers runs over 100%, so I know my system is capable.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/20/12 12:34 PM

Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/20/12 02:19 PM

On the bright side, Jazz Jackrabbit dies differently now:

Code:
*** Chain Unhandled exception 000B at 00E7 03A6 ErrCode 01D0

C:\GAMES\JAZZ>

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/20/12 02:25 PM

Originally Posted By MikeAbson
I just updated the source code, and now the at driver only runs at 85% instead of 100%, which is a bit odd. This happens on the atvga, at386 and at486 drivers. I can't run the at586 any faster than about 65% idle in DOS anyway. I can push F10 (unthrolled?) and the drivers runs over 100%, so I know my system is capable.


That's quite obvious because the refresh rate is now higher (70 vs. 60 Hz) so there's a definite performance hit.
Posted By: Dr.Zer0

Re: PC/XT/AT (inside) WIP topic - 01/20/12 02:40 PM

Quote:
That's quite obvious because the refresh rate is now higher (70 vs. 60 Hz) so there's a definite performance hit.


Am I wrong, or the screen refresh rate on PC system isn't fixed ?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/20/12 02:46 PM

It's not, but most VGA cards are programmed for 70 Hz refresh at common rates, and Kale in fact emulates that now.
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/20/12 03:09 PM

If you're getting exactly 85% that means it's running at 70Hz but your monitor is at 60Hz. You need to either turn off triplebuffer and/or syncrefresh in mess.ini or increase your monitor's refresh rate.
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/21/12 10:38 AM

Latest CPU fixes are enough to get into the setup program and jukebox in Tyrian:



The game proper still won't load though.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/21/12 11:01 AM

Windows 3.1 now runs on the 486 driver, and it's possible to start installing Windows 3.11 For Workgroups and Windows 95 as well, but I'm getting freezes and reboots during auto-detection though, progress!

Windows 3.1: Installed on the atvga driver running on the at486 driver. Runs so much faster now!



Windows 95 Installation: Reboots during detection though frown I'm curious to see how far it goes to loading when installed from Bochs and loaded in to MESS, same with WFW 3.11 and other Windows OS's after Windows 3.1.



Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/21/12 12:28 PM

I'm having some weird trouble with floppy images in the at386 driver.

I installed DOS 6 from floppy on a blank CHD. Afterwards I wanted to transfer some files to it via an IMA file which I created with imgtool (1.44" HD floppy: 2 heads, 80 tracks, 18 sectors/track).

I can copy files to it (either via imgtool, wimgtool or other ways) and read them back OK. However, if I try to read them inside MESS, I only get garbled data

Since MS DOS installed just fine (and the MS DOS disks still return the correct data), the floppy driver itself can't be the problem, so I'm thinking it has to do with the image format somehow. Does imgtool create the file in the wrong format? I used pc_dsk_fat.

Edit: Strangely, if I take an existing MS DOS image, delete all files from it and insert new files via imgtool, it works. So it really looks like the images created by imgtool are broken in some way...

Edit2: Since I couldn't get CubicPlayer to work (some error about LINEXE_LOADER) I tried with ModPlay Pro. Result: Runs, but without any SoundBlaster sound. PC Speaker, although much too slow (and crashes the player after a few seconds)

it uses the SB DSP command 10 alot


Turrican II - The Final Fight dies horribly after displaying a (broken) setup menu:



AutoSketch 3.0 runs, but only in Standard Mode (the Extended Mode complains that no coprocessor is installed)


-Darkstar
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/21/12 02:28 PM

Just to be clear: there is no sound-generating capability in the SoundBlaster emulation right now, pending some PIC and DMAC fixes to the base emulation. Just use AdLib.
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 01/21/12 02:51 PM

Doom 2 now produces the following error when trying to run:



Wolfenstein 3D hangs (black screen) after the 'Get Psyched' screen finishes. The music still plays though.

Version: MESS 64-bit [r14114]

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/21/12 02:57 PM

Borland Turbo C++ editor now boots properly:



Trying to make any program makes it to puke a general protection fault tho ...


Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/21/12 06:01 PM

To Dr. Spankenstein: If you changed the following lines from r14112 back to r14105 the DOS/4GW error dissapear!

In cpu\i386\i386.c changed line 2419 from
if(REG32(ESP)+6 > cpustate->sreg[SS].limit+1)
back to
if(REG32(ESP)+6 > cpustate->sreg[SS].limit)


and line 2444 from
if(REG32(ESP)+12 > cpustate->sreg[SS].limit+1)
back to
if(REG32(ESP)+12 > cpustate->sreg[SS].limit)
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/21/12 09:31 PM

Originally Posted By MASH
In cpu\i386\i386.c changed line 2419 from
if(REG32(ESP)+6 > cpustate->sreg[SS].limit+1)
back to
if(REG32(ESP)+6 > cpustate->sreg[SS].limit)


and line 2444 from
if(REG32(ESP)+12 > cpustate->sreg[SS].limit+1)
back to
if(REG32(ESP)+12 > cpustate->sreg[SS].limit)

And doing that will create issues with Jazz Jackrabbit (or at least more that it already has). One possibilty could be that Doom II uses an expand-down segment for the stack, which will interpret segment limits differently (and aren't implemented yet).
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/21/12 09:50 PM

Might be useful to put in fatalerror()s for anything like that that's unimplemented and likely to run into trouble.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/21/12 10:10 PM

Not really, you'd totally break the FM Towns if that was done.

And you'd miss things like this - Installing Win95
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/21/12 10:16 PM

The FM Towns is going to have to work properly eventually anyway. Might as well tear the bandage off up front and get it over with.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/22/12 12:37 AM

As far as I can tell, expand-down segments only have their segment limits interpreted differently. The upper limit is always either 0xffff, 0xfffff or 0xffffffff (dependant on the granularity and big bits), and the limit given in the descriptor table is the lower limit. Shouldn't be too much of a hassle to actually implement it, and then some proper segment limit checking could also be added.

Of course, if anyone wants to correct me on expand-down segments, feel free, I'm still reading what I can on the subject first. smile
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 01/22/12 01:31 AM

http://www.sudleyplace.com/dpmione/expanddown.html

LN
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 02:45 AM

The problem isn't just related to DOOM, from what I've tested here, it's anything that uses DOS/4GW Protected Mode.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 04:20 AM

I managed to get a bit further during the installation of Windows 95 here. I ended up unchecking every bit of hardware it checks for, and was able to get through the next few screens where I can select different components I wanted to install, however once I pressed next, it's froze and wouldn't go any further (see screenshot). I'm trying to narrow the problem although I won't be able to get any further I don't think anyway. Before I decided to uncheck all hardware, all I had Windows look for was a floppy contoller, standard ide hard drive controller and a keyboard, so one or more of these is the issue as far as I can tell.



Edit: Same thing happens when I deselected everything in the above list.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/22/12 05:34 AM

That's cute, but if DOS/4GW doesn't work Windows 9x definitely won't.

So how did you get 3.1 to not lock up after it copies the first 2 floppies over? smile
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/22/12 05:42 AM

Originally Posted By MikeAbson
The problem isn't just related to DOOM, from what I've tested here, it's anything that uses DOS/4GW Protected Mode.
Jip, tested here too, and get the same results, with the same error Dr. Spankenstein has:
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 06:22 AM

Originally Posted By R. Belmont
That's cute, but if DOS/4GW doesn't work Windows 9x definitely won't.

So how did you get 3.1 to not lock up after it copies the first 2 floppies over? smile


It is cute isn't it? I'll rephrase that. It appears that any dos game / app that uses it does not work anymore, except for Windows.

I had originally installed Windows 3.1 on the atvga driver, but this was months ago when the at386, 486 and 586 drivers were really unstable. So I'm just using that existing chd file and loading it in to the at486 driver. I haven't tried to install Windows 3.1 on the atvga drive since the MESS release of 14112. I did try and install WFW 3.11 and it froze during the network detection, but after a reboot and continuing the installation, it goes further but freezes again when it tries to load "winsetup.exe", (I know this because the screen froze, and when I rebooted and ran setup again it says that it tried to load this file and failed). If you can't install Windows 3.1 on the atvga driver since release 14112, you could try installing Windows 3.1 in DOSBox and then injecting the Windows folder in to a raw image file and converting it back to a CHD, that would probably work as long as it's not configured for sound, (Windows freezes when trying to load the Program Manager after installing Sound Blaster drivers). You have start MESS without the -isa sblaster1_5 command or remove it from your ini file it you have in there, like me. Windows will then work and tell you it can't load the Sound Blaster drivers, so you can at least safely remove them and reboot Windows and it will start normally again. You can add back the Sound Blaster in to the ISA slot, but as you know you can't just install the drivers.
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/22/12 07:27 AM

For Duke Nukem 3d you must changed all REG32(ESP) back to r14112 in cpu\i386\i386.c to get no DOS/4GW error.
So this function is not correct implemented!

line 2007
if(REG32(ESP) > cpustate->sreg[SS].limit+1)
if(REG32(ESP) > cpustate->sreg[SS].limit)

line 2031
if(REG32(ESP)+16+count > cpustate->sreg[SS].limit+1)
if(REG32(ESP)+16+count > cpustate->sreg[SS].limit)

line 2419
if(REG32(ESP)+6 > cpustate->sreg[SS].limit+1)
if(REG32(ESP)+6 > cpustate->sreg[SS].limit)

line 2444
if(REG32(ESP)+12 > cpustate->sreg[SS].limit+1)
if(REG32(ESP)+12 > cpustate->sreg[SS].limit)

line 2543
if(REG32(ESP)+20 > cpustate->sreg[SS].limit+1)
if(REG32(ESP)+20 > cpustate->sreg[SS].limit)

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 08:09 AM

Microsoft Office Professional 4.3: Installed fine, but has some slight issues. Can't view help files, Windows says that are not valid help files. Also can't create a database for Access, I get some sort of a reserved error message. I also get a kernal error when viewing about Microsoft Excel. Seems fine otherwise.

Edit: I installed this in DOSBox and the only issues there is that it tells me I need to load share.exe before running Word and Excel, (probably because I don't have an autoexec.bat file to be edited). I also get a reserved error message when trying to create a database for Access as well. I wonder if I need to log in to a workgroup first before I start creating databases. I'm not sure if that's possible in Windows 3.1? I've got 3.11 for Workgroups installed in DOSBox.













Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/22/12 08:21 AM

Doesn't really make much sense.

The reason the stack limit checks had a +1 added was for Jazz Jackrabbit (and other Borland-based programs), which has a stack segment limit of 0x1fff. At one point, SP is set to 0x1ffa. Bochs has the same SP offset at the same point, as a point of comparison, and generates no exception when it does an IRET. IRET will pop off the remaining 6 bytes from the stack, setting SP to 0x2000, but shouldn't generate an exception, as the last byte read was at SS:1FFF.

Besides, Doom I still boots for me in my current code...
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 01/22/12 09:55 AM

You don't need to be in a workgroup to create a new database in MSAccess.

Share.exe is needed (I remember that from the old days). It can be loaded as a device in config.sys, or the normal way in autoexec.bat.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/22/12 10:16 AM

TSX-32 (Multitasking extension for DOS) crashes with a stack fault. Might be a nice test case, as it seems to launch a debugger on COM1 right after the crash



Since the system is kinda obscure I can provide the 3 install disks if anyone's interested

-Darkstar
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 10:56 AM

XTreeGold v3.01: The final version of this extremely popular file manager for DOS.

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/22/12 11:02 AM

Ok, please test out the current SVN code, Doom works for me at this point, hopefully other DOS/4GW programs are working again also.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/22/12 11:28 AM

Looks quite good:

TSX32 boots up...

...and hangs here:

("World's leading 386/486/Pentium multi-user OS"... yeah, suuuuure... ;-)

OpenCP (also DOS4GW based) also looks better...

...although it slows down to a crawl during playback (probably due to excessive SB FIFO logging)


Windows 3.1 installation still hangs after the swapfile creation window though

-Darkstar
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/22/12 01:17 PM

All games working again. Much tanks... and Stargunner (Apogee Software 1996) is working now. Best DOS game ever!!!!



My specs:

MESS at486
500MB Harddisk (chdman -createblankhd hhd.chd 1015 16 63)
Mouse: CuteMouse driver v1.9 (http://www.uwe-sieber.de/files/ctmouse19.zip)
Keyboard: KBD.SYS (German Keyboard driver v5.0 from Jochen Maier - no link found)
Sound: Soundblaster 1.0


at486.ini (MESS/ini folder):
ramsize 15M
harddisk1 D:\MESS\hhd.chd
isa4 sblaster1_0


CONFIG.SYS:
SWITCHES=/F
DOS=HIGH,UMB
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
LASTDRIVE=Z
STACKS=9,256
FILES=30
BUFFERS=45
FCBS=1,0
DEVICEHIGH=C:\DOS\KBD.SYS
INSTALLHIGH=C:\DOS\CTMOUSE.EXE /S
SET BLASTER=A220 I5 D1 H5 P330 E620 T6
SET SOUND=C:\SB
SET PATH=C:\DOS;C:\WINDOWS
SET TEMP=C:\TEMP
SET DOS4G=QUIET


AUTOEXEC.BAT:
@ECHO OFF
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/22/12 01:54 PM



Super Street Fighter 2:

Works (sort off) only one set up inputs work, and the inputs ain't really usefully set out (wdax for movement and qeszcr for attack buttons ( thus you need to have 12 fingers on your one hand to get combos)
And the music should be left off, as it's horrible (I'll stick to the arcade version
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/22/12 04:18 PM

Novastorm (Psygnosis 1994) demo works with the DOS4GW.EXE from Pyrotechnika. Sometimes DOS4GW crashed!?






Demo at: http://www.psygnosis.org/games/novastorm/files/novastorm_demo.zip
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/22/12 05:06 PM

There are different versions of DOS4/GW. I had similar problems with CubicPlayer, the newest DOS4/GW (2.01) wouldn't work, then I used 1.97 and that worked. I have about 10 different versions to choose from ;-)

-Darkstar
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/22/12 05:18 PM

Jazz Jazrabbit now gets as far as initializing the screen mode before bailing with another one of those unhandled chain exceptions. Still, it's progress!
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 01/22/12 06:10 PM

Here's an archive of a bunch of different DOS/4GW versions
http://vogons.zetafleet.com/viewtopic.php?t=214
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/22/12 06:11 PM

At this point in development, stuff that doesn't work is *much* more useful than stuff that does smile
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/22/12 06:50 PM

Originally Posted By R. Belmont
At this point in development, stuff that doesn't work is *much* more useful than stuff that does smile
hmm. it might be a very long list grin

Let's see an abridged version:
  • OS/2
  • Linux
  • 386BSD
  • FreeBSD
  • UNIX
  • Windows 95 and up
  • Street fighter 2 Turbo
  • Nascar 2
  • Mechwarrior 2
  • Descent
  • Quake
  • Power Drive
  • Princess Maker 2
whistle grin


And a lot of other OSes & games
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/22/12 08:23 PM

Originally Posted By Kaylee

Super Street Fighter 2:

Works (sort off) only one set up inputs work, and the inputs ain't really usefully set out (wdax for movement and qeszcr for attack buttons ( thus you need to have 12 fingers on your one hand to get combos)
And the music should be left off, as it's horrible (I'll stick to the arcade version


Sound Blaster has support for joypads, does SSF2 supports that? (I need a 6 button joypad tester and this is obviously a good candidate for that)
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 09:04 PM

I'm going to have to give those other dos/4gw versions a go, that might be interesting.

I have a question about joystick support. Even if I disable it in the ini file, some games still think it's enabled. Is there a way to completely disable the joystick? A few games I have won't go any further, even when I enable it in the ini file.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/22/12 09:15 PM

Well, io bus must return 0xff where stuff isn't connected, going to fix that in at.c
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 01/22/12 09:22 PM

Kale said I should publish this. smile

Here's something we worked out a while back: MobyGames has anyone adding a game list the game's requirements off the box/manual. These then become "attributes" within their database.

Going through the first 250 attributes, here's the list of the most interesting attributes to someone wanting to emulate DOS/Windows 3.x/Win9x games. You can then see, for example, what games support Adlib Gold, what video devices to target, etc.

Video
-----
CGA - http://www.mobygames.com/attribute/sheet/attributeId,1/
VGA - http://www.mobygames.com/attribute/sheet/attributeId,2/
EGA - http://www.mobygames.com/attribute/sheet/attributeId,3/
Hercules - http://www.mobygames.com/attribute/sheet/attributeId,4/
CGA (Tweaked) - http://www.mobygames.com/attribute/sheet/attributeId,5/
EGA (Tweaked) - http://www.mobygames.com/attribute/sheet/attributeId,6/
VGA (Tweaked) - http://www.mobygames.com/attribute/sheet/attributeId,7/
40-column text mode - http://www.mobygames.com/attribute/sheet/attributeId,8/
80-column text mode - http://www.mobygames.com/attribute/sheet/attributeId,9/
VESA - http://www.mobygames.com/attribute/sheet/attributeId,11/
SuperVGA - http://www.mobygames.com/attribute/sheet/attributeId,12/
Glide - http://www.mobygames.com/attribute/sheet/attributeId,14/
CGA Composite (16 colors) - http://www.mobygames.com/attribute/sheet/attributeId,29/
MCGA 4-color - http://www.mobygames.com/attribute/sheet/attributeId,30/
Tandy / PCjr - http://www.mobygames.com/attribute/sheet/attributeId,31/
MCGA - http://www.mobygames.com/attribute/sheet/attributeId,36/
Amstrad - http://www.mobygames.com/attribute/sheet/attributeId,53/
3Dfx - http://www.mobygames.com/attribute/sheet/attributeId,130/

Sound
-----
Sound Blaster - http://www.mobygames.com/attribute/sheet/attributeId,17/
Gravis Ultrasound / ACE - http://www.mobygames.com/attribute/sheet/attributeId,20/
Adlib - http://www.mobygames.com/attribute/sheet/attributeId,21/
IBM Music Feature Card - http://www.mobygames.com/attribute/sheet/attributeId,22/
PC Speaker - http://www.mobygames.com/attribute/sheet/attributeId,25/
Tandy / PCjr - http://www.mobygames.com/attribute/sheet/attributeId,32/
Tandy DAC (TL/SL) - http://www.mobygames.com/attribute/sheet/attributeId,33/
PC Speaker (Tweaked) - http://www.mobygames.com/attribute/sheet/attributeId,34/
Roland MT-32 (and LAPC-I) - http://www.mobygames.com/attribute/sheet/attributeId,35/
Sound Blaster Pro - http://www.mobygames.com/attribute/sheet/attributeId,39/
Sound Blaster 16 - http://www.mobygames.com/attribute/sheet/attributeId,40/
Game Blaster (CMS) - http://www.mobygames.com/attribute/sheet/attributeId,42/
Covox Speech Thing - http://www.mobygames.com/attribute/sheet/attributeId,43/
Disney Sound Source - http://www.mobygames.com/attribute/sheet/attributeId,44/
Generic LPT DAC - http://www.mobygames.com/attribute/sheet/attributeId,45/
MSound - http://www.mobygames.com/attribute/sheet/attributeId,46/
General MIDI - http://www.mobygames.com/attribute/sheet/attributeId,47/
Innovation Sound Standard - http://www.mobygames.com/attribute/sheet/attributeId,73/
Generic MPU-401 MIDI devices - http://www.mobygames.com/attribute/sheet/attributeId,74/
Adlib Gold - http://www.mobygames.com/attribute/sheet/attributeId,76/
Ensoniq Soundscape - http://www.mobygames.com/attribute/sheet/attributeId,77/
Microsoft Sound System - http://www.mobygames.com/attribute/sheet/attributeId,78/
Pro Audio Spectrum - http://www.mobygames.com/attribute/sheet/attributeId,79/
Covox Sound Master - http://www.mobygames.com/attribute/sheet/attributeId,80/
Thunderboard - http://www.mobygames.com/attribute/sheet/attributeId,81/
PS/1 Audio Card - http://www.mobygames.com/attribute/sheet/attributeId,86/
Roland RAP-10 - http://www.mobygames.com/attribute/sheet/attributeId,87/
WaveJammer (PCMCIA) - http://www.mobygames.com/attribute/sheet/attributeId,88/
The Entertainer - http://www.mobygames.com/attribute/sheet/attributeId,126/
Sound Blaster AWE32 - http://www.mobygames.com/attribute/sheet/attributeId,128/
PS/2 Speech Adapter - http://www.mobygames.com/attribute/sheet/attributeId,134/
Audio CD Tracks - http://www.mobygames.com/attribute/sheet/attributeId,96/

Input
-----
Keyboard - http://www.mobygames.com/attribute/sheet/attributeId,23/
Mouse - http://www.mobygames.com/attribute/sheet/attributeId,24/
Gravis Gamepad - http://www.mobygames.com/attribute/sheet/attributeId,26/
Thrustmaster (FCS and/or WCS) - http://www.mobygames.com/attribute/sheet/attributeId,27/
Joystick (Analog) - http://www.mobygames.com/attribute/sheet/attributeId,28/
Joystick (Digital) - http://www.mobygames.com/attribute/sheet/attributeId,41/
Dual Joystick Singular Control - http://www.mobygames.com/attribute/sheet/attributeId,48/
Steering/Driving Wheel - http://www.mobygames.com/attribute/sheet/attributeId,49/
VR Headset - http://www.mobygames.com/attribute/sheet/attributeId,133/

Other
-----
PCjr Cartridge - http://www.mobygames.com/attribute/sheet/attributeId,51/

OS
---
DOS 1.0 to 2.11 - http://www.mobygames.com/attribute/sheet/attributeId,55/
DOS 3.0 to 3.3 - http://www.mobygames.com/attribute/sheet/attributeId,56/
DOS 4.0 to 6.22 - http://www.mobygames.com/attribute/sheet/attributeId,58/
Windows 3.0 - http://www.mobygames.com/attribute/sheet/attributeId,205
Windows 3.1 - http://www.mobygames.com/attribute/sheet/attributeId,59/
Windows 95 - http://www.mobygames.com/attribute/sheet/attributeId,61/
Windows NT 4.0 - http://www.mobygames.com/attribute/sheet/attributeId,62/
Windows 98 - http://www.mobygames.com/attribute/sheet/attributeId,63/

CPU
---
8088 / 8086 - http://www.mobygames.com/attribute/sheet/attributeId,64/
80286 - http://www.mobygames.com/attribute/sheet/attributeId,65/
80386 - http://www.mobygames.com/attribute/sheet/attributeId,66/
80486 - http://www.mobygames.com/attribute/sheet/attributeId,67/
Math co-processor - http://www.mobygames.com/attribute/sheet/attributeId,115/
Pentium - http://www.mobygames.com/attribute/sheet/attributeId,68/

- Stiletto
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/22/12 09:38 PM

Originally Posted By MikeAbson
I have a question about joystick support. Even if I disable it in the ini file, some games still think it's enabled. Is there a way to completely disable the joystick? A few games I have won't go any further, even when I enable it in the ini file.


in the ini file you enable/disable joystick you plug in your real computer, not in the emulated one wink

the emulated joystick can be enabled/disabled only in drivers which have code to do so, and I think pc drivers don't have it
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/22/12 10:53 PM

Originally Posted By etabeta78
Originally Posted By MikeAbson
I have a question about joystick support. Even if I disable it in the ini file, some games still think it's enabled. Is there a way to completely disable the joystick? A few games I have won't go any further, even when I enable it in the ini file.


in the ini file you enable/disable joystick you plug in your real computer, not in the emulated one wink

the emulated joystick can be enabled/disabled only in drivers which have code to do so, and I think pc drivers don't have it


This is what I was thinking, so the PC driver has two it seems? A real one (in the ini) and an emulated one on the back of the Sound Blaster. Kale has fixed this apparently, so I'll give it ago when I get home. Cricket 96 keeps asking me to calibrate a joystick despite me not having it enabled, a few other games do the same thing, so hopefully I get in-game with some of these games and I'll be able to post some more screenshots.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/22/12 11:04 PM

So 14126 indicates Win 3.1 can run in 386 Enhanced now, but even with that version I still can't get it to install. It always freezes on the "Starting Windows" after the first two floppies have loaded. Is there some trick to getting it to go?
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/22/12 11:14 PM

The Win3.1 image I tested with was already installed. There are still issues with the floppy controller that might be blocking installation. For example, if you try to use this linux floppy image from bochs it dies in the boot sector trying to get the BIOS to read the disk.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/23/12 12:03 AM

BTW, a FreeBSD floppy I have used to fault immediately. Now it gets as far as decompressing the kernel, at which point it claims the checksums didn't match and halts.

Image is at http://rbelmont.mameworld.info/fbsdflop.img (copy/paste into your browser address to avoid the anti-linking protection).
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/23/12 12:06 AM

Originally Posted By MikeAbson
This is what I was thinking, so the PC driver has two it seems? A real one (in the ini) and an emulated one on the back of the Sound Blaster.


no. you are still mixing up different things wink

the number of joysticks in the PC driver is independent on what you do with mess.ini and it only depends on the code in the source. in other words, there is no way to change (currently) the number of emulated joysticks in the pc driver.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/23/12 12:19 AM

I get a similar install issue when trying to install the FM Towns version of Win 3.1 (which is CD based), except that there is no dialogs displayed at all (the PC version at least asks for Name/Organisation).
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/23/12 12:33 AM

I don't even get that on the PC version - it never even goes into graphics mode, and just sticks on "Starting Windows".

ETA: Installing in Bochs then running in MESS works fine though - came right up in 386 Enhanced mode and it seems to all work.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/23/12 01:48 AM

I tried running Windows 3.1 in enhanced mode last night, (before these recent changes here), and it just rebooted once the Windows 3.1 Splash screen would come up. It'll be interesting to see if it goes further now with some changes just made in the last few hours. Does 3.11 For Workgroups load now at all? That too just rebooted once the splash screen appeared.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/23/12 01:50 AM

Originally Posted By R. Belmont
ETA: Installing in Bochs then running in MESS works fine though - came right up in 386 Enhanced mode and it seems to all work.


I told you to do that yesterday smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/23/12 02:12 AM

Windows 3.11 (installed in Bochs, running in MESS at486):

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/23/12 02:29 AM

Originally Posted By R. Belmont
Windows 3.11 (installed in Bochs, running in MESS at486):



Nice smile I'm at work at the moment, so I can't test anything, but I need to load emm386 for enhanced mode to work don't I? I can't remember.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/23/12 02:29 AM

No, Enhanced mode is its own DOS extender, if EMM386 is present it actually has to shut it down on the way up.

ETA: I was able to enable 32-bit File Access in 3.11 (which uses pre-beta versions of the Win95 VxDs) as well as install the AdLib driver and play CANYON.MID correctly. Very nice smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/23/12 02:50 AM

I had being trying to get the adlib midi driver to work, but was having trouble with it, this was a while back. Since things have improved, I'll have try that. What happens if you install Windows 95 in Bochs and load it in MESS? How about Windows NT? smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/23/12 04:03 AM

The really ancient linux hdd image from the bochs homepage runs if you use some debugger trickery to break out of a fdc polling loop. Also, the screen is blank so you have to watch the memory dump window to see the screen output.
[img]http://lh5.googleusercontent.com/yPupbKk...J5W-dIkwQ=w1600[/img]
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/23/12 04:17 AM

Win95 *almost* boots - you get a black screen with the "wait" mouse pointer and then it BSODs instead of drawing the desktop. So close, yet so far smile
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/23/12 05:21 AM

Originally Posted By Kale


Sound Blaster has support for joypads, does SSF2 supports that? (I need a 6 button joypad tester and this is obviously a good candidate for that)
It has support for 6 button-pad, it has Joystic 1 & 2, and a capcom pad all with 6 buttons
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/23/12 05:33 AM

Originally Posted By R. Belmont
Win95 *almost* boots - you get a black screen with the "wait" mouse pointer and then it BSODs instead of drawing the desktop. So close, yet so far smile


Sounds like perfect emulation of Windows 95 to me :P
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/23/12 06:28 AM

Originally Posted By R. Belmont
Win95 *almost* boots - you get a black screen with the "wait" mouse pointer and then it BSODs instead of drawing the desktop. So close, yet so far smile


That's not a bad effort at all. If you get a chance, try running Windows 95 in safe mode. You have to hold either shift or f8 when it says starting windows 95, you might get a bit further.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/23/12 07:14 AM

BSOD:


But it might be my chd that's bad laugh
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/23/12 08:13 AM

r14133


Windows 3.1 Setup (PC/AT 486)


Windows 3.1 Setup (FM-Towns)

The FM-Towns version seems to lock up after filling the Program Manager groups - looks like some sort of odd timing issue.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 01/23/12 08:41 AM

Originally Posted By mahlemiut
r14133


Windows 3.1 Setup (FM-Towns)

The FM-Towns version seems to lock up after filling the Program Manager groups - looks like some sort of odd timing issue.


Wow, a great progress for the FMT driver. smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/23/12 09:15 AM

While we wait for CD-ROM support, I managed to find and download a virtual CD-ROM drive for DOS. This program creates a virtual CD drive, then mounts an ISO file image to it, so when you switch to the drive, d:\ for example, you'll see the contents of the ISO, thus allowing you to install and play games from ISO images smile

Cricket 96 From EA Sports: Thanks also to Kale for fixing the joystick problem, games such as Cricket 96 no longer think a joystick is connected!

You can get the software here: http://adoxa.110mb.com/shsucdx/index.html
Basic instructions are here: http://www.notanon.com/retro/how-to-use-an-iso-as-a-virtual-cd-under-ms-dos/2010/09/15/



Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/23/12 09:25 AM

Found the issue with the lockup on the FMT version of Win3.1 - the freerun counter stops.

In my local code currently, I have changed the freerun counter to be based on a device_timer time_elapsed() (It was Kale's suggestion to be a bit more efficient), but the question is, why does it just stop for no reason after about 10-15 minutes? It's not enough time to install Windows 3.1 in, unfortunately, so I can't test it easily.

Reverted my local changes, and no more lockup, so current SVN will work fine, and now we have something that no other emulator can do (that I know of). Won't boot into 386 Enhanced mode, for some reason, though.




Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/23/12 01:15 PM

That's interesting. If you can check in an #ifdef where it's relatively easy to repro the timer stopping I imagine Aaron would be interested to see it.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/23/12 04:41 PM

a few Windows games:

Posted By: Sune

Re: PC/XT/AT (inside) WIP topic - 01/24/12 12:46 AM

There's a thread with some old CGA demos and PC speaker stuff on VOGONS:
http://vogons.zetafleet.com/viewtopic.php?t=31077
Could be useful for testing.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/24/12 03:00 AM

With a small vga patch which probably isn't entirely correct:
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/24/12 03:24 AM

Nice!
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/24/12 04:05 AM

Please do post the patch somewhere, I have a few Linux versions where text disappears quickly...
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/24/12 01:25 PM



vss 0.82 (Virtural Super System) Starts on MESS at486 driver. But once Emulation start it runs at the speed of continental drift. With frameskip rate set at 10 I get 25% (last screenshot took 2-3 minutes before it got that far :D)
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/24/12 01:48 PM

you might try overclocking the CPU, but yeah emulators inside emulators are hardly expected to give good performances wink
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/24/12 02:07 PM

I'm pretty sure VSS doesn't run well on a real 486/25 either smile Remember, NESticle was considered to be miraculous because it ran 100% on a 486/66 or better.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/24/12 02:45 PM

Originally Posted By mahlemiut
Please do post the patch somewhere, I have a few Linux versions where text disappears quickly...


I'll see if I can make sure it's correct first.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/24/12 03:11 PM

Originally Posted By R. Belmont
I'm pretty sure VSS doesn't run well on a real 486/25 either smile Remember, NESticle was considered to be miraculous because it ran 100% on a 486/66 or better.


Interestingly, NESticle appears to start up just fine without MOUSE.COM loaded, but when I run the latter to get mouse support in the emulator, it hangs instead of starting up. Just in case anyone wanted to take a look at that.

Also, I tested MAME 0.20, seems to work great albeit slowly. I played a round of Mr. Do! and it was fine. Pretty impressive. smile
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/24/12 04:07 PM

Originally Posted By Just Desserts

Interestingly, NESticle appears to start up just fine without MOUSE.COM loaded, but when I run the latter to get mouse support in the emulator, it hangs instead of starting up. Just in case anyone wanted to take a look at that.


Mouse worked for me Using Microsoft Mouse Driver Ver 6.10Z
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/24/12 04:34 PM

Originally Posted By mahlemiut
Please do post the patch somewhere, I have a few Linux versions where text disappears quickly...


Pretty sure by now that the text functions are way broken, vgatest tends to bust pretty quickly with banking and all the rest.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/24/12 05:11 PM

Originally Posted By mahlemiut
Please do post the patch somewhere, I have a few Linux versions where text disappears quickly...

I only tested graphics with Windows.

Code:
Index: src/emu/video/pc_vga.c
===================================================================
--- src/emu/video/pc_vga.c	(revision 14158)
+++ src/emu/video/pc_vga.c	(working copy)
@@ -167,8 +167,8 @@
 #define GRAPHIC_MODE (vga.gc.data[6]&1) /* else textmodus */
 
 #define EGA_COLUMNS (vga.crtc.data[1]+1)
-#define EGA_START_ADDRESS ((vga.crtc.data[0xd]|(vga.crtc.data[0xc]<<8))<<2)
-#define EGA_LINE_LENGTH (vga.crtc.data[0x13]<<3)
+#define EGA_START_ADDRESS (vga.crtc.data[0xd]|(vga.crtc.data[0xc]<<8))
+#define EGA_LINE_LENGTH (vga.crtc.data[0x13]<<(3+(vga.crtc.dw?2:(vga.crtc.word_mode?0:1))))
 
 #define VGA_COLUMNS (EGA_COLUMNS>>1)
 #define VGA_START_ADDRESS (EGA_START_ADDRESS)
@@ -178,7 +178,7 @@
 
 #define TEXT_COLUMNS (vga.crtc.data[1]+1)
 #define TEXT_START_ADDRESS (EGA_START_ADDRESS)
-#define TEXT_LINE_LENGTH (EGA_LINE_LENGTH>>2)
+#define TEXT_LINE_LENGTH (EGA_LINE_LENGTH>>3)
 
 #define TEXT_COPY_9COLUMN(ch) ((ch>=192)&&(ch<=223)&&(vga.attribute.data[0x10]&4))
 
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/24/12 05:15 PM

There are registers that controls those ...
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/25/12 10:17 AM

Updated to r14170... and
Wow! Mach 3(Loriciel 1987)is working with at486.
The new CGA emulation in VGA works fine smile




Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/26/12 03:03 AM

The install program of Inferno (Ocean 1995) looks messed up.
Has MESS problems displaying custom characters ?
Works in DOSBox.








Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/26/12 03:27 AM

MESS's VGA support is non-existent for anything remotely fancy. Text disappears in Linux when the kernel tries to reprogram the font, for example.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/26/12 09:11 AM

Blackthorne (1994): Requires "DEVICE=C:\DOS\EMM386.EXE RAM" in config.sys or it will complain about needing 2MB of EMS memory. On the at486 driver, there will be quite a performance hit loading EMM386. Unthrottled with no EMM386 loaded in MS-DOS, MESS will run at around 170% on my machine, but only at about 70% when EMM386 is enabled.



Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/26/12 11:03 AM

Fixed VGA text mode scrolling (was simply shifting the start address twice, instead of once), now we can see what Linux is complaining about.


Linux 1.3.84 rescue disk


FDLinux 2.1.0
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/26/12 06:51 PM

Current WIP:



VGA in Mono mode, actually rewriting ALL of the r/w handlers, that also fixes text mode banking and presumably character select bank.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/26/12 06:55 PM

Nice! smile

That's vgatest I presume?
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/26/12 07:14 PM

Yes.
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/26/12 09:35 PM

The i386 FPU rewrote (r14210) makes Dark Forces(Lucas Arts 1995) playable.
Pyrotechnica (Psygnosis 1995) starts now, but crashes if you press a key or move the mouse.




Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/26/12 09:55 PM

if you'd read carefully the logs, you would see that this is not the promised rewrite (which was going, and still is going, to be commit by Phil Bennet) but an independent work done by Carl

I fear most of this will be just overwritten by Phil's code, but feel free to enjoy current state which is still an improvement over the previous code wink
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/26/12 09:57 PM

Nice to see Dark Forces finally playable, I've been trying to get that work for a while. It would never go in-game, just get stuck on the loading screen right before it would go in-game. Look forward to testing out some other games and stuff when I get home tonight.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 01/26/12 10:16 PM

Epic Pinball works very nicely now, although I haven't tried it with Soundblaster ... but it bleeps away happily over the "internal" speaker.





Robert
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 01/26/12 11:19 PM

With the latest SVN [r14216] (64-bit) Wolfenstein no longer hangs at the 'Get Psyched' screen and goes in game:



Thank you smile

Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/27/12 12:02 AM

Fractint with the new x87 emu and monochrome cga video mode.
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 01/27/12 01:15 AM

Yeah Fractint finally works with Phil's rewrite, so you can use all the crazy video modes like 800x600x16 on stock VGA:

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/27/12 02:16 AM

Another WIP, this time with VESA:









Tseng ET4000 is quite bitchy to emulate (available documentation doesn't match at all) ... perhaps I'll just move on another SVGA card ...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/27/12 02:21 AM

That's brilliant, I've got quite a few SVGA games to try when I get home. Only 4 and a half hours till I'm done for the day! smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/27/12 02:24 AM

I'm not going to submit this however, it's too messy to be shown to the public (read: I've just played with hacks) smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/27/12 02:38 AM

Fair enough, it's still good to see that sort of progress though.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/27/12 03:45 AM

I see a regression with Wolfenstein 3D, geometry seems screwy in at486. FPU seems to be the likely culprit?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/27/12 03:55 AM

I'm pretty sure Wolf3D doesn't use the FPU (and neither does DOOM).
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/27/12 03:56 AM

Uhm, maybe I'm guilty there? Could you please run a regression test?
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 01/27/12 04:26 AM

Originally Posted By R. Belmont
I'm pretty sure Wolf3D doesn't use the FPU (and neither does DOOM).


That is correct. Doom runs on my 386 (slowly), and it doesn't have a FPU chip.
Wolf3D runs on a 286, which is before the FPU existed.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/27/12 04:50 AM

I've got a question about the S3 SVGA card placeholder. I actually don't use the et4000.bin bios for video. I've got an S3 Trio64 BIOS that I have injected in to the atvga/386/486 and 586 zip file in my ROMS folder, and have renamed it et4000.bin so that I can use it. Obviously it doesn't make a lot of difference, although it is VESA compatible, so for example, if I try to run a game that needs a VESA driver, I don't get asked to load one since it's included, I think it's VESA 3.0, and I think it has 4MB on-board as well. I'm not entirely sure here though, if for example a game that required say a minimum of 4MB of RAM on the card, and I attempt to load the game, will the game "see" the 4MB on the card and let me play it, as opposed to trying to run the same game with the et4000 which only has 1MB, and the game tell me I don't have enough video RAM. Is there an advantage to using the S3 SVGA card with the S3 video bios I already have?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/27/12 05:01 AM

Doesn't mean that it's not used if it's available. Will take a quick look to see where the regression is, though.

EDIT: confirmed regression is FPU related. Works in r14218, non-working in r14219.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 01/27/12 06:47 AM

even the et4000 is technically not vga, its a type of svga. currently it lives in the vga driver as a placeholder until we can dig up the rare, original ibm vga expansion card rom from a ps/2 machine which has one. only a few models of ps/2 even offered the option of such a card.

LN
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/27/12 08:36 AM

I'm back at home here and when loading the at drivers, I get an FDD contoller failure message all of a sudden, after that, instead of DOS loading, mess just crashes back to the desktop.

Edit: I think Miodrag just fixed it actually.

Edit again: While I no longer the FDD controller error, it's still crashing when trying to load DOS. I'm also getting a message in my command prompt window where I load mess from that says Invalid joystick map: none. Not sure what that means or if it has anything to do with mess crashing though.

Edit #3: Working, thank you for the fix!
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/27/12 11:04 AM

Originally Posted By Lord Nightmare
even the et4000 is technically not vga, its a type of svga. currently it lives in the vga driver as a placeholder until we can dig up the rare, original ibm vga expansion card rom from a ps/2 machine which has one. only a few models of ps/2 even offered the option of such a card.

LN
We do have a few other third party VGA card's bios images available IE the ATI VGA Wonder+ grin grin grin
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 01/27/12 12:50 PM

Wolfenstein calls CRT functions such as atan() and sin() which use the FPU if available and it appears the SoftFloat trig functions are producing bad values...
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/27/12 01:36 PM

Doesn't your implementation convert everything back to double and call the host system's CRT for most of the trig functions? I'm seeing "// TODO: Inaccurate" all over the place on stuff like that in MESS r14219.

FWIW, Bochs has a ton of "SoftFloat extensions" for their x87 that are explicitly under the SoftFloat license. That might help.
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 01/27/12 01:53 PM

Yes although we should be able to get away with them until I lift the Bochs implementations smile

I'm a bit surprised the SoftFloat sin/cos/tan extensions aren't producing the correct results. Have they been tested in the 68k FPU implementation?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/27/12 02:01 PM

Yeah, they seem to work in the 68k. I've run some vector graphics apps that definitely use them and things work properly.
Posted By: Javier Donoso

Re: PC/XT/AT (inside) WIP topic - 01/27/12 05:54 PM

My most wanted to emulate video card is...
the Diamond SpeedSTAR 24X, since it has true color drivers for Windows 3.0!
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/27/12 06:55 PM

Originally Posted By Javier Donoso
My most wanted to emulate video card is...
the Diamond SpeedSTAR 24X, since it has true color drivers for Windows 3.0!


How's that workin' out for ya?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/28/12 12:15 AM

r14245

Carl sent a few small protection-related fixes, to get OS/2 1.x working a bit further.

It also gets this working:




Jazz Jackrabbit
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/28/12 12:55 AM

Nice, that's another one of the custom DOS extenders from hell smile Will have to try Second Reality again.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/28/12 12:55 AM

Screamer (1955): A nice surprise here. Progress! (r14245)













FIFA International Soccer, FastTracker 2 and Fatal Racing (Whiplash) all still crash when trying to load though.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/28/12 01:10 AM

Robotnik - Punish Your Machine By RAGE (1997): Almost there... Doesn't go any further when it gets to the spider at the start of the demo for some reason. It also punishes the 486 smile Ran great on my Pentium 100 back in the mid-90's though.





Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 01/28/12 02:15 AM

r14246

Now we get Minix to start booting. Almost.


Minix 3.0.7

On at386, it will actually start to look from a CD to boot from.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/28/12 06:39 PM

With latest Heroes of Might & Magic 2 boots properly:







Scrolling looks quite jerky, probably uses 1+ unemulated VESA features (unsurprisingly).

EDIT: just realized it hangs when you choose to end the turn, almost surely a i386 core bug
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/28/12 07:00 PM

Wow, one of my favorites back in the day...

btw, Kale, here's another Tseng VGA BIOS dump from a VL-bus card I have. I included a high-res picture of the card itself for reference.

http://www.regengedanken.de/~mdrueing/files/tseng_vga.zip

Feel free to add it to MESS as additional BIOS or new card (although I don't know if the card is an ET3000, ET4000 or anything else entirely as I lack a VL-bus system at the moment)

-Darkstar
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 01/28/12 07:25 PM

Found a VESA driver for TsengET4000 at http://www.dosdriver.de/graph.php
Download the 'Collection of VESA-Drivers': http://www.dosdriver.de/download/vesadrv.zip and use the ones in the TSENG directory.
With this driver Battle Bugs is playable.

Without TSENG driver:



With VESA driver:


Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 01/28/12 11:01 PM

Geoworks Ensemble installs OK, but crashes the Emulation if I run "PCGEOS.exe"

Geoworks Ensemble Crash

Robert
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/29/12 01:24 AM

Need For Speed Demo (1996): Finally no more crashes back to the desktop. Menu's don't look right, but luckily I can just press space bar a bunch of times and get in-game now. The demo is low-res but I've got the full game as a disc image so I'll try and get that up running if I can (supports 640x480). I'm also using an S3 Trio64 video bios here, so a vesa driver wasn't needed, but maybe if I can find one that will work, the menu will look normal. Currently Scitech Display Doctor 6.53 will identify the ET4000 correctly when running uvconfig.exe, but after that when I ran univbe.exe, all I got is an indefinite black screen.







Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/29/12 03:33 AM

Mortal Kombat:









Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/29/12 03:51 AM

how's quake looking these days?

that one would be interesting to MAME, as there is the arcade version, although IIRC it boots into windows first there.

I also wonder what that does for audio, because it has no CD (unless you're meant to use the standard one?)
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 01/29/12 04:04 AM

Well, dos quake did use a cd with audio tracks for BGM; I have a full offset-corrected rip of the audio data as well as the iso, since I own an original copy.

LN
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 01/29/12 04:06 AM

I actually wonder if the original battle chess cd for dos works or not. It did not use sound blaster sound but did everything using cd audio and some rather interesting 'abuse' of audio tracks.
Again, I have an iso and corrected audio.
The mac cd version does something similar, but I don't have that one.

LN
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/29/12 04:08 AM

there are some segacd games which are similar, one long audio track with sfx in, which they seek, usually the interactive multi-media type crap tho ;-)

and yeah, I know quake for the PC used CDDA, that's why I'm curious, the arcade versions are just a HDD dump, although it's possible they were never intended to have music or it mounts some kind of virtual drive, I've never booted it... that's why I was asking how the basic game is running these days ;-)

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/29/12 04:23 AM

I've got the original Quake CD in the original bigbox, including manual. As mentioned the cd has audio on it, however the disc is not needed to play the game, but the game doesn't work, MESS crashes with an x87 invalid instruction (PC:1005478a) error message.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/29/12 04:27 AM

Also at the moment I can't load the sound blaster in an isa slot, mess always crashes when I try, otherwise I'd create an ISO image of an audio cd, load it in to a virtual cd drive and attempt to play it using a dos cd player if pc speaker / adlib / sb 1 and 1.5 are supported.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/29/12 05:46 AM

Originally Posted By MikeAbson
Also at the moment I can't load the sound blaster in an isa slot, mess always crashes when I try, otherwise I'd create an ISO image of an audio cd, load it in to a virtual cd drive and attempt to play it using a dos cd player if pc speaker / adlib / sb 1 and 1.5 are supported.
use -skip_gameinfo and it should stop crashing. There is a bug in the gameinfo screen that keeps crashing with slot devices
Posted By: Heihachi_73

Re: PC/XT/AT (inside) WIP topic - 01/29/12 05:50 AM

Originally Posted By Darkstar
(although I don't know if the card is an ET3000, ET4000 or anything else entirely as I lack a VL-bus system at the moment)

-Darkstar


From ROM code:

Copyright(c)1988 Tseng Laboratories, Inc. 11/25/93 V1.00

ET4000/W32i VL-BUS

256KB, 512KB, 1 MB, 2 MB or 4 MB display memory according to text strings.
Posted By: Vas Crabb

Re: PC/XT/AT (inside) WIP topic - 01/29/12 06:21 AM

Originally Posted By Lord Nightmare
I actually wonder if the original battle chess cd for dos works or not. It did not use sound blaster sound but did everything using cd audio and some rather interesting 'abuse' of audio tracks.
Again, I have an iso and corrected audio.
The mac cd version does something similar, but I don't have that one.

I have a copy of the Mac version. I was amused with the way it used CDDA audio for everything. Lots of seeking - first it would have to load the animation sequence into RAM from the data track, then start the audio. Those old 2x speed drives would seek so slowly.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 01/29/12 12:59 PM

[at486] What's causing this: Until yesterday I could select floppy images in all slots of the file manager, Drive A, B, HD C and D

B,C,D are still working, but if I call up file manager and want to select a floppy image for drive A, the file dialogue is missing, and I can only "return to system".

Robert
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/29/12 01:48 PM

Originally Posted By rfka01
[at486] What's causing this: Until yesterday I could select floppy images in all slots of the file manager, Drive A, B, HD C and D

B,C,D are still working, but if I call up file manager and want to select a floppy image for drive A, the file dialogue is missing, and I can only "return to system".

Robert
Remove your at486.cfg file, sounds like the cfg file is pointing to a non-existing directory, had te same problem a week or 2 ago
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 01/29/12 04:15 PM

Thanks. As usual, the result of tidying up is more chaos ;-) I had sorted all my install floppies into one directory.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/29/12 10:16 PM

Originally Posted By Heihachi_73
Originally Posted By Darkstar
(although I don't know if the card is an ET3000, ET4000 or anything else entirely as I lack a VL-bus system at the moment)

-Darkstar


From ROM code:

Copyright(c)1988 Tseng Laboratories, Inc. 11/25/93 V1.00

ET4000/W32i VL-BUS

256KB, 512KB, 1 MB, 2 MB or 4 MB display memory according to text strings.

indeed. I didn't notice these strings when I first looked at the ROM. Don't know how I could've missed them...

-Darkstar
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/30/12 09:13 PM

Originally Posted By Kaylee
Originally Posted By MikeAbson
Also at the moment I can't load the sound blaster in an isa slot, mess always crashes when I try, otherwise I'd create an ISO image of an audio cd, load it in to a virtual cd drive and attempt to play it using a dos cd player if pc speaker / adlib / sb 1 and 1.5 are supported.
use -skip_gameinfo and it should stop crashing. There is a bug in the gameinfo screen that keeps crashing with slot devices


Thanks for that.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/30/12 09:14 PM

The gameinfo crash should be fixed in latest too.
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 02/01/12 04:39 PM

The IBM Music Feature Card: a YM-2151 in your PC! (well, a YM-2164 actually) Pity nobody other than Sierra could be arsed with it. Here's its rendition of the Quest for Glory theme:

http://philwip.mameworld.info/qfg_imfc.mp3

And the Adlib version for reference:

http://www.youtube.com/watch?v=xxECHVmwc4U
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/01/12 04:53 PM

Nice smile Does that include the 2164's additional features?
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 02/01/12 05:07 PM

No; I've yet to discover what they actually are.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/01/12 06:12 PM

It's always something ;-)

And that comparison reminds me why I wince any time someone posts a song done with VOPM (a VSTi of MAME's YM2151) and claims it's totally authentic to the Genesis' YM2612, which was quite a different-sounding chip.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 02/01/12 07:46 PM

Wikipedia claims that the differences between ym2151/OPN and ym2164/OPP are:
"Compared to the YM2151, it's 8th channel lacks it's 4th operator noise generation ability, has improved stereo-panning capabilities, and includes multitimbral support."

After bullshit filtering:
Compared to the YM2151:
*it's 8th channel lacks it's 4th operator noise generation ability
*has improved stereo-panning capabilities (as far as I can tell from the fb-01 service manual, the stereo panning ability of the ym2164 is exactly the same as the ym2151)
*includes multitimbral support (the ym2151 already has multitimbral support. each of the 8 channels has four unique operators in a configurably unique hookup arrangement)

So the only difference MIGHT be that the ym2164 lacks the ym2151's feature of optional white-noise (controlled by register 0x0F) on operator 4 of channel 8. I'll ask around to find someone who can test this, but if this is NOT the case, I have no idea what the difference might be.

The fb-01 service manual only lists the bitfields in sysex order, and yamaha clearly crammed many of the sysex channel-specific bits in the unused parts of bitfields for the operator data, so I may well be overlooking something 'new' they crammed in there.

P.S. We still haven't figured out how the LFO Noise generation on ym2151/ym2164/ym2414 (OPZ, yet another ym2151 extension) works. This is another todo I'll pick at if I can.

LN
Posted By: Sune

Re: PC/XT/AT (inside) WIP topic - 02/01/12 10:48 PM


Found a link to this CGA testing program while reading VOGONS:
http://www.oldskool.org/pc/cgacomp

There's a video of it running on real hardware so you can see how it's supposed to look.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/02/12 12:56 AM

Fixed reading in read mode 1 in EGA (no pun intended), fixes at least gfxs in Ladder Man and my lame^TM Chess game. Former isn't yet working because keyboard inputs doesn't work:







EDIT: Ladder Man 3 instead is fully working:



Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/02/12 01:16 AM

Originally Posted By Kale
EDIT: Ladder Man 3 instead is fully working:





\o/
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/02/12 03:53 AM

With the latest VGA changes, OS2 1.1 works again and on the 486 too (not quite stable though).

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/02/12 08:30 AM

Blake Stone: Aliens of Gold (1993 Apogee): Works now. Just a few basic screenshots here.



Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 02/02/12 09:34 AM

Very good... I was playing that game on my win98se pc just last weekend!
Posted By: plgDavid

Re: PC/XT/AT (inside) WIP topic - 02/02/12 03:34 PM

Originally Posted By Lord Nightmare
Wikipedia claims that the differences between ym2151/OPN and ym2164/OPP are:


Wikipedia article is clearly written by people who confuse firmware features and bare hardware features. the FB01/IBM's firmware is Z80-based and is much different from the DX100/DX21/DX27 that everyone compares more favorably sonically, but they contain the same YM2164 chip. Much has been said about that by musicians all 80's and 90s long, and its solely due to firmware features differences. (scalings are different, ranges are different, etc)

Secondly from my own analysis of the YM2164 and Y2414B running on a the _same_ protobard I use for my own YM2151 tests:

1) the YM2164/YM2414b are both different superset of the YM2151, as such they are 100% backward compatible.. EG: I can play any YM2151 register dump on both of them and get the exact same audio so far.

2)all three chips, can generate LFSR noise, which is the same and most likely derived from the same die section as the YM2203/YM2149F and thus AY-3-8910 noise...
For some reason Yamaha didn't 'export' the noise capability in either FB01/DX sysex/firmware, although it would have made a cool addition to standard FM. They must have their reasons.

3)You _cant_ use a YM2151 inside a FB01, it wont work, i've tried. From my research (extensive and one day available for everyone I hope) the FB01 firmware waits for a timer/irq from the YM2164 which is not there on the YM2151. My gut feeling is just a protection so that yamaha could control clones and/OR repair parts sales. (they can sell you a 60$ YM2164 where as YM2151 were cheap and very common).

4)Of course the YM2414B generates NEW waveforms and I'm still reverse engineering these.

I wont lie that I have commercial goals in mind with this research, but I hope much of my discoveries will be made public later. I did contribute to 3 sound drivers to MESS (svc/pv1000/arcadia) and will continue to do so when time permits as i love this project.

Thanks
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/02/12 04:09 PM

By "all 3" you mean the YM2151 has LFSR noise too?
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/02/12 04:29 PM

tested today:



But gived this when exiting:


Happens when I exit Doom too
Posted By: plgDavid

Re: PC/XT/AT (inside) WIP topic - 02/02/12 04:46 PM

Originally Posted By R. Belmont
By "all 3" you mean the YM2151 has LFSR noise too?

Yes 2151/2164/2414B LFSR noises.

heres a test register dump to generate it:

<W hr="08" hv="0" dt="100" />
<W hr="08" hv="1" dt="100" />
<W hr="08" hv="2" dt="100" />
<W hr="08" hv="3" dt="100" />
<W hr="08" hv="4" dt="100" />
<W hr="08" hv="5" dt="100" />
<W hr="08" hv="6" dt="100" />
<W hr="08" hv="7" dt="100" />

<W hr="27" hv="C0" dt="100" /> <!-- activate channel -->
<W hr="0F" hv="80" dt="100" /> <!-- activate noise -->

<W hr="08" hv="7F" dt="1000" />
<W hr="08" hv="7" dt="10000" />
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 02/02/12 08:50 PM

Plgdavid: interesting about the ym2151 vs ym2164 difference...
So on reset, the ym2151 has interrupts clear, but ym2164 has interrupts set? Is it one or both timers causing the interrupt? (one can read the status register to figure out what is going on)
This should be easy enough to emulate in the ym2151 core if that's the only difference.

LN
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/03/12 01:33 AM

The funky sprites in U7 are all black now instead of a rainbow of wrong colors. That suggests it's using some VGA feature that's been improved but still isn't correct smile

Posted By: plgDavid

Re: PC/XT/AT (inside) WIP topic - 02/03/12 02:49 AM

Originally Posted By Lord Nightmare
This should be easy enough to emulate in the ym2151 core if that's the only difference.
LN


Just looking at my notes and my "3)" entry about IRQs is wrong. (memory playing tricks as I last worked on that 3 years ago. What happens from my notes is that the FB01 firmware writes to undocumented registers 0,2,3,4,5,6,7 and that screws a real YM2151 enough that it makes it not working in the FB01, while a YM2164 supports it. My notes say that those 0,2,3,4,5,6,7 register writes kill voices on a 2151 and some values generate huge bursts of noise, But I would need to reverse engineer that behavior exactly.

The result is the same for Yamaha (you cant just use a ym2151 in a FB01 without a firmware mod), but for future emulation of the IBM card is concerned its not an issue, since MAME's ym2151.c doesn't crap out on those writes.. they are not implemented... of course to be 100% accurate we should investigate that fully and make a special case.

It is also possible that those undocumented writes unlock other more subtle features that would be 2164 specific and that i didn't yet find out about.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 02/03/12 03:36 AM

Huh. some weird mirroring of the test register (0x1) in ym2151 which doesn't happen on the ym2164, perhaps?
The meaning of the ym2151 test register bits are known*, so messing around with lfo disable and reset bit and trying to write it to each reg from 0x00 to 0x07 should show you which registers are a mirror of 0x01.
Its also quite possible the test register bits on the ym2164 are rearranged or otherwise different.

*see /src/emu/sound/ym2151.txt for details



LN
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/03/12 09:26 AM

Just downloaded the newest source here since yesterday and noticed support for the Covox Speech Thing on LPT. I remember in the mid-90's there seeing games supporting this but wasn't sure how good it was suppose to be. I also had no idea it connected to the printer port until about 30 minutes ago lol. I just thought it was a standard sound card, and I never knew anyone that had one. Anyway, I just tried it out on Ineria Player and holy cow! it sounds better than Adlib, AND, it's in stereo! Amazing. Also, when I run Inertia Player, the colours aren't quite right, (same problem as Kaylee above). Sound is great though.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/03/12 10:35 AM

Destruction Derby: Improvements to the graphics here. Camera no longer switches when driving around a corner.





Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/03/12 10:36 AM

Megamix PC Demo By RealTech: Working! although not 100%. Complains about not enough conventional memory despite having 620k free, but the demo still loads. Enabling EMM386 causes it's not to load at all. Also works with the Covox Speech Thing smile Demo won't go any further than the plasma effect.













Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/04/12 01:00 AM

Megamix PC Demo By RealTech Part 2: The above was using the SVGA S3 driver, below is using the Tseng Labs (VGA) instead. This allows some extra effects to be displayed, but still doesn't go any further than the plasma effect.











Posted By: Heihachi_73

Re: PC/XT/AT (inside) WIP topic - 02/04/12 09:53 AM

Originally Posted By Kaylee
tested today:



Fat guy looks strikingly similar to those Boong-Ga Boong-Ga characters... scary!
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/04/12 01:46 PM

The Space Pigs Megademo works well with the Covox too (the options are Covox or PC speaker) smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/04/12 07:45 PM

Can't get Ultima 7 to run, it says to me "out of far memory".

What I should do, install & configure emm386.exe perhaps?
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/04/12 07:59 PM

no, U7 needs HIMEM.SYS only. Try "-ramsize 4M" and load only the most neccessary drivers in your config.sys/autoexec.bat
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/04/12 08:01 PM

Yeah, himem.sys and a mouse driver only and it'll run fine. (You can start the game and see the VGA freakouts w/o a mouse driver, but one is pretty much necessary to actually play).
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/04/12 09:30 PM

Try ctmouse as mouse driver, it has one of the smallest memory footprints of any mouse driver I know.
Certainly smaller than the Microsoft/Logitech/Genius drivers ;-)

http://cutemouse.sourceforge.net/

-Darkstar
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/05/12 07:25 PM

Debugging your win16 apps is easier now then it was in 1994.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/05/12 07:34 PM

PC game developers *always* did that, but typically with SoftICE as the MDA-screen debugger smile Intel's 440BX chipset was the last one to support MDA alongside a PCI or AGP video card so that particular technique was dead after that.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/05/12 07:46 PM

Sure it was possible but wasn't really available to mere mortals (or students which I was at the time).
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/05/12 08:08 PM

Right, although if your university was throwing out or selling old PCs with MDA cards you could sometimes get lucky, at least in the late 80s/early 90s smile
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/05/12 09:55 PM

Some old VGA cards could also be jumpered into monochrome mode (although I don't know if that worked with dual-monitor or not)
Posted By: Vas Crabb

Re: PC/XT/AT (inside) WIP topic - 02/06/12 11:44 AM

Originally Posted By Darkstar
Some old VGA cards could also be jumpered into monochrome mode (although I don't know if that worked with dual-monitor or not)

All that does is cause them to produce monochrome mixdown output on the green channel - it doesn't cause them to emulate MDA. Just VGA for driving a monochrome display.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/06/12 03:32 PM

Originally Posted By Vas Crabb
Originally Posted By Darkstar
Some old VGA cards could also be jumpered into monochrome mode (although I don't know if that worked with dual-monitor or not)

All that does is cause them to produce monochrome mixdown output on the green channel - it doesn't cause them to emulate MDA. Just VGA for driving a monochrome display.

Not entirely. When I tried it some years ago, it would definitely switch the screen buffer from b800:0000 to b000:0000 (or maybe it was the other way round?), so it's definitely more than mixdown. I don't know how much the I/O ports etc. changed to reflect a "true" MDA device though.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/06/12 05:01 PM

Can't believe nobody tried this before ...







Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 08:11 PM

Does anyone have any idea how the heck to make a valid CHD that DOS detects the correct geometry for? I'm using at486, and when I input the CHD params in as HD type 47 (user type), the BIOS detects the correct size, but fdisk very much does not. I can get all kinds of combinations of cylinders, heads and sectors that gives me a theoretical size of around 900 megs, but not a one detects correctly outside the CMOS setup.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/06/12 08:14 PM

The directions on page 2 of this thread worked for me. To recap:

chdman -createblankhd hhd.chd 1015 16 63

Then enter 1015/16/0/0/63 for Type 47 in the BIOS. That gives you a 500 MB image, which is plenty for early 90s software. Don't use fdisk, just boot a DOS 6.22 installer and tell it to use the whole disk.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 08:22 PM

And if I don't want to use it as an MS-DOS install drive, I want to use it as an actual 900-meg disk of additional storage?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/06/12 09:01 PM

Originally Posted By Just Desserts
And if I don't want to use it as an MS-DOS install drive, I want to use it as an actual 900-meg disk of additional storage?


You'll need add this 900mb drive as your second drive in the BIOS, but you also need to tell slots to use ide as well. If you fdisked the drive you might have problems getting dos to see it now, best just create a new one and them just format it instead. While Kale is able to use a 1.5gb drive, anything over 500mb may cause improper detection
Posted By: Vas Crabb

Re: PC/XT/AT (inside) WIP topic - 02/06/12 09:41 PM

Originally Posted By Darkstar
Not entirely. When I tried it some years ago, it would definitely switch the screen buffer from b800:0000 to b000:0000 (or maybe it was the other way round?), so it's definitely more than mixdown. I don't know how much the I/O ports etc. changed to reflect a "true" MDA device though.

Odd - I have an ISA card with a Tseng Labs VGA chipset that just produces mixdown when switched over. I/O addresses don't change or anything. Must depend on the card.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 09:45 PM

So it turns out I was asking the wrong question; someone clued me into why HDDs max out at around 528MBytes without LBA, which is the answer to the question I didn't know I was asking.

In other news, any ideas what's holding up SB2.0 et al? PIT stuff? I just ask because there are a couple DOS SVGA games that require SB2.0 and up.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/06/12 09:52 PM

The DMA's been fixed to not bounce through 8 trampolines and do a linear array search on each byte (thanks Micko!) but the PIC only passes the interrupts sometimes when it feels like it. One of the J-computers with the same PIC actually says "PIC error" when you boot it, so there are definitely problems.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/06/12 10:46 PM

I thought a ROM dump from a SB 1.5 was needed as well wasn't it? I noticed though that sound blaster midi music seems to work a bit better now? I was pretty sure games like DOOM wouldn't play MIDI using the sound blaster driver before? Also FIFA International Soccer will play MIDI music when running "config" to set the sound, (even works when selecting SB 2.0 for music), but sadly the game does not run yet.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 11:27 PM

Sid & Al's Incredible Toons bails with:

Code:
You do not have enough memory to run this program.
You currently have 607232 free bytes of conventional memory,
and 65536 bytes of EMS memory.
You need at least 570000 free bytes of conventional memory,
and 737280 free bytes of EMS memory.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/06/12 11:31 PM

Try loading the driver with ramsize 12M instead, that would give you enough EMS when you load emm386.exe. Also remove smartdrv.exe if you have it, don't really need it, that'll free up like 2MB of RAM.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 11:42 PM

Originally Posted By MikeAbson
Try loading the driver with ramsize 12M instead, that would give you enough EMS when you load emm386.exe. Also remove smartdrv.exe if you have it, don't really need it, that'll free up like 2MB of RAM.


I'm already running the driver with -ramsize 12M. The whole point is that it's somehow seeing that only exactly one 64k page of EMS is available. No offense, but my comment was not a solicitation from help, more of an offer of information to actual devs who can look into such things, from an actual dev who sometimes looks into such things.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 11:48 PM

Another one for Kale or mahlemiut, Descent bails on startup with:

Code:
DOS4/GW Professional Protected Mode Run-time  Version 1.97
Copyright (c) Rational Systems, Inc. 1990-1994
DOS/4GW Professional error (2001): exception 0Ah (invalid TSS) at 0:02480000
TSF32: prev_tsf32 6B10
SS        C0 DS        A8 ES       2C8 FS         0 GS      1D0
EAX CCF00089 EBX        1 ECX       92 EDX      2C8
ESI        0 EDI        0 EBP   3A1F42 ESP     1F32
CS:IP    0:02480000 ID 0A COD CCF00089 FLG   880000
CS=    0, USE16, byte granular, limit        0, base       16, acc 0
SS=   C0, USE16, byte granular, limit     1FFF, base   349F80, acc 92
DS=   A8, USE16, byte granular, limit     7CFF, base   341E80, acc 92
ES=  2C8, USE16, byte granular, limit       20, base 100B623C, acc 92
GS=  1D0, USE16, byte granular, limit     EFFF, base FF000000, acc 8092
CR0: PG:1 ET:1 TS:0 EM:0 MP:0 PE:1   CR2: 100B623D CR3: 357000

Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/06/12 11:54 PM

Beneath A Steel Sky:

Code:
Fatal System Error
cs:eip =  2b:dfffee12
Sorry!


I'm on a roll tonight. "SIER.EXE", for Leisure Suit Larry 7, bails with:

Code:
MsgBox called before errorMgr initialized:
Error 29: Unable to initialize your audio hardware
i:\sys\interps\audio.cpp(275)


By the way, if someone can get me a nice concise test case of that PIC hang regarding Sound Blaster stuff, I'll be happy to look into it.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/07/12 05:14 AM

Here you go...

Whoever wrote that DOS extender must have been on something.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/07/12 07:02 AM

Started working today:


But it freezes when one try and save (and the colours is wrong)
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/07/12 07:05 AM

my mistake sorry
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/07/12 08:42 AM

Sid & Al's Incredible Toons (1993 Sierra): Game works, needs EMM386.EXE RAM to work or it will complain about not enough memory. It also has graphical issues where the top part of the screen I'm guessing is suppose to be at the bottom. I'm not sure if it needs a VESA driver, I didn't try. Music is Sound Blaster / Adlib. Audio is none otherwise I get a black screen when choosing Sound Blaster due to incomplete emulation.





Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/07/12 09:01 AM

Originally Posted By Kaylee
Doom Now hangs shortly after starting the first stage frown


That's a bit strange, works fine here.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/07/12 09:09 AM

Hardball 3: Great baseball game running in VGA mode.





Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/07/12 09:24 AM

Indianapolis 500: The Simulation (1989):







Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/07/12 01:43 PM

Originally Posted By Kaylee
Started working today:


But it freezes when one try and save (and the colours is wrong)


It worked here, plus the colors thing needs to be changed thru the "monitor" menu.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/07/12 09:12 PM

Catacomb Abyss (shareware) has problems with its video mode. (driver: at486 with default VGA)

It looks fine in the "intro" (slideshow ;-) but ingame you can only see the upper half.

Intro:


Ingame:


The game (1.44'' .img file):
http://uploading.com/files/9ff18cdm/CATABYSS.IMG/

-Darkstar
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/07/12 09:57 PM

Ah the nostalgia smile



Microsoft/SubLogic Flight Simulator 3.0

Works quite well, although after a few minutes the graphics go wonky and you have to press ESC every few seconds to redraw the screen
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/07/12 10:13 PM

The late, lamented Meigs Field...
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/07/12 10:21 PM

Don't remember if it's been posted before (a quick search turned up nothing)













Controlling is kinda digital though. Either it flies you straight up or straight down. I guess the emulated 486 is just a tad to slow ;-)

-Darkstar
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/07/12 11:09 PM

I think I've figured out how to differentiate the ET4000 8bit SVGA modes from mode 13h. At least for the Windows driver.

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/07/12 11:40 PM

Nice. Any idea why e.g. Second Reality and ScreamTracker 3 jump to garbage and crash MESS? smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/07/12 11:56 PM

Nice, please send me any VGA mod so I'll put in the SVNs asap.

As for Second Reality, my first guess is some annoying out-of-bounds write, that uncautously corrupts WRAM data.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 12:32 AM



WIP: Virtual Pool running with a S3 card ...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:15 AM

Originally Posted By Kale
Nice, please send me any VGA mod so I'll put in the SVNs asap.

As for Second Reality, my first guess is some annoying out-of-bounds write, that uncautously corrupts WRAM data.


I was curious as well as to possiblty why FIFA International Soccer crashes with a memory error, and why FastTracker II also crashs with some a memory error or some sort, would this be CPU related as well?

Nice to see Virtual Pool running in VESA mode, gotta run pretty slow though I bet, a bit slow on the 486 driver running at 100% on my machine as it is.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:21 AM

Second Reality & ST3 have been very consistent about crashing this way since segment limits were first implemented, and it happens immediately on launch so it seems like something in the DOS extender startup. (Also, both apps crash identically).
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:28 AM

Originally Posted By MikeAbson

Nice to see Virtual Pool running in VESA mode, gotta run pretty slow though I bet, a bit slow on the 486 driver running at 100% on my machine as it is.


We are still not in the "accelerator" league so the speeds are still accetable. Actually I've zero-ed the port for the sake of science, so if you try to run Virtual Pool with the acceleration ON ...

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:32 AM

Uhm, this started to work as well in my WIP code ...



Crashes if you try to enter into gameplay tho ...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:49 AM

Originally Posted By Kale
Originally Posted By MikeAbson

Nice to see Virtual Pool running in VESA mode, gotta run pretty slow though I bet, a bit slow on the 486 driver running at 100% on my machine as it is.


We are still not in the "accelerator" league so the speeds are still accetable. Actually I've zero-ed the port for the sake of science, so if you try to run Virtual Pool with the acceleration ON ...



Sorry, I'm not in any way blaming yourself or anyone else for the speed of which games run. I'm assuming if I can run the 486 driver at 100%, and the game internally is running at say 65%, and one were to install the game on a real 485 running at the same speed, then the game will still run at the same speed at which MESS is emulating, not any faster. I'm not blaming MESS here, I'm pretty sure the game runs just as slow on real hardware. One can already see that when the Pentium driver runs at 100% on machines fast enough, games running within that driver will ovbiously run a lot faster.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:53 AM

As weird as it sounds, GTA works if you select the 3dfx (!!!) version, colors are quite messed up tho:



Originally Posted By MikeAbson

Sorry, I'm not in any way blaming yourself or anyone else for the speed of which games run.


Well, don't worry, I wasn't/isn't offended in any way. We do know that the framework isn't exactly the best performance wise, and presumably we are already at our limit with our PCs with 486 machines (and Cali Chase on MAME is here to prove it).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:54 AM

Originally Posted By R. Belmont
Second Reality & ST3 have been very consistent about crashing this way since segment limits were first implemented, and it happens immediately on launch so it seems like something in the DOS extender startup. (Also, both apps crash identically).


What if you tried a different version of a DOS extender? I haven't tried it myself.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:56 AM

The extender is built in, it's not external like DOS/4GW or CWSDPMI.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 02:23 AM

Originally Posted By R. Belmont
The extender is built in, it's not external like DOS/4GW or CWSDPMI.


I see...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 02:35 AM

Originally Posted By Kale
Well, don't worry, I wasn't/isn't offended in any way. We do know that the framework isn't exactly the best performance wise, and presumably we are already at our limit with our PCs with 486 machines (and Cali Chase on MAME is here to prove it).


I agree there, I don't think it can get much better. I was curious though as to why enabling emm386 causes such as massive performance hit, about 100% difference minimum on my machine, from around 170% unthrolled to about 70% or less.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 03:19 AM

Fixed colors (dunno why it's half in X size, don't care for now):

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 03:33 AM

Kale: Sweet.

MikeAbson: when an MMU's in use, it adds a lot more accesses through the core memory mapping system, which slows things down a lot. Emulating the caches can bring a lot of that performance back, but ultimately interpreters just aren't great when the emulated system is beyond 33 MHz or so.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/08/12 03:38 AM

Fractint VESA modes work too with a driver.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/08/12 05:46 AM

Originally Posted By R. Belmont
Nice. Any idea why e.g. Second Reality and ScreamTracker 3 jump to garbage and crash MESS? smile


Trap flag needed to be implemented.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 09:01 AM

Links 386 Pro: Up and running on the S3 SVGA driver, no VESA driver required. It crashed on me once (see screenshot) and had to reboot, didn't test a lot the 2nd time. Takes quite a performance hit when running though, with MESS running at 46% idle while the game waits for me to take my shot! Looks good however.







Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/08/12 09:22 AM

Death Rally: S3 SVGA driver. The game reboots the PC when the light goes green, and the colours on the car aren't quite correct. I'm not entirely sure the bottom screenshot where it is mostly a darker colour is correct either, but maybe it is, it's the same track.





Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 02/08/12 10:46 AM

The MDK demo is working. You can use at586 or at486 and replaced (I486, 25000000) with (PENTIUM, 60000000) in drivers\at.c -MACHINE_CONFIG_DERIVED( at486, at386 ).


Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 01:50 PM



Don't sing victory too soon tho, keyboard arrow keys refuses to work here. smirk
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 02:19 PM

Yeah, the arrow keys don't work to pick a sound card in Crystal Dream 2 either. Nice that GTA doesn't crash now though smile
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 02/08/12 02:44 PM

Originally Posted By R. Belmont
MikeAbson: when an MMU's in use, it adds a lot more accesses through the core memory mapping system, which slows things down a lot. Emulating the caches can bring a lot of that performance back, but ultimately interpreters just aren't great when the emulated system is beyond 33 MHz or so.


Emulating the TLB is atrocious. OTOH, specialized caching, also known as "1Meg array of just-in-time decoded base page addresses" can help a lot, I think.

OG.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 02:48 PM

Hmm, with latest SVN Second Reality still dies in exactly the same way. Was the checkin for DOS/4GW 1.97 not the fix for that?
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/08/12 02:57 PM

Nope, that fixed task gate support. I haven't passed on the trap flag patch yet. Here it is if you want to play with it.
Code:
Index: src/emu/cpu/i386/i386priv.h
===================================================================
--- src/emu/cpu/i386/i386priv.h	(revision 14388)
+++ src/emu/cpu/i386/i386priv.h	(working copy)
@@ -240,6 +240,7 @@
 
 	UINT8 performed_intersegment_jump;
 	UINT8 delayed_interrupt_enable;
+	UINT8 old_tf;
 
 	UINT32 cr[5];		// Control registers
 	UINT32 dr[8];		// Debug registers
Index: src/emu/cpu/i386/i386.c
===================================================================
--- src/emu/cpu/i386/i386.c	(revision 14388)
+++ src/emu/cpu/i386/i386.c	(working copy)
@@ -3099,6 +3099,7 @@
 		cpustate->address_prefix = 0;
 
 		cpustate->ext = 1;
+		cpustate->old_tf = cpustate->TF;
 
 		cpustate->segment_prefix = 0;
 		cpustate->prev_eip = cpustate->eip;
@@ -3113,6 +3114,13 @@
 		try
 		{
 			I386OP(decode_opcode)(cpustate);
+			if(cpustate->TF && cpustate->old_tf)
+			{
+				cpustate->prev_eip = cpustate->eip;
+				cpustate->ext = 0;
+				i386_trap(cpustate,1,0,0);
+			}
+
 		}
 		catch(UINT64 e)
 		{
Posted By: AaronGiles

Re: PC/XT/AT (inside) WIP topic - 02/08/12 03:16 PM

Originally Posted By Olivier Galibert
Emulating the TLB is atrocious. OTOH, specialized caching, also known as "1Meg array of just-in-time decoded base page addresses" can help a lot, I think.

Also known as vtlb.c wink
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/08/12 04:52 PM

Tested a bit tonight




Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 02/08/12 05:30 PM

Originally Posted By AaronGiles
Originally Posted By Olivier Galibert
Emulating the TLB is atrocious. OTOH, specialized caching, also known as "1Meg array of just-in-time decoded base page addresses" can help a lot, I think.

Also known as vtlb.c wink


Interesting hint we have there :-)

OG.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 05:55 PM

VTLB seems a little too tied to the RISC TLB model to do much for a full-service CISC MMU like 68k or i386. The 68k MMUs in particular let the system software get up close and very personal with the implementation details; 030 we emulate the translation cache (we have to), and 040 we're going to have to to boot MacOS >= 7.6.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/08/12 07:10 PM

has the syntax for using the at486 and at586 drivers changed?

on a 100% fresh clean compile in a new folder I get nothing more than a black screen?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/12 07:21 PM

Shouldn't have. Was working for me as of r14388. 14389 could possibly have broken vga, you never know.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/08/12 07:21 PM

Originally Posted By Haze
has the syntax for using the at486 and at586 drivers changed?

on a 100% fresh clean compile in a new folder I get nothing more than a black screen?

Yup, confirmed here (SVN rev. 14389). I also get 2 beeps though ;-)
It has something to do with the VGA card, as soon as you plug an EGA card in slot 1 it works. RB already figured that out ;-)

-Darkstar
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/08/12 07:34 PM

Remove line 1352 of pc_vga.c ("if(vga.sequencer.data[1]&0x20) // ok?") to fix it.
Posted By: AaronGiles

Re: PC/XT/AT (inside) WIP topic - 02/08/12 08:06 PM

Originally Posted By R. Belmont
VTLB seems a little too tied to the RISC TLB model to do much for a full-service CISC MMU like 68k or i386. The 68k MMUs in particular let the system software get up close and very personal with the implementation details; 030 we emulate the translation cache (we have to), and 040 we're going to have to to boot MacOS >= 7.6.

Well it was designed to be sufficient for x86 and RISC. Don't know about 68k. But it's just a cache, so really it shouldn't matter what the implementation details are. It just maintains a UINT32 array where the low 8 bits indicate read/write/execute permissions for user/supervisor mode, and the upper 24 bits are a physical address. If you need to do anything more detailed, then you write your own code that walks the real TLB.

For a non-RISCy MMU use fixed_entries=0 when allocating and set dynamic_entries to the TLB size (which is good to emulate since some naughty code relies on things aging out).
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/08/12 08:53 PM

After Life started working with S3 card:




Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/08/12 09:46 PM

I loved that game!
Posted By: AaronGiles

Re: PC/XT/AT (inside) WIP topic - 02/08/12 09:50 PM

Originally Posted By Kale
After Life started working with S3 card:

Now THAT brings back memories.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/09/12 10:27 AM

Originally Posted By Kale


Don't sing victory too soon tho, keyboard arrow keys refuses to work here. smirk


I am singing victory, the keyboard does in fact work, but it's a bit iffy smile I can't get it to work at the "Play" and "Options" menu, nor am I able to select a character other than Bubba, (which is fine because I like to use him anyway). In-game I can walk around, but if I try to drive a vehicle, I can't, although for some strange reason I was able to at the start of the game where that car is stationary right in front of you there, but only backwards and forwards. If I steal a car that someone was driving later, I can't go anywhere frown
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 02/09/12 01:18 PM



Epic Pinball with with Gravis UltraSound. Hell Yeah!

I downloaded the Gravis Ultrasound Classic driver at http://www.vogonsdrivers.com/index.php?catid=3
and copy the drivers from the folder ULT\software\GUS411 to my harddisk and install them.
To my config.sys did i added:
SET ULTRADIR=C:\ULTRASND
SET ULTRASND=220,1,1,7,5

To the at486.ini did i added:
isa4 gus

This works!
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/09/12 05:27 PM

Got 15, 16 and 24 bpp working with the ET4k

Not yet sure why 640x480x24 is 720 pixels wide yet.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/09/12 05:39 PM

Nice!
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/09/12 08:48 PM

The Crystal Dreams 2 demo from Triton may work now. The keyboard doesn't work but the GUS is the first soundcard in the list from memory.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/09/12 08:55 PM

For those wanting official GUS sound drivers, you can download them in the files section from this website.

http://www.gravisultrasound.com/
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/09/12 08:56 PM

Right. The Ultrasound emulation sounds roughly like 'cat /dev/random >/dev/dsp' though, so keep your sound turned down.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/09/12 11:15 PM

Improved at least 8-bit PCM, 16-bit still needs works, but at least now Pinball Fantasies now sounds reasonable. Not so much for Doom, as it uses a mix of 8-bit and 16-bit PCM samples, but we're getting there. smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/09/12 11:27 PM

You aren't shifting the 8 bit samples left 8 bits and then running a pure 16-bit mixer? There's way fewer things to go wrong then smile
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 02/10/12 12:46 AM

Wow! Seek and Destroy with real good sound. I can't believe it... '?*????***!!!
Thanks to Barry for this great Gravis Ultrasound device.

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/10/12 04:12 AM

Please do not post giant animated GIFs, thanks. They're terrible on 3G connections. (Yes, GSM is the new 56k ;-)
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/10/12 05:33 PM

Originally Posted By crazyc
Got 15, 16 and 24 bpp working with the ET4k

Not yet sure why 640x480x24 is 720 pixels wide yet.


Uhm, not even vgadocs has that documented, how it's possible?
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/10/12 06:48 PM

It's documented in svgalib. The RAMDAC is programmed directly and the ET4k output is double or triple clocked.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 02:32 AM

Windows For Workgroups 3.11 default and ET4000 working drivers with recent ET4000 changes. 800x600 16 colour mode was the only default SVGA mode I couldn't get to work though, MESS completely crashes. Screenshot 3 has a different font for some reason, but same resolution and colour depth as screenshot 2, (not sure why that is happening, I didn't change the font, happens randomly). Screenshot 4 is a bit too much for the driver to handle as you can see (1280x1024x16 colours).







Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 03:08 AM

Duke 3D (ET4000 VESA 800x600): Running at 1fps smile





Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 04:24 AM

Screamer: SVGA mode on the ET4000. (640x480)











Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/11/12 04:50 AM

Wow, that looks a lot like Scud Race.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/11/12 06:04 AM

Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/11/12 06:10 AM

Theme Hospital starts, but I've yet to get past the select screen

Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/11/12 06:30 AM

SU-27 Flanker

Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/11/12 07:15 AM

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 09:36 AM

Quake v1.06 (1996 ID Software): r14420. That "small fix" gets this beast up and running smile Lack of interesting screenshots is due to 0.5fps I'm getting, no kidding. EDIT: Added screenshot showing internal resolution (360x480, not 720x480 as the screenshots suggest) and the percentage MESS was running at. My PC specs are AMD64 6 core 3.30Ghz with 8GB RAM and Ge-Force GTX 580 with 1.5GB RAM. MESS was using all 6 cores. It's pretty intensive.









Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:08 AM

Even on my Pentium 100 400x300 was about the maximum resolution I could get playable framerates on this kind of thing.. I suspect your 0.5 fps has a lot to do with that, 720x480 is a little ambitious ;-)
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:12 AM

Originally Posted By MikeAbson
That "small fix" gets this beast up and running smile


That's not all it fixes... shocked

Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:21 AM

Quote:
Lack of interesting screenshots is due to 0.5fps I'm getting, no kidding.


This I call slide show. grin
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:22 AM

Quake is working! This is excellent news indeed.

Congratulations to all involved smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:46 AM

Originally Posted By Haze
Even on my Pentium 100 400x300 was about the maximum resolution I could get playable framerates on this kind of thing.. I suspect your 0.5 fps has a lot to do with that, 720x480 is a little ambitious ;-)


The resolution of those screenshots is mis-leading. Internal resolution was 360x480, the maxmium I could use despite using univbe.exe. MESS was running about 43% or so. On my Pentium 100 I don't think I used 400x300, it was about 320x240 or something to get playable framerates.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:48 AM

Originally Posted By Anna Wu
Quote:
Lack of interesting screenshots is due to 0.5fps I'm getting, no kidding.


This I call slide show. grin


No dobut about it smile
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/11/12 10:54 AM

War has never been so much fun

Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/11/12 11:09 AM

seems the mouse keeps cutting out (with the MS drivers) in current versions, like the communications break down or something.

Happens in Win 3.1 and various other things, randomly.

Didn't used to do that, so it's something recent.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/11/12 11:16 AM

It'S getting harder and harder to find games which don't work at all now. These three games from my collection work just fine now:

Lost Vikings


Knights of Xentar


Master of Orion


They didn't even start a few weeks ago, which shows the great progress MESS has made recently, with all those i386 fixes and stuff. Impressive!

Edit: Tried an old linux version again (Slackware 2.1.0 using kernel 1.1.59), hangs after detecting the FDC chip:


-Darkstar
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/11/12 11:39 AM

This looked promising...






However, it hangs at this point:


(for those who don't know, here is how to create boot floppies from the CD-ROM)

-Darkstar
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/11/12 11:51 AM

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 11:58 AM

Originally Posted By Darkstar
This looked promising...






However, it hangs at this point:


(for those who don't know, here is how to create boot floppies from the CD-ROM)

-Darkstar


I haven't been much luckier either. I've got 22 disk images and have gotten through the blue screen part of the set up as you're going through there, but after that the installer says to remove all disks and reboot, when I reboot, it loads the following screen and won't go any further.



I've been much luckier with Windows 95 though, getting through almost an entire install from scratch, but I get a BSOD just before I get to the part where Windows wants to finalize the installation before the loading the desktop, so creating the program groups and things like that it won't show me frown
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/11/12 12:11 PM

Windows 95 doesn't BSOD at that point anymore, it just sits there forever doing the colour fade, like Win98 does.
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 02/11/12 12:17 PM

Jazz Jackrabbit now detects the Gravis Ultrasound card and it's very fast.
No hiccups; over 100% - full playable. I tested JAZZ10 and JAZZ11.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 12:23 PM

Originally Posted By Haze
Windows 95 doesn't BSOD at that point anymore, it just sits there forever doing the colour fade, like Win98 does.


I can only get that to happen if I select Safe Mode, but it will still give me a BSOD once, and when I press any key, then it show the Windows 95 splash screen indefinitely. If I try to let Windows 95 install normally, I'll get a BSOD and can spend all day pressing any key. I may need to do another full install from scratch to replicate what you're saying though.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 12:28 PM

Duke 3D Gravis Ultrasound music and sound detection working. Sounds like a PC speaker on drugs smile lol



Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/11/12 01:01 PM

DOS4/GW 1.95 crashes MESS if EMS memory is configured (SVN rev.14421) with an "Invalid REP/opcode 14 combination":
Code:
  0028E938: 00FAE47F (winmain_dump_stack()+0x0027)
  0028E958: 0194997F (osd_break_into_debugger+0x003a)
  0028E9C8: 01B77297 (emu_fatalerror::emu_fatalerror(char const*, char*)+0x0087)
  0028EA48: 0196F342 (fatalerror(char const*, ...)+0x006a)
  0028EA88: 01165077 (i386_repeat(_i386_state*, int)+0x032c)
  0028EAA8: 0116522A (i386_repne(_i386_state*)+0x0019)
  0028EAC8: 01192609 (i386_decode_opcode(_i386_state*)+0x006d)
  0028EB58: 01193880 (cpu_execute_i386(legacy_cpu_device*)+0x0199)
  0028EB78: 0175A435 (legacy_cpu_device::execute_run()+0x0017)
  0028EB98: 01D1CC2C (device_execute_interface::run()+0x0018)
  0028EC58: 0160C636 (device_scheduler::timeslice()+0x02c0)
  0028ED58: 0156C6FE (running_machine::run(bool)+0x03dc)
  0028F8F8: 0153B557 (mame_execute(emu_options&, osd_interface&)+0x0290)
  0028FB88: 01747259 (cli_frontend::execute(int, char**)+0x08b9)
  0028FE98: 00FAC5B0 (utf8_main(int, char**)+0x01c4)
  0028FEC8: 01949826 (wmain+0x008a)
  0028FF88: 00401422 (__tmainCRTStartup+0x0292)
  0028FF94: 7506339A (BaseThreadInitThunk+0x0012)
  0028FFD4: 77609EF2 (RtlInitializeExceptionChain+0x0063)
  0028FFEC: 77609EC5 (RtlInitializeExceptionChain+0x0036)
i386: Invalid REP/opcode 14 combination
Average speed: 47.30% (8 seconds)

DOS4/GW 1.97 doesn't even start (hangs before printing its banner)

DOS4/GW 1.4 crashes too, but without any invalid opcode message:
Code:
-----------------------------------------------------
Exception at EIP=0156FF0F (resource_pool::remove(void*)+0x00e1): ACCESS VIOLATION
While attempting to read memory at 51B02660
-----------------------------------------------------
EAX=51B02660 EBX=146C0988 ECX=146C4F10 EDX=51B02620
ESI=0028ED9C EDI=00000000 EBP=0028EA68 ESP=0028EA40
-----------------------------------------------------
Stack crawl:
  0028EA68: 0156FF0F (resource_pool::remove(void*)+0x00e1)
  0028EAA8: 01699FA8 (render_texture::release()+0x005c)
  0028EAC8: 016A22C2 (render_manager::texture_free(render_texture*)+0x0026)
  0028EB48: 01795D28 (render_font::~render_font()+0x00a0)
  0028EBC8: 01BFEEAF (resource_pool_object<render_font>::~resource_pool_object()+0x0067)
  0028EBF8: 0156FEFF (resource_pool::remove(void*)+0x00d1)
  0028EC18: 0157005E (resource_pool::clear()+0x002e)
  0028EC98: 0156FA7A (resource_pool::~resource_pool()+0x0050)
  0028ED58: 0156B315 (running_machine::~running_machine()+0x03af)
  0028F8F8: 0153B61E (mame_execute(emu_options&, osd_interface&)+0x0357)
  0028FB88: 01747259 (cli_frontend::execute(int, char**)+0x08b9)
  0028FE98: 00FAC5B0 (utf8_main(int, char**)+0x01c4)
  0028FEC8: 01949826 (wmain+0x008a)
  0028FF88: 00401422 (__tmainCRTStartup+0x0292)
  0028FF94: 7506339A (BaseThreadInitThunk+0x0012)
  0028FFD4: 77609EF2 (RtlInitializeExceptionChain+0x0063)
  0028FFEC: 77609EC5 (RtlInitializeExceptionChain+0x0036)


-Darkstar
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/11/12 01:32 PM

PGA Tour Golf 486 v1.1 (1994): EA's answer to Links 386 Pro. Copied the entire CD over a to CHD and ran it directly from there. Unfortunately there are issues with the VESA display among other things:

- Golfers are not displayed (they are digitized).
- Slight graphical issues.
- Physics are inaccurate? (when the computer takes control of a player, most of the time ball will roll from the middle of the fairway to out of bounds - strange).
- Swing meter does not work when clicked on.

The 1.1 version also features Pentium enhancements, such as a fly-by video of the hole being played, as well as a reverse camera angle of the ball landing. Shown below is the 486 version, stay tuned for the 586 version if it works. Looks nice though and hopefully it will be playable in the near future.















Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/11/12 03:00 PM

wimgtool works only for small CHDs (I tried with a 25mb disk and that worked). However, I have experienced various corruption in the CHD filesystem while using it, so I won't recommend it for CHD work at all.

On a different note, installing Win32s on Windows fails with this obscure error message:


In fact, almost every setup program I try aborts with the exact same message (Win32s, WinG, Corel Draw, ...)

-Darkstar
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/11/12 06:21 PM

Probably a common scripted installer (similar to the modern MSI) that hits an i386 ALU bug of some sort.
Posted By: AaronGiles

Re: PC/XT/AT (inside) WIP topic - 02/11/12 07:09 PM

If you want a real stress test of a lot of seldom-used x86isms, try running OS/2 Warp. smile
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/12/12 01:18 AM




Jonah Lomu Rugby (demo version)

Requires SVGA, sound not working so well frown

Not so fast on a 25MHz system either wink
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/12/12 05:52 AM

Heroes of Might & Magic



Unfortunately not really playable, as after your first move the computer should move but never really does, and the game "hangs"
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/12/12 07:05 AM

NBA Live 96: Used a virtual CD emulator in DOS to get this ISO up and running, video introduction and all.



















Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/16/12 06:29 PM

Here's something a bit different.

The second terminal doesn't quite work and the palette is messed up but you should be able add any number of terminals and for now, keyboard input is sent to all of the terminal.
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 02/16/12 06:45 PM

nice, I like where this goes smile

Anyway just update to RGB32 usage then there will not be any palette conflict. We should update all graphics card that way so they can work together.
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 02/16/12 07:22 PM

Or palettes should be definable per screen
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/16/12 07:42 PM

Again, all of the Mac video works without using core palettes and doesn't have this problem. Lazy PC basts.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/16/12 08:09 PM

Making the terminal 32bpp was easy and now as a benefit, your terminals can be amber!
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/16/12 08:18 PM

Nice! Should be green, amber, and white options smile (Were there any other monochrome CRT colors made?)
Posted By: Phil Bennett

Re: PC/XT/AT (inside) WIP topic - 02/16/12 09:21 PM

3D Studio R3 is behaving itself:




Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/16/12 09:23 PM

Damn, man, nice!
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/16/12 09:29 PM

And *that's* how you know the FPU emulation is good smile
Posted By: RColtrane

Re: PC/XT/AT (inside) WIP topic - 02/16/12 10:50 PM

Really nice, I still have my 3DS4 and a lot of 3d meshes ready to render laugh I'll give it a try later.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/17/12 12:16 AM

The second terminal works now too. Had to add loopback handshaking or the pc bios wouldn't write to the port.

Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/17/12 04:34 AM

...and to connect to terminals outside. Attaching serial ports to sockets ought to be interesting.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/18/12 01:03 AM

Hi all. I just downloaded the latest source, r14500, and when I try to load a *.chd hdd image file, MESS is telling me it is unable to load the image, internal error. It seemed to be ok a few days ago when I last updated the source, something has happened since then it appears? I'm hitting Tab to bring up the menu and trying to load the *.chd image under the File Manager, which is no different to how I normally load a hard drive image.
Posted By: Tafoid

Re: PC/XT/AT (inside) WIP topic - 02/18/12 01:22 AM

Originally Posted By MikeAbson
Hi all. I just downloaded the latest source, r14500, and when I try to load a *.chd hdd image file, MESS is telling me it is unable to load the image, internal error. It seemed to be ok a few days ago when I last updated the source, something has happened since then it appears? I'm hitting Tab to bring up the menu and trying to load the *.chd image under the File Manager, which is no different to how I normally load a hard drive image.


In short, CHD and all things related to it are in the midst of change and a version upgrade from 4 to 5. It's been a couple days of crazy and there is still more work to do. You might want to wait out the changes for a few days.. if nothing else but for your sanity.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/18/12 03:57 PM

Windows NT 1991 Beta
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/18/12 07:04 PM

Wow nice smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/19/12 04:23 AM

The debugger works too.

This version of NT is so old, current windbg just errored out so I had to run it in virtualbox so I could use it's own version of kd.
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 02/20/12 09:56 AM

Various bugs:

1. When exiting EDIT, it says Syntax error, and won't let you quit. It does save your changes though.

2. DIR /S won't list subdirectories.


Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/20/12 11:15 AM

Originally Posted By Robbbert
2. DIR /S won't list subdirectories.

This occurs on the FM Towns also, so likely some bug in the i386 core.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/20/12 05:52 PM

Carl does it again: DIR /S and EDIT.COM are both fixed with latest.
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/20/12 05:52 PM

amazing work smile
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 02/20/12 07:27 PM

cpu/i386/i386ops.c
- SUB8(cpustate,dst, src);
+ SUB8(cpustate,src, dst);

This little twister has caused it! Oh God...
Hurra, exiting EDIT is fixed!!! Thanks to Carl.
DIR /S did i not use, but i have three little other helpers for DOS:


>> de.bat (List all *EXE, *BAT and *.COM files to start them)
@ECHO OFF
DIR /p /w /o *.EXE | MORE
DIR /p /b /w /o *.BAT | MORE
DIR /p /b /w /o *.COM | MORE


>> d.bat (Show directory in a better format)
@ECHO OFF
DIR , /p /w /o

>> dd.bat (Shows big directories + PAUSE/WAIT)
@ECHO OFF
DIR , /p /OEN


Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/20/12 07:49 PM

Yup, that caused the carry flag to be inverted.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/20/12 09:20 PM

Fixes dir /s on the FM Towns also. :P

Now just need to figure out why it won't boot Windows 3.1 in 386 enhanced mode. Standard mode works fine, other than an RF5c68 interrupt killing the YM3438 timer interrupts (used to poll the mouse).
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/20/12 09:53 PM

Windows NT gets past the debug break in the shot above now too. Now it dies with a stop 0xC0000145 while starting smss.exe. At least it reaches user mode.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/21/12 04:31 AM

Originally Posted By mahlemiut
Fixes dir /s on the FM Towns also. :P

Now just need to figure out why it won't boot Windows 3.1 in 386 enhanced mode. Standard mode works fine, other than an RF5c68 interrupt killing the YM3438 timer interrupts (used to poll the mouse).


I hope Carl can help us. smile
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 02/21/12 06:21 AM

Laser Light is now fixed smile

Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 02/21/12 10:22 PM

Installation of OS/2 2.1 on at486 fails at second floppy with this error message:



Robert
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/21/12 10:37 PM

Originally Posted By rfka01
Installation of OS/2 2.1 on at486 fails at second floppy with this error message:


Robert

That's LMSW. It can probably be copied as is from i386op16.c to i386op32.c.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/21/12 11:28 PM

It'll have to be added for i486ops.c also, as the 486 has its own handling of 0F 01. Also, what's up with the 16-bit version of LMSW in i486ops.c? I've seen some info that LMSW only sets the lower 4 bits of CR0 (only the lower two bits are set currently), but the 80386 reference doesn't mention anything like that. Did LMSW change the affected bits from the 486 upwards?
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 02/22/12 06:13 PM

Windows 3.1 refuses to start with current SVN (14573) on the at486 driver. It used to work 1 week ago. Can anyone confirm this (before I wipe and re-install everything)?

thx,
-Darkstar
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/22/12 06:22 PM

Works fine here.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/22/12 11:39 PM

Windows 95 getting closer with Carl's latest:



The pointer moves, but Explorer never comes up.

Ironically, in safe mode it bluescreens instead.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 02:24 AM

Nice!
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 08:55 AM

I'm trying to create a 500MB HDD with the new version of chdman and cannot for the life of me get it work right. I'm using the following command, but all I end up with a 499KB file, not a 499MB file.

chdman createhd -o at486.chd -chs 1015,16,63

Not sure what's wrong?
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/23/12 09:07 AM

you have to specify -c none to make it uncompressed and hence writeable, otherwise the empty chunks (most of them when you create a blank disk) gets compressed and you get the very small file.

notice that the file you get is probably ok (I don't have chdman here to test), but cannot be written by MESS
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 09:39 AM

I appreciate your help, however the result is the same unfortunately. By default compression is set to none. I forced it with: -c none, as you suggested, but I still end up with a 499KB file frown May be a bug?

Edit: Attached screenshot



With the above, I end up with a 499KB file, not a 499MB file.
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/23/12 09:47 AM

but the point is: does it work when loaded to MESS? you can see that the logical size is correct...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 09:57 AM

I can load the file because MESS now sees it as a valid chd file, but no the pc driver does not see the file as a valid hard drive. The BIOS tells me there is a hard drive failure. I've correctly set the values in to the BIOS. My guess is because the file is not 500MB.

Edit: I take that back, I'll see how I go here. So the file is suppose to expand I guess? Can't obviously fit 500MB of data inside a 500KB file, unless this is ulta new state of the art technology chdman is offering here lol
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:02 AM

I was not sure if the CMOS test was failing because of an error of mine or because of a bug.
Anyway, the file should be seen by the driver as 500MB given that is the logical size, the actual file size should not matter (when a 0block gets written becoming a non-0block, the block data would be appended to the CHD and the file would grow from 499k to larger sizes...)
I guess you have found a bug smile

EDIT:
Originally Posted By MikeAbson
Can't obviously fit 500MB of data inside a 500KB file, unless this is ulta new state of the art technology chdman is offering here lol


you can, if the file is blank and you have a sector map which tells chdman which sectors can be skipped being blank
once you start adding non-0 data, the file is supposed to grow wink

this is in theory of course. somewhere there is apparently a bug which makes the theory fail wink
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:04 AM

What's happened is that the I had the drive set to secondary instead of primary for some reason, hence the reason for the hard dive failure. I've fixed that and MS-DOS is seeing the file as 500MB.

Edit: The file is expanding, when I ALT+TAB, the chd file is now 2MB (1 disk in to a dos install), so it's all good I think. No bug I guess. I was just expecting the file to be 500MB that's all.
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:06 AM

great, so no bug and I definitely have to learn how to use CMOS self tests smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:10 AM

Yes, I think we're good now smile Thanks for that.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/23/12 02:41 PM

It´s easy to make a double check by using the extracthd parameter:
chdman extracthd -i at486.chd -o at486.img
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/23/12 04:11 PM

Originally Posted By R. Belmont
Windows 95 getting closer with Carl's latest:



The pointer moves, but Explorer never comes up.

Ironically, in safe mode it bluescreens instead.


Not for me but almost the same like in normal mode.




Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/23/12 06:56 PM

Originally Posted By Anna Wu
Originally Posted By R. Belmont
Windows 95 getting closer with Carl's latest:


The pointer moves, but Explorer never comes up.

Ironically, in safe mode it bluescreens instead.


Not for me but almost the same like in normal mode.



similar results if you install Win95 within MESS (takes a few attempts because it crashes during setup HW detection, but eventually gives you the option to skip that)



this is after the first reboot and 'getting ready to run Win95 for the first time' screen. Safe Mode / Normal Mode both behave the same.

Win98 still hangs on the 'getting ready to run..' screen.


Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/23/12 07:01 PM

About the different results, I think it also depends on the kind of ISA device cards installed.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/23/12 08:05 PM

It looks like a fault is happening in 16bit mode while the Win16Mutex is held. User tries to put up an error dialog which requires taking the lock -> deadlock. It's possible the safe mode fault is the same problem just without the error dialog.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 02/23/12 08:27 PM

OS/2 2.1 now loads the second floppy, but just sits there with "Please Wait".

OS/2 3.0 Warp loads the second floppy, shows "Please Wait" briefly, and then shows this within the emulation:



Robert
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/23/12 08:37 PM

it might be worth mentioning, if you're installing win95 and it crashes during setup then you *must* reset with f3 before trying to run setup again, or it will hang very early on (after the disk check)

dunno if some state on the CPU is getting fucked at the point where it crashes during hw detection, but for anybody actually wanting to go through the win95 setup procedure it's kinda important.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 09:10 PM

To avoid any crashes during a clean install of Windows 95, when asked to select the type of install you want, instead of selecting Typical, select Custom instead and then deselect all hardware in the list and continue with installation, Windows will tell you it can't determine the type of computer you have and give some hardware options to pick from, such as keyboard, mouse, display etc. Windows will successfully install, but go no further than the background with the keyboard on it and a mouse pointer after starting Windows for the first time.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:19 PM

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:30 PM

Great! Now just need to get it working without being Safe Mode smile
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:53 PM

Originally Posted By crazyc


Holy...
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/23/12 10:57 PM

It works fine out of safe mode but it might be time to create an ISAPNP slot interface (and PCI?).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/23/12 11:02 PM

Silly question, but is it possible to get Windows 95 to the stage you've got it at there on the current revision (r14598)? I'm guessing not though what we're seeing here is work in progress instead? Really good to see though. How's the performance as well?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/23/12 11:11 PM

There have been no changes to i386/PC checked in today, so that's a "no" smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/23/12 11:14 PM

I guess I should qualify my earlier post and say I don't know if it'll work fine out of safe mode but should if you have a installed image which I don't. The setup takes to long for me to wait though right now. Also, the plug-and-play setup part kills the mouse.

You'll need a small patch against the current rev to boot it. I'll submit it to Barry in a bit.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/23/12 11:26 PM

Originally Posted By crazyc
(and PCI?).


PCI isn't available on at486 or ct486 as far as I know. Pretty sure someone is going to get the at586 driver to work. Once that happens, however, I demand the hell out of Barry or Angelo hooking src/emu/video/voodoo.c up to it. laugh
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/24/12 01:09 AM

With latest...



This is Win95 OSR2, I believe - the boot screen is the one that says "Windows 95 / Microsoft Internet Explorer".
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/24/12 01:15 AM

That's OSR2.5. OSR2 was 4.00.950B.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/24/12 01:20 AM

The FM Towns version of Win95 isn't quite working, yet. While booting, you get the initial boot screen, then the startup menu (automatic if last boot failed), then an IRET returns to an unmapped address, and generates a page fault. The fault handler then returns back to the same address it just faulted on, causing another page fault, and so on. MESS eventually bombs out.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/24/12 02:34 AM

Does Windows 95 boot from a clean install in to MESS or only as an image installed in to say Bochs and then copied over to a MESS chd file, or both?
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/24/12 03:50 AM

Originally Posted By R. Belmont
With latest...



This is Win95 OSR2, I believe - the boot screen is the one that says "Windows 95 / Microsoft Internet Explorer".


Here the German version. smile


Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/24/12 04:50 AM

Mike: I would assume a MESS-hosted install should work too (if you follow Haze's tips), but I used an image that I installed on Bochs.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/24/12 04:53 AM


Was my fault it wasn't working. I assumed LOCK worked the same on the 286 as the 386.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/24/12 04:55 AM

Nice!
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/24/12 05:08 AM

Originally Posted By mahlemiut
The FM Towns version of Win95 isn't quite working, yet. While booting, you get the initial boot screen, then the startup menu (automatic if last boot failed), then an IRET returns to an unmapped address, and generates a page fault. The fault handler then returns back to the same address it just faulted on, causing another page fault, and so on. MESS eventually bombs out.


The 386 Enhanced mode (Windows 3.1) is still not working?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/24/12 05:10 AM

Originally Posted By Anna Wu
The 386 Enhanced mode (Windows 3.1) is still not working?

Not at this stage.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/24/12 05:11 AM

Originally Posted By mahlemiut
Originally Posted By Anna Wu
The 386 Enhanced mode (Windows 3.1) is still not working?

Not at this stage.


Oki doki smile
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/24/12 05:16 AM

Win95 MS-DOS mode works, though smile

Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/24/12 05:52 AM

Originally Posted By Just Desserts
Originally Posted By crazyc
(and PCI?).


PCI isn't available on at486 or ct486 as far as I know. Pretty sure someone is going to get the at586 driver to work. Once that happens, however, I demand the hell out of Barry or Angelo hooking src/emu/video/voodoo.c up to it. laugh
My Acer 486 (66Mhz) had PCI slots: http://motherboards.mbarron.net/models/486pci/acer486.html
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/24/12 06:36 AM

Originally Posted By R. Belmont
Mike: I would assume a MESS-hosted install should work too (if you follow Haze's tips), but I used an image that I installed on Bochs.


Fair enough, I'm on the way home now so I'll give it a good test when I get there.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/24/12 08:54 AM

Trying to install Windows 95 from scratch, will only go as far as the screenshot below. It won't set up all the program groups and such frown Anyone else installed Windows 95 from scratch successfully from within MESS? I rebooted, but same thing happens...

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/24/12 01:32 PM

Originally Posted By Just Desserts
Originally Posted By crazyc
(and PCI?).


PCI isn't available on at486 or ct486 as far as I know. Pretty sure someone is going to get the at586 driver to work. Once that happens, however, I demand the hell out of Barry or Angelo hooking src/emu/video/voodoo.c up to it. laugh


Voodoo is already hooked up in an Arcade PC-based game named Funky Ball, there are various texture bugs but I mostly think it's due of the flash loading. Motivation on that isn't great tho (Goes at 9%-13%, exactly half speed than Naomi)
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 02/24/12 01:38 PM

I'm getting the following error when trying to save my Quake config.cfg file:



SVN [r14614] Windows 7 64-bit

My HD image has been converted to CHDv5 using the latest version of CHDMAN.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/24/12 01:53 PM

Originally Posted By MikeAbson
Trying to install Windows 95 from scratch, will only go as far as the screenshot below. It won't set up all the program groups and such frown Anyone else installed Windows 95 from scratch successfully from within MESS? I rebooted, but same thing happens...


right.. it does THIS now



but once that dialog is gone it sits at the screen you show again for ages

eventually (note, mouse no longer works at this point, but carl did mention that happens during hw detection)



.. lets see (think it's crashed actually because mess is running at >100%, it's usually <60% when it's actually busy trying to do something)

ok .. F3 reset it (never a good idea during setup but...)



at which point it continues to install IE4



trying to open the display control panel causes rundll32 to crash (protection fault ;p) but that might be because the install is screwed from rebooting it part way *shrug*



Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/24/12 02:12 PM

IE4 setup eventually crashes tho.



So you can fresh install it in MESS, but it's not really 100% stable yet.

Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 02/24/12 03:09 PM

We're gonna get to a point where we're not sure things are crashing because of bugs in our emulation, crashing because it's a 486 with ISA trying to run Windows 95, and crashing because it's Windows 95. One of the reasons why it's better to focus on multiple operating system support. laugh
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/24/12 03:36 PM

Win98 installs all the files, survives the first reboot, gets past the 'starting for the first time..' screen, allows you to enter the serial number, then dies during hardware detection



although it resumes after a reboot...





gives this error tho..



after this point it repeatedly comes up with rundll32 errors (I'm guessing the CPU / memory is left in a corrupt state by something?)

rebooting restarts that part of the process



again crashes towards the end tho



Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/24/12 04:12 PM

clicking through all the various errors.. eventually you get the 2nd real reboot.. a few more errors

then...



clicking ok, rebooting a few more times etc etc. results in it trying to install a few ie related things



but still dies in the end, this time after loading the taskbar!


Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/24/12 04:33 PM

I put on the ftp the NT beta hdd image the shot I posted earlier was taken with (and sent the patch to Barry).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/25/12 12:57 AM

Alrighty, so after a goodnights sleep and waking up some new MESS revisions here, I've got Windows 95 OEM 4.00.950 (so the very first version of Windows 95 that came out on August 24 1995) up and running after a clean install (had a fresh install of MS-DOS 6.22 installed on the primary hard drive, and all the contents from the WIN95 dir copied over to a second hard drive and installed from there). Having done that, I've got no real issues at all at the moment, there were no freezes or crashing during the install at all, it was a perfect (excepting telling set up not to detect any hardware, that I think may have caused a crashed, so I just avoided going that route). Windows 95 will crash in while with an explorer.exe error, either randomly or when trying to change things though, like the video adapter for example...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/25/12 04:31 AM

I've finally managed to successfully change the display adapater to the ET4000 and run Windows 95 in 800x600x16 resolution within the display properties without errors. The desktop loads fine, but as soon I try to do anything else, Windows craps out, works fine at 640x480x16 though. In Safe Mode, I can select all colour depths up to 32bit at 1024x768, but when loading Windows normally it tells me I've got a hardware adapter problem. Selecting the ET4000 W32 causes Windows to not load at all, giving me a BSOD instead (worth a try anyway despite not actually having that card installed).

Oddly enough before I attempt to make a hardware change, if I right click on a "Change" button and select "What's This" first, then click on Change, Windows will let me make nessessary changes, if I don't do that first, I'll get an explorer.exe error, rundll32.dll error or a bsod and not be able to do anything, which is a bit strange!

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/25/12 01:29 PM

Originally Posted By MikeAbson
Selecting the ET4000 W32 causes Windows to not load at all, giving me a BSOD instead (worth a try anyway despite not actually having that card installed).


That's unsurprising, W32 specific features aren't supported at current stage.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/25/12 11:25 PM

Didn't think it would work, just saw it there and thought why not smile

Now I've got an issue here loading some floppy disk images. The problem isn't related to Windows 95, Win 3.1x or even DOS, it's MESS (same problem happens during POST). I've got 24 floppy disk images for Microsoft Office 95 Standard Edition that I was trying to install in to Windows 95. All was going well before I noticed that MESS will not accept the 2nd floppy disk, infact it won't accept disks 2-24, only disk 1 works. When I insert of any of these other disks, I get an "internal error" instead of a "successfully loaded" message. It's strange because I can insert any other valid disk image and MESS will load it, it just won't load disks 2-24 of Office 95. The disks are valid as far as I can tell, I can open them in Winimage no problem, same with a VFD emulator. I've deleted the cfg file thinking that might have something to do with it, but no go. I also moved the folder to my desktop and tried to load them from there, but same problem. I also converted one of the disks to an *.ima file, but MESS still won't recognize it frown Any ideas? I've squashed the screenshot so it isn't so large.

EDIT: From reading the readme file, disk 1 does not use DMF, whereas the other disks appear to be non-standard DMF images? Perhaps this is the reason? I don't know anything about non-standard DMF images sorry. Disks 2-24 only have cab files on them, nothing else.

Edit #2: I just noticed the size of these images are larger than 1.44MB, they are 1.68MB. Does MESS not support floppy disk images larger than 1.44MB? I can't select a floppy drive in CMOS that allows anything higher than 1.44MB. (at486). The AT586 driver accepts a 2.88MB floppy drive, but MESS still gives me the same internal error.

Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/26/12 12:03 AM


It takes a very long time to get this far, though.
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 02/26/12 12:11 AM

DMF support was supposed to have been added recently (commit), maybe it doesn't actually work though?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/26/12 09:26 AM

The first version of IE running under the first version of Windows 95. I've opened and closed it a few times, didn't crash on me once. I remember the Windows icon in the top right there animating, but there is no animation here. I think because I'm running Windows in 16 colours and IE is not actally loading anything.

Windows seems reasonably stable enough to move around and open existing applications and software preinstalled, it's just adding / removing devices and trying to install something new that causes it to crash. I'll try come up with some other screenshots besides the desktop!

And for the fun of it, the last screenshot is a saved copy of the lycos.com website from 1996. The top image does not load because archive.org did not have it saved. Ahh the good old days...

I'm guessing networking is not supported yet? I personally hadn't tried it, but I did install the 3c503 driver (Windows 95 has native driver support for it out of the box), but the hardware wasn't working (yellow ! under device mananger).

Will WinPcap be needed for networking support within MESS in the future? Also, if I use the 3c503 network adapter, does this technically mean I can use that within MESS to talk to my external internet connection?











Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/26/12 09:32 AM

about the not working floppies in DMF format, you might want to point Micko (possibly by PM) to the failing files so that he can test
I think the support was only tested on a few disks, so we might not be fully covering the format

Originally Posted By MikeAbson
Will WinPcap be needed for networking support within MESS in the future?


not sure about this. Arbee, Micko or Carl might probably give you the right answer... in the meanwhile, I can reply about the following:

Originally Posted By MikeAbson
Also, if I use the 3c503 network adapter, does this technically mean I can use that within MESS to talk to my external internet connection?


I think the Mac thread contains some snaps by Arbee browsing the web through the emulated Macs, so I guess that PCs drivers will be capable of this too smile
In the meanwhile thanks for testing so accurately MESS!

EDIT: here you can see the snaps I was referring to
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=74201#Post74201
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 02/26/12 09:57 AM

I thought we had support for ne2000 or similar network card? Win95 should support it.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/26/12 10:20 AM

Microsoft Exchange as shipped with the first version of Windows 95.









Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/26/12 10:23 AM

Originally Posted By Robbbert
I thought we had support for ne2000 or similar network card? Win95 should support it.


It's in there, but I don't know the difference between the NE2000 and 3C503 confused. I'll try and install the drivers for the NE2000 and see if Windows 95 co-operates.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/26/12 10:47 AM

etabeta78:

I will send Micko a quick PM about it, thanks.

I guess we'll find out about networking in Windows soon enough smile

Thanks for the comment, I'm more than happy to play around with MESS and see what it can do, it's pretty amazing.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/26/12 10:51 AM

Originally Posted By etabeta78
about the not working floppies in DMF format, you might want to point Micko (possibly by PM) to the failing files so that he can test
I think the support was only tested on a few disks, so we might not be fully covering the format


There are quite a lot of floppies out there with extra garbage bytes at the end (looks like one of the emulators adds them when you mount the images or something stupid) those might be causing an issue as MESS refuses to mount them.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/26/12 11:05 AM

Originally Posted By MikeAbson
Originally Posted By Robbbert
I thought we had support for ne2000 or similar network card? Win95 should support it.


It's in there, but I don't know the difference between the NE2000 and 3C503 confused. I'll try and install the drivers for the NE2000 and see if Windows 95 co-operates.


Edit: I successfully installed the NE2000 drivers without errors, no vnetsup.vxd errors during the initial loading of Windows 95 either, however once Windows loaded it said that the NE2000 was not working properly and that I may have to set it up again. In Device Manager, I've got a yellow ! The card itself is installed in to ISA slot 2.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/26/12 09:14 PM

Just a few more things regarding the ne2000 and networking, when I run winipcfg,I get a pop-up box that says "fatal error cannot read IP configuration". When I try to connect to the internet via IE it takes about 2 seconds to try and load the page before telling me a site cannot be found, whereas before the networking drivers had been installed, IE would tell me a site couldn't be found immediately, so I can't really tell if Windows is connected to my internet connection or not. I suspect not though. I'll have to try pinging some sites and installing the Windows 95 network monitor when I get home tonight and see if I can get more info. I suspect the ne2000 is working despite Windows telling me it isn't. My mouse works even though when I install the proper hardware device manager shows a yellow ! for the serial mouse, but then again I don't really know!
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/26/12 09:34 PM

You cannot connect via Ethernet out-of-the-box right now.

That requires two things:
1) The new toolchain that Micko keeps not releasing on Windows, or on Linux to run src/osd/sdl/taputil.sh as root to set up
2) A clean build of MESS with USE_NETWORK=1 added to the make commandline.

In other words, don't try it unless you know what you're doing smile
Posted By: Firewave

Re: PC/XT/AT (inside) WIP topic - 02/26/12 09:46 PM

The new toolchain has been made available by Micko multiple times (and I think he is already using it to do the official binaries). And I think it's up to the MAME management to decide when a new toolchain will be used.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/27/12 02:20 AM

Originally Posted By R. Belmont
You cannot connect via Ethernet out-of-the-box right now.

That requires two things:
1) The new toolchain that Micko keeps not releasing on Windows, or on Linux to run src/osd/sdl/taputil.sh as root to set up
2) A clean build of MESS with USE_NETWORK=1 added to the make commandline.

In other words, don't try it unless you know what you're doing smile


Thanks for that. Sounds like I just be able to handle it smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/27/12 02:25 AM

FW: MAME management (that'd be Kale) is fine with it, Micko has been the sole holdup.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 02/27/12 01:21 PM

Originally Posted By R. Belmont
You cannot connect via Ethernet out-of-the-box right now.


I think that would be pretty nasty, i.e. write on forums and download software directly with it. And then you could try to start a nuclear war with it ...
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/27/12 02:11 PM

I think WinUAE allows for this since quite some time, and no nuclear war has yet started...

EDIT: the older trace (I was able to google in a few minutes) of WinUAE allowing for emulated web browsing dates back to 2005 ( http://www.lemonamiga.com/forum/viewtopic.php?t=1623 )
I thought it was added a few years later (~2007-08), but I was wrong apparently
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/27/12 03:35 PM

Bochs, QEMU, Basilisk II, and SheepShaver all have allowed this for years with no nuclear wars (plus the "professional" PC emulators like Virtual PC/VMWare/VirtualBox).

And drag-and-drop file sharing between an emulated Mac and my real PowerMac G5 is quite convenient smile
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/27/12 04:36 PM

Originally Posted By R. Belmont
Bochs, QEMU, Basilisk II, and SheepShaver all have allowed this for years with no nuclear wars (plus the "professional" PC emulators like Virtual PC/VMWare/VirtualBox).

And drag-and-drop file sharing between an emulated Mac and my real PowerMac G5 is quite convenient smile


Virtual PC/VMWare/VirtualBox are PC emulators? smile
For me it´s more virtualization software than emulators.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/27/12 04:47 PM

'virtualization software' is a good use-case to point out for MAME/MESS on legal grounds tho, really helps with that 'significant non-infringing use' check box.

although I'm not too keen on direct manipulation of the host filesystems like some allow, there's quite a risk involved there, sometimes it's good knowing MAME/MESS are completely isolated from the host system, you don't want to accidentally nuke your C drive with some Amiga virus ;-)
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/27/12 04:58 PM

Originally Posted By Haze
although I'm not too keen on direct manipulation of the host filesystems like some allow, there's quite a risk involved there, sometimes it's good knowing MAME/MESS are completely isolated from the host system, you don't want to accidentally nuke your C drive with some Amiga virus ;-)
Far worse is dosbox,s ability to mount c: as c:. I've heard and read many accounts of people doing it and installing win 3.11 over their xp/vista/7 installation
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/27/12 05:08 PM

If you don't install the special HLE drivers in the emulated OS, the "virtualization programs" all act as full-on emulators in the MESS sense. VMWare documentation actually lists what chips and cards each of the options emulates. (Of course, when you do install the drivers it cuts out a lot of that emulation).

Access to the host filesystem is very, very useful but it probably should default to read-only smile
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/27/12 05:14 PM

Originally Posted By R. Belmont
If you don't install the special HLE drivers in the emulated OS, the "virtualization programs" all act as full-on emulators in the MESS sense. VMWare documentation actually lists what chips and cards each of the options emulates. (Of course, when you do install the drivers it cuts out a lot of that emulation).

Access to the host filesystem is very, very useful but it probably should default to read-only smile


I agree. Basilisk II and SheepShaver write too much crap in my real filesystem if I use the network support. smile
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 02/28/12 01:27 AM

Can I ask how the discussion went from "route the guest NIC through the host NIC" to "don't wipe my hard drive, bro"?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/28/12 04:15 AM

Kale claimed it would cause global thermonuclear war.

Everyone knows the computer that did that is way different from the drivers we're discussing though wink
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/28/12 04:22 AM

Originally Posted By R. Belmont
Kale claimed it would cause global thermonuclear war.

Everyone knows the computer that did that is way different from the drivers we're discussing though wink


Emulating WOPR should be possible though, it's from the 1980s. Anyone have any docs?

grin
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 03/04/12 10:46 PM


Better but still crashes a bit too often.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 03/04/12 11:06 PM

Awesome! grin
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/04/12 11:14 PM

That's more than I can open in PC Windows 95 smile
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 03/05/12 04:43 AM

Wow!

A new chapter in the FMT emulation.

PS: Is the enhanced mode (Win3.1) now working too?
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 03/08/12 03:29 PM

Now MSCDEX properly detect CDROM. Access still doesn't work fine.

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/08/12 03:48 PM

Nice.

I'm adding bare .ISO support to CHDMAN which will be helpful for things like Win95 install discs ;-)
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 03/08/12 03:59 PM

It use some of your code and part from Grull Osgo contribution (it's credited that way too in svn). Issue I have is that DIR of those drives doesn't work.
0x5a MODE SENSE(10) command gives unknown page 0x24
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 03/08/12 11:30 PM

Originally Posted By R. Belmont
Nice.

I'm adding bare .ISO support to CHDMAN which will be helpful for things like Win95 install discs ;-)


That will be pretty helpful, better than converting images to bin/cue THEN converting that to a chd.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 03/09/12 01:19 AM

Well, converting a CD to ISO and then to CHD loses a huge amount of data in the process since all ISO is is a raw dump of the iso9660 filesystem; You almost never want to do that unless you have an unprotected, data-only CD with nothing special in sub-channels (CD-TEXT or anything like that)

LN
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/09/12 03:56 AM

Quote:
an unprotected, data-only CD with nothing special in sub-channels


So, every OS install CD ever shipped. We agree. Good smile
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 03/09/12 05:11 AM

Yes, ok, 90% of computer CDs are unprotected, data only CDs with nothing special in sub-channels; but the 10% most (but not all) people will try to run in mess are game cds, which often do. Particularly classic games which have music as audio tracks and other such stuff.

LN
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 03/09/12 03:38 PM

commands are now handled fine and dir and starting programs from CD works now
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 03/09/12 04:45 PM

Originally Posted By Lord Nightmare
Yes, ok, 90% of computer CDs are unprotected, data only CDs with nothing special in sub-channels; but the 10% most (but not all) people will try to run in mess are game cds, which often do. Particularly classic games which have music as audio tracks and other such stuff.

LN


Well that's why we list the best known images in the softlists ;-)

But for things like OS install discs, and service packs ISO is fine, half the time they're offered as ISO downloads anyway.

The ECC compression CHD optimization code I gave Aaron can double up to provide the data if the emulated system requests it and it isn't present in the format anyway (plus it's needed to check the data is valid because some controllers will generate an interrupt on invalid data). Adding ECD code wouldn't be too hard either. Of course we also need code to *correct* data based on ECC, because many drives will use it for error correction too. Basically we can rebuild anything extra the system wants from ISO, at runtime, as long as there is nothing important copy protection related in there.

Of course, in cases where it's used for protection we DO want to be storing it :-)

Copy protection cases will need some thought anyway, for example, sync/seek based protections are more annoying, we may need to add support for more complete sync metadata, because the actual drives sync / seek based on the first few bytes in each sector which contains the SYNC and sector #. That's how the protections where if you're seeking from behind a sector you get a different sector than if you're seeking from ahead of it. You need that data more quickly than a block can decompress (even with standard zip) but we could have a command to build such a table and append it to the metadata. Alternatively as discussed with OG in the shoutbox, assuming that seeking only ever uses those bytes we could simply store those bytes outside of the main compressed stream in a codec subtype (like we have CD-FLAC right now) and have a command to simply get THAT data rather than decompress the whole hunk.

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/09/12 04:59 PM

Yeah, in the case where it needs protection you absolutely don't want to be sourcing it from ISO (or, frankly, any of the input formats we currently support - those should be raw-raw).
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 03/09/12 06:37 PM

What am I doing wrong here? I've set a floppy controller in the "slots" menu of MESS64, and the PC has two floppy drives in the BIOS and in the DIP switches ...



Robert
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/09/12 06:53 PM

I'm pretty sure the system has a floppy by default, so adding one to the slots will cause a conflict like the BIOS is telling you.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 03/09/12 07:02 PM

I have the same symptoms without an explicitly set floppy controller in the slot menu.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 03/09/12 07:08 PM

yeah the 586 driver has done that for at least a month or two, never got anywhere with it (can't even get it to boot from a hdd created in the 486 driver with the same params specified)

This is why I haven't also done a test of installing Windows ME (needs 120mhz, and the 486 driver / bios won't go that high)

odd because the Cali Chase thing in MAME is a 586 :-)
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 03/10/12 09:58 AM

Quote:

can't even get it to boot from a hdd created in the 486 driver with the same params specified


I have the same problem. [r14733] 64-bit Windows.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 03/10/12 10:51 AM

The 586 driver definitely works with the same hard drive settings used on the 486. The drives in Windows 95 also don't run in compatibility mode like the 486, (at least on mine anyway) so Windows will run optimally (see second screenshot).





For those having trouble, try these steps.

- In the BIOS under Standard CMOS Setup, set all drives as AUTO, including the MODE

- In BIOS Features Setup, set the boot sequence to C ONLY (this is assuming your using your 486 drive that already has DOS or Windows on it)

- Under FILE MANAGER within MESS, load your chd hard drive file in to HARDISK (HARD1)

- Under DIPSWITCHS within MESS, set the first IDE CONFIGURATION (located under KEY CLICK) to Secondary, and the second IDE CONFIGURATION (located under BASE ADDRESS) to Primary, (so we're reversing them here)

- Under SLOT DEVICES, you should have ide:drive_0 and ide:drive_1 say HDD

That should be it, it's enough to get my 486 drive to work under the 586 driver.

Also, the floppy drive should be working, it does for me anyway, meaning the BIOS doesn't tell me it failed. Make sure under DIP SWITCHES you've got FLOPPY INSTALLED set to ON. The number of floppy drives defaults to 2 I believe, having 1 is fine of course. Within the BIOS under Standard CMOS Setup make sure you have Drive A : 1.44M, 3.5 in. If it still fails, set it Drive A to NONE. I can't get the floppy to work within Windows at the moment. Windows 95 will freeze when attempting to access it, with or without a disk inserted, this doesn't happen in Safe Mode though.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 03/10/12 11:45 AM

Thanks for the infos, the thing that does away with the floppy error is setting "Floppy drive seek" to disabled in the BIOS. I can't boot from the floppy images in the AT586 driver, though ... the disk images boot, but seem to have problems reading the disk because they invariably give me the "command interpreter not found" error.

Robert
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 03/11/12 12:13 AM

Testing the CD-ROM code:

Super Street Fighter II Turbo (patched to v1.5)

Some video issues, locks up when going in-game. GUS sound effects don't work (although they do in the setup program), GUS music won't even initialise.

Microsoft Visual C++ v1.52c



Installs and runs fine. Not tested every function, but you can create, edit and build apps without a problem.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 03/11/12 03:28 PM

fwiw windows ME doesn't even seem to get past the 'Copying files for Windows Setup' stage, even if you give it the required memory and CPU
Posted By: Heihachi_73

Re: PC/XT/AT (inside) WIP topic - 03/11/12 07:11 PM

Which 586 CPU does MAME emulate? E.g. the early Pentium with the fdiv/f00f bug or the later ones? It might sound absurd to emulate a buggy chip, but if that's how it was designed/released in the first place...
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 03/11/12 07:57 PM

Heh, right now "Pentium" basically emulates everything, including p3 opcodes, so it's not really 100% emulation proof. And well, if there was a Pentium with a bug that must be emulated as well sooner or later.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/11/12 08:50 PM

The f00f bug locked up the processor, so simply fatalerror()ing MESS when you hit it would suffice. That way Heihachi can wank off about the ultimate realism and everyone else will run the driver with that option turned off smile
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 03/12/12 01:54 AM

To be honest, there's a whole host of CPU errata that we really should make sure we emulate, and not just x86. I don't know if there's actually any that IS emulated yet...

I'd compile a list, but I don't have time right now... frown
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/12/12 01:57 AM

Why? On x86 software is written to the ideal of a bug-free processor and most of the time you got one. I *really* don't want to be the person supporting an emulator that deliberately runs popular software wrong to satisfy some fetishistic idea of perfection.
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 03/12/12 01:59 AM

... sometimes I don't understand where the accuracy line is drawn... frown
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 03/12/12 02:01 AM

In cases where the processor always has some undocumented behavior (e.g. undefined 6502/6510 instructions) we emulate that. Errors that are specific to a given stepping of a given model, if you can make them optional I'm not going to stop you, but by default calling up that processor in a driver should not show the errors.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 03/12/12 03:29 AM

Got music working in SSF2T with the GUS - just a matter of remembering to run LOADPATS.EXE before running either the setup program or the game itself. MIDI Music works perfectly fine as best as I can tell (40% speed does not help ;))

Now just need to get the sound effects working. smile
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 03/13/12 02:04 AM

CD support + http://www.archive.org/details/cdbbsarchive = hours of fun smile




Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 03/20/12 09:17 AM

Microsoft Office 95 Professional: I've managed to get the CD-ROM working in Windows 95 and I also was lucky enough to install Office as well. The only Office application that didn't want to work was PowerPoint.



















Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 03/20/12 09:19 AM

Continued from previous page...







There is an issue with the CD Drive in Windows 95 though. Windows will only detect the CD is in the drive before Windows has started, so I have load the chd cd first then reboot the system, and once Windows has loaded, it will see the disk. If I attempt to eject the disk in Windows, MESS crashes completely and shuts down. If I attempt to insert a CD while inside Windows 95, Windows does not detect the change. A bit of an issue if you've got multiple CD's, works fine otherwise!
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 04/29/12 02:18 AM



Unfortunately, it then hangs apparently waiting for an interrupt from something, maybe from the SB16 or network drivers I have installed in this image.
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 04/29/12 09:50 AM

Nice, hope all our changes in last period did not affect much your work.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/01/12 09:24 PM



IBM sure abused the 386.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/01/12 10:23 PM

Nice progress! smile
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/01/12 10:42 PM

Is there one root cause of all these random things crashing when trying to start up (across all the platforms) or is it really just many different edge cases?

The level of accuracy needed for this stuff to work amazes me, especially when you consider you can get away with implementing an absolute ton of stuff in MAME with 'rand()' and see no consequences ;-)
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/01/12 11:11 PM

Originally Posted By Haze
Is there one root cause of all these random things crashing when trying to start up (across all the platforms) or is it really just many different edge cases?
This one is probably due to LAN Manager init that was in startup.cmd. None of the network drivers loaded so it isn't surprising to see that crash.

Originally Posted By Haze
The level of accuracy needed for this stuff to work amazes me, especially when you consider you can get away with implementing an absolute ton of stuff in MAME with 'rand()' and see no consequences ;-)

OS/2 2 hits all kinds of corner cases. I'd be surprised to see another OS that uses both 286 and 386 call gates (rare enough) to transfer control from less privileged 32-bit code to more privileged 16-bit code.
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/03/12 11:00 AM

I'm getting the following error:



when using ramsize other than default (4M or 8M) with the at486 driver.

If I use a ramsize of 16M then it is not recognised as the correct size.

I'm using SVN [r15082] Windows 7 64-bit.

Can anyone else please confirm/deny?

Also, how do I change the refresh rate of the driver from 70Hz to 60Hz?


Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/03/12 11:38 AM

The maximum it wants to accept is 15M, 16 is treated as 0.. (it wraps basically)

As for changing the refresh rate.. you don't.. the emulated hardware / software config decides that, and the bios screens are at 70.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/03/12 11:42 AM

fwiw trying to install Win98 actually took MESS down during the hardware plug and play detection on current code

-----------------------------------------------------
Exception at EIP=00000000777A2FC6 (not found): ACCESS VIOLATION
While attempting to write memory at 0000000000000008
-----------------------------------------------------
RAX=00000000777A2FC0 RBX=0000000000390760 RCX=0000000000000000 RDX=0000000000390760
RSI=000000000E9FFEA0 RDI=000000000E9F6AA0 RBP=0000000000390760 RSP=0000000000228A90
R8=000000ED006B00B0 R9=000000EE00BB00B1 R10=00000000002E4490 R11=00000000002E0158
R12=000000000E92FFC8 R13=0000000000007802 R14=0000000000000000 R15=0000000000000003
-----------------------------------------------------
Stack crawl:
0000000000228AB0: 00000000777A2FC6 (RtlEnterCriticalSection+0x0006)
0000000000228AF0: 0000000002318DDE (not found)
0000000000228B50: 00000000025C9F57 (not found)
0000000000228B90: 00000000025D5D6D (not found)
0000000000228BE0: 0000000002664245 (not found)
0000000000228C80: 0000000002664315 (not found)
0000000000228D20: 000000000304EE8C (not found)
0000000000228D60: 0000000002318E42 (not found)
0000000000228E00: 0000000002318F0D (not found)
0000000000229010: 00000000023D7CE8 (not found)
000000000022F410: 000000000230559D (not found)
000000000022F8B0: 000000000261A24E (not found)
000000000022FDF0: 0000000001C2357E (not found)
000000000022FE40: 000000000290DF6C (not found)
000000000022FF10: 00000000004013DB (not found)
000000000022FF50: 000000000040113E (not found)
000000000022FF80: 000000007764652D (BaseThreadInitThunk+0x000d)
000000000022FFD0: 000000007777C521 (RtlUserThreadStart+0x0021)

not amazingly useful because it's not a debug build, but still didn't used to happen.

(I am using the new compiler tools mind you)
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/03/12 11:59 AM

Originally Posted By Haze
The maximum it wants to accept is 15M, 16 is treated as 0.. (it wraps basically)


That solves that problem, thank you. smile

Originally Posted By Haze

As for changing the refresh rate.. you don't.. the emulated hardware / software config decides that, and the bios screens are at 70.


I just have to remember to switch off v-sync then as my monitor runs at 60Hz and the driver will run at 85% otherwise.

I think the previous BIOS image error is something to do with QMC2? If I delete the configuration and reset it then I don't get the problem, but I have to do this each time I change the ramsize.

The driver now crashes when exiting Doom II:

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/03/12 12:16 PM

Regarding C: failing when you change ramsize, changing the ramsize on at486 causes the BIOS clear the HDD settings so you must reconfigure each time you run with a different size. It actually says something like "Hardware changed, clearing CMOS" if you're paying attention ;-)

Also, you couldn't have >15M in many real 486es. Google "16M hole" for details.
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/03/12 12:25 PM

Originally Posted By R. Belmont
It actually says something like "Hardware changed, clearing CMOS" if you're paying attention ;-)


I did see it after paying some attention :P

The HDD settings never needed to be reconfigured in the BIOS though?!

Quote:

Also, you couldn't have >15M in many real 486es. Google "16M hole" for details.


Cool, thank you smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/03/12 01:02 PM

I always get the "CMOS cleared" message and lose my HDD settings when I change ramsize.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/03/12 01:05 PM

crashes during installation aside, win98se actually seems more stable once installed now, I can use the start menu to launch programs without it crashing.

The vast majority of the actual crashes during installation seem to be with 'MMUTILSE' which is some multimedia thing. I don't have sound / gfx cards installed, although it shouldn't care much about that.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 05/04/12 07:21 AM

Originally Posted By Dr. Spankenstein


The driver now crashes when exiting Doom II:

I couldn't get Doom II to crash in my testing
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/04/12 08:52 AM

Originally Posted By Kaylee

I couldn't get Doom II to crash in my testing


Have you tried running and exiting with a ramsize configuration of 15M?
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 05/04/12 04:55 PM

Originally Posted By Dr. Spankenstein
Originally Posted By Kaylee

I couldn't get Doom II to crash in my testing


Have you tried running and exiting with a ramsize configuration of 15M?
Yip. I Always run at486 with 15m ram
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/04/12 06:26 PM

Which version of Doom?
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/04/12 06:34 PM

Version 1.9
Posted By: AaronGiles

Re: PC/XT/AT (inside) WIP topic - 05/04/12 06:50 PM

4MB should be plenty for DOOM, not even sure it needed that much. I remember there was a lot of complaining that Dark Forces needed 8 when it was released.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/04/12 06:59 PM

Yeah, DOOM ran fine on a 4MB 386/33 back in the day.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 05/06/12 08:52 PM

I'm trying to create a new CHD with the method described on page 2 of this thread.
Using the current syntax of CHDMAN I can create a .CHD file with a given set of Cylinder/Head/Sector parameters and extract it into a .RAW file.

WinImage baulks at the files created that way saying "Error reading file blank.raw"

Has the .RAW file format changed?

Robert
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/06/12 09:04 PM

Nope, raw files should be raw files.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 05/06/12 09:43 PM

Strange ... I needed to do the partitioning (FDISK) part in at486/DOS 6.22, then convert to RAW, now WinImage is recognizing the file ...

Got to remember this.

Robert
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/06/12 09:50 PM

Oh, yeah, WinImage won't recognize a file for a disk that hasn't been partitioned.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/06/12 10:06 PM

Morning all. I'm wondering if something has changed in the cdrom driver? I had a Windows 95 chd file that won't boot anymore, telling me it can't find command.com or win.com or that these files are corrupted, however safe mode worked. I created a new chd with just dos and loaded the cdrom drivers in autoexec.bat and config.sys but get the same error. I managed a work around by adding a second hard drive and the cdrom drive is now coming up as drive e: instead of d: without errors. Any ideas?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/06/12 10:10 PM

For me, some CD-ROM boot floppies have worked and others have not. It's random luck.

Regarding the CHDs themselves (especially your hard drive CHDs), make sure you upgraded them to v5.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/06/12 11:40 PM

It's not the loading of a CD image that's the problem, it's getting mscdex to load and assign a drive letter without giving me a command.com error and then showing me a C> prompt instead of a C:\> prompt. Basically it's causing DOS to crash and I can't do anything further. The only way so far I can get mscdex to load without giving me a C> and command.com error is if i add 2 hard drives, then mscdex will assign me drive E:\> and DOS will continue to load fine.

The hard drives were created using the latest version of chdman.

I'll get some screenshots tonight so I can be more specific.

I'll try adding LASTDRIVE=Z in to my config.sys and see what happens when I get home, maybe that's the problem, although I don't recall it being an issue in the past.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/07/12 09:21 AM

Alright, back at home. Maybe someone can shed some light on what's going on here. Below is what I have in my autoexec.bat and config.sys as far as getting the CD-ROM driver to load.

autoexec.bat:

LOADHIGH=C:\DOS\MSCDEX.EXE /D:MSCD001

config.sys:

DEVICEHIGH=C:\CD-ROM\OAKCDROM.SYS /D:MSCD001

MSCDEX.EXE is located inside the DOS folder, (comes preinstalled with DOS). I have updated it to v2.23, but hasn't made a difference.

I do also have a folder called CD-ROM, and in it is the CD-ROM driver called oakcdrom.sys.

I have the CD-ROM loaded in to the ISA4 slot.

I don't understand why this isn't working anymore. It was working, but I suspect some changes to the CD-ROM driver in MESS have caused this issue? Any ideas? confused

Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 05/07/12 09:28 AM

In your config.sys do you have a SHELL command to tell the system where COMMAND.COM can be found?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/07/12 09:56 PM

No. I'll try seeing if that makes a difference when I get home tonight however it was working fine without the shell command. I'm going to try the last beta as well and see what I can come up with.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/08/12 09:40 AM

I just tried the U7 release of MESS and the CD-ROM driver works fine, but as of later SVN releases, it appears broken.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 05/11/12 08:26 PM

Just tried running snes9x V0.13 on the at486 driver. And it's a horrible experience laugh Never got better than 31% speed wise

Super Mario World cool


Tried Kega 0.32 but it doesn't start grin
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/11/12 08:53 PM

Yes, running emulators on a 486/25 was never a good experience smile Sardu was the speed king and he needed a 486/66 to run NES 100%.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/12/12 04:52 AM

Just noticed something here. After creating a new chd hard drive, then converting it to raw and back to a chd, it's causing the drive to become locked during a windows and / or dos session, so when a program tries to save data or text to a file, it can't, the drive is locked (ie: become ready only). I had converted the chd to raw so I could add files to it, and noticed after converting it back from a raw to a chd file, the drive has become locked. Must have something to do with the way chdman converts raw files to chd? I'm using the following command:

chdman createhd -i at486.raw -o at486.chd

Everything was fine before converting a raw file back to a chd, any ideas?



Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 05/12/12 05:50 AM

Quote:
chdman createhd -i at486.raw -o at486.chd


Did you tried chdman createhd -c none -i at486.raw -o at486.chd too?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/12/12 06:41 AM

Originally Posted By Anna Wu
Quote:
chdman createhd -i at486.raw -o at486.chd


Did you tried chdman createhd -c none -i at486.raw -o at486.chd too?


That fixed it, thank you! smile
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/12/12 02:20 PM

The at486 driver is not responding to my keyboard 'Del' or 'Delete' key when '-natural' is used.

What might be the cause?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/12/12 02:36 PM

A bug?

Since you're probably running MESS on something with a PC-style keyboard anyway, -natural makes much less sense for that case smile
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 05/12/12 03:16 PM

Originally Posted By R. Belmont
A bug?


That would be preferable over an alternative such as lack of user intelligence smile

Quote:

Since you're probably running MESS on something with a PC-style keyboard anyway, -natural makes much less sense for that case smile


I can't access certain characters such as '\' without it but I can't access the BIOS with it.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/12/12 03:30 PM

Some of that's a side effect of the current PC keyboard not being a proper AT-104 model - L_N dumped one recently and hopefully Judge can get it wired up and that'll help smile
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 05/12/12 05:04 PM

About the DEL issue; actually on OSX somehow DEL doesn't get me into partial keyboard mode anymore. Not sure if anyone else is experiencing this or if it's related..
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 05/13/12 01:47 AM

Originally Posted By R. Belmont
Some of that's a side effect of the current PC keyboard not being a proper AT-104 model - L_N dumped one recently and hopefully Judge can get it wired up and that'll help smile


Credit where credit is due: the Proper AT-104 dump came from Kevtris, not me. I just submitted it for him.
He also offered to trace out where all the 8051 lines go on the keyboard pcb, etc.

LN
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/13/12 06:07 AM

FastTracker II - Up and running now. Possibly due to the big pmode update that was done on May 3rd? Even works with the GUS. Keyboard not fully working though, the right CTRL key is suppose to make an entire song play, but it doesn't do anything, despite selecting various keyboard options within FastTracker II. Pressing the right Shift key will allow a pattern to be repeated however. The arrow keys don't work in the main window, only in the instrument window, but won't go up or down a line one line at a time, more like down 6 lines in one go, bit strange.



Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/13/12 10:59 AM

SimCity 2000 Special Edition For Windows 95: Installation was flawless and the game is running in 16 colours. Not sure if it's possible to get 256 colours in Windows 95, I keep getting a display hardware failure and all attempts to fix it have failed so far. The game is quite laggy making it pretty much unplayable. I'll try to come up with 256 colour screenshots if I can. Windows 95 is a lot more stable than it used to be, but becomes quite unstable when changing hardware devices, such as the damn video adapter mad

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/13/12 09:58 PM

For Carl's edification, here's a list of problems emulating OS/2 from a guy who's been fixing them in VirtualBox.

http://www.os2museum.com/wp/?p=27
http://www.os2museum.com/wp/?p=233
http://www.os2museum.com/wp/?p=819

In particular, the 286-style reset that prevents the IBM-label versions of OS/2 1.x from booting seems like something we shouldn't have a problem with. (The timing loops failing on too-fast processors certainly won't be an issue!) Is that correct? smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/13/12 11:03 PM

Originally Posted By R. Belmont
For Carl's edification, here's a list of problems emulating OS/2 from a guy who's been fixing them in VirtualBox.

http://www.os2museum.com/wp/?p=27
http://www.os2museum.com/wp/?p=233
http://www.os2museum.com/wp/?p=819

In particular, the 286-style reset that prevents the IBM-label versions of OS/2 1.x from booting seems like something we shouldn't have a problem with. (The timing loops failing on too-fast processors certainly won't be an issue!) Is that correct? smile


Yup, the triple fault reset is needed to get Windows 3.1 running in standard mode on the 286 also. The timing worked perfectly once I added periodic timer support to the MC146818.

Those articles are what inspired me to try to get OS/2 1.x working on MESS, to get them working without needing a patch and getting the IBM OS/2 1.0 working which (I believe) no other emulator currently can.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/14/12 12:13 AM

Nice! I hadn't known when you posted the screenshots that those versions were tricky smile
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 05/14/12 06:05 PM

The ibm5170 104 post fix was also welcome wink
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 05/15/12 07:14 PM

Could you run IBM OS/2 1.0? I could install it without a hitch, but it doesn't boot afterwards, TRAP 000D...
Maybe I should not have added serial support (COM2).
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/15/12 11:38 PM


Seems okay with atvga, at486 probably depends on whether the BIOS supports triple fault resets. I'd guess that started to disappear around Pentium time.
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 05/16/12 06:37 PM

I used at386, which booted until after it loaded the com driver, and then threw the Trap D (which is a page fault, as far as I remember). As you say, atvga works. It seems to have the same BIOS as at386, so I don't think that's the issue. Maybe it's the 286 processor vs. the 386 of the at386.
Anyway, thanks for the tip!
Regards, Martin

P.S. Anyone knows hot to send a "Ctrl-Esc" to the emulation? My Windows 7 catches this and does not pass it on. Ctrl-Alt-Esc is also caught, but at least it is also passed on.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/16/12 07:26 PM

The BIOS wouldn't be the same (possibly very similar though) as the 386 has different requirements but it could CPU bug. I've fixed a few bugs related to 286 protected mode in the 386 core in an upcoming patch that may help.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/16/12 09:28 PM



This probably uses more 386 features then just about anything else.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/16/12 10:49 PM

What version is that?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/16/12 10:49 PM

Wow - Win-OS/2 smile
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/17/12 12:34 AM

Now if only we could get Linux working...

P.S. Ubuntu would be nice! Unrealistic, but nice.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/17/12 12:43 AM

I think Linux has issues with the uPD765 FDC code.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/17/12 01:18 AM

I was under the impression that Linux did work. No half-modern Linux would run on a 486 with 15 MB of RAM though smile
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 05/17/12 04:54 PM

How did you install OS/2 2.x? I tried to install OS/2 2.1, but on the second boot disk it already failed with "SYS0318: Message file OSO001.MSG cannot be found".
I tried with pc386 and a 160MB disk.
The latest OS/2 (4.52) isn't much better: It doesn't boot from the CD-ROM at all, and when I try to boot from a virtual floppy then MESS itself crashes. I could install and start 4.52 with VMWare, though.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/18/12 01:16 PM

The Elder Scrolls: Chapter 1 The Arena - Testing out the new code submitted today and this game now runs. I've never played this nor any of the others, not really my sort of game, but this is first time it now works, also requires EMS. Just a few basic screenshots here showing the start of the game, however it runs too slow to fight and I ran out of patience trying to figure it out lol. Good driver progress though!









A few other things I tried with the new code was the installation of Windows NT 3.1 using floppy disks. I got all the way through the text mode part of the installation, and the next part showed the desktop and mouse cursor, but with a message saying "The system is not fully installed. Please run setup again." Even though I told Windows NT to format the drive using NTFS, after the text mode installation it was telling me the drive was FAT. I never tried to install Windows NT using FAT though.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 05/18/12 03:16 PM

Tried something and got somewhere (further than last time)

Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/18/12 11:02 PM

Isn't that a page fault?

And didn't that used to happen with OS/2 1.0?
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/18/12 11:29 PM

Nope, that's a general protection fault, page fault is trap 0xe. The error code is 0 so it's probably either a limit overrun or an access to an invalid segment (ES or GS in that dump). OS/2 1.0 didn't support paging so it would never cause a page fault.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/19/12 07:30 AM

Those latest fixes from Carl are pretty amazing. Windows 95A is solid as a rock now. I've been able to add, change and remove devices and the like without any problems at all. Gone are all the BSOD's. I messed around with it for about 45 minutes makeing all kinds of changes etc and it didn't crash on me once. I almost got the S3 driver to run in 256 colours and higher to, but ended up with a corrupted desktop frown Great job!
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/19/12 08:17 AM

Windows 95A playing Canyon.mid. Painful to listen to at 55% speed. Non-MIDI sound does not produce sound even though it plays. Amazing progress.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/19/12 09:53 AM

DirectX 8.0a - Latest fixes from Carl the other day. Took me a 1 hour to install this (DCOM95 also needed) and can only be installed on the at586 driver. I'm unable to do any of the DirectDraw, Direct 3D or AGP Texture Acceleration tests due to no 256 colour support. MIDI sound test worked using both MIDI Mapper and the Yamaha OPL2/OPL3 Synthesis. Sound Tests fail due to incomplete emulation. May be a different story if I use the Adlib or GUS drivers instead.



















Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/19/12 10:53 AM

...was playing weezer.avi on the FM Towns driver earlier today... smile



Video is a bit jerky (what do you expect at 16MHz?) but it otherwise fine, with full sound.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/19/12 11:57 AM

Yeah, FMTowns doesn't have the issue where the PIC suddenly goes deaf after 3 or 4 interrupts smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/19/12 12:13 PM

Nice progresses indeed smile
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 05/19/12 02:01 PM

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/19/12 02:15 PM

Windows 98 SE: Took me almost 2 hours to get this installed. More screenshots to come tomorrow, it's midnight, and I'm tried.



Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 05/19/12 02:20 PM

Originally Posted By R. Belmont
Yeah, FMTowns doesn't have the issue where the PIC suddenly goes deaf after 3 or 4 interrupts smile


Is anyone ever going to look into that?

Not it.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/19/12 02:22 PM

98 has worked pretty well for a while now, since the previous batch of changes, not the current ones :-)

There's 1 MESS crash (to commandline) during HW detection the first time round, and a couple of things cause illegal ops during install, but it basically works and is fully functional.

Couldn't get it in any mode higher than 16 colours tho.

WinME still doesn't install on at586, hangs very early on during the initial file copy.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/19/12 02:28 PM

I've heard Windows ME is unstable even on a real PC! However, it should run on at586, because it supports Pentiums.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/19/12 04:24 PM

Originally Posted By R. Belmont
Yeah, FMTowns doesn't have the issue where the PIC suddenly goes deaf after 3 or 4 interrupts smile

Where does this happen?

Quote:
WinME still doesn't install on at586, hangs very early on during the initial file copy.
The core is still missing some Pentium features.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/19/12 04:58 PM

Carl: when you attempt to use the sound blaster - it's the reason I am unable to complete the emulation. The first 2 or 3 IRQs work fine, after that the PIC simply stops listening to them (or the CPU doesn't see them for some reason, at least).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/20/12 07:57 AM

Originally Posted By R. Belmont
Carl: when you attempt to use the sound blaster - it's the reason I am unable to complete the emulation. The first 2 or 3 IRQs work fine, after that the PIC simply stops listening to them (or the CPU doesn't see them for some reason, at least).

This was the case, now none of the IRQ's are being detected at all. I thought about half-way though this thread there was some talk about needing a ROM file from a real Sound Blaster 1.0 / 1.5 before the DMA was properly detected? IRQ 220 and 5 used to be detected, it was DMA that failed, now nothing is detected from what I've tried here.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/20/12 11:28 AM

Regardless of the end-user symptoms, my description is accurate as to what's actually going wrong.
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 05/20/12 12:30 PM

Potential issues with latest i386 code?

Code:

In file included from src/emu/cpu/i386/i386.c:2709:
src/emu/cpu/i386/i386op16.c:3510:63: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^  ~~~~
src/emu/cpu/i386/i386op16.c:3510:63: note: use '&' for a bitwise operation
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~
                                                                                   &
src/emu/cpu/i386/i386op16.c:3510:63: note: remove constant to silence this warning
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~~~~~~
src/emu/cpu/i386/i386op16.c:3574:63: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^  ~~~~
src/emu/cpu/i386/i386op16.c:3574:63: note: use '&' for a bitwise operation
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~
                                                                                   &
src/emu/cpu/i386/i386op16.c:3574:63: note: remove constant to silence this warning
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~~~~~~
In file included from src/emu/cpu/i386/i386.c:2710:
src/emu/cpu/i386/i386op32.c:3308:63: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^  ~~~~
src/emu/cpu/i386/i386op32.c:3308:63: note: use '&' for a bitwise operation
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~
                                                                                   &
src/emu/cpu/i386/i386op32.c:3308:63: note: remove constant to silence this warning
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~~~~~~
src/emu/cpu/i386/i386op32.c:3372:63: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^  ~~~~
src/emu/cpu/i386/i386op32.c:3372:63: note: use '&' for a bitwise operation
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~
                                                                                   &
src/emu/cpu/i386/i386op32.c:3372:63: note: remove constant to silence this warning
                        if((((seg.flags >> 5) & 3) < cpustate->CPL) && ((seg.flags && 0x1c) != 0x1c))
                                                                                   ^~~~~~~

Posted By: qmc2

Re: PC/XT/AT (inside) WIP topic - 05/20/12 12:33 PM

Yeah, that looks like an unwanted logical AND smile.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/20/12 12:43 PM

Yes, I noticed that yesterday. I was going to send a patch later but if you want to fix it, go ahead.
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 05/20/12 02:01 PM

I have handled this
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/20/12 02:15 PM

Thanks
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 05/20/12 06:08 PM

The at486 driver now asks for natural.bin, probably the ROM for the MS natural keyboard that was added earlier.
Is there a command line switch to start the at486 driver with a regular AT style keyboard?

Please note how I'm not asking for the ROM ... I have plenty of AT-style keyboards here, just not the MS natural ...

Robert

Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 05/20/12 06:18 PM

To use the previous keyboard emulation do something like:
Code:
mess64d ibm5170 -kbd keytronc_pc3270


The emulation of the MS natural keyboard just works a bit better than the keytronic keyboard we already had emulated, so we made it the default keyboard for AT and newer drivers.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 05/20/12 06:26 PM

Great, thanks ...
... I'll manage those commandline options one day ;-)
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 05/20/12 07:05 PM

This is a new one to allow us to add low-level emulation of more keyboards while still allowing the end-user to choose which keyboard to use.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/20/12 07:41 PM

Yeah, the new natural keyboard *is* a stock AT-style keyboard, and hence it works with e.g. the Crystal Dream II menus where the old one (which was intended for 3270/PCs) didn't.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/20/12 10:16 PM

I have a few SVGA Avance Logic ISA video card BIOS's that I had used with MESS in the past before crc's? were implemented. Is it possible for me to send these to someone to see if they can be added to MESS?

Sorry, I also should also mention that I don't take credit for these, I just have them in my possession here. I also have a few S3 ISA BIOS's as well, although I think only two of them worked. One of them had 8MB RAM I think, although not sure how much difference this really makes if it's just the BIOS.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/20/12 11:04 PM

I guess eventually MESS will have a subfolder full of emulations of different video card devices with different bios roms being required (although it would very much need a concept of 'device not working' at thatt point ;-)
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/20/12 11:48 PM


Tomb Raider (demo version)

Bit of texture corruption, but it otherwise playable.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/21/12 12:00 AM

Nice, surprised no one had posted a shot of that game yet.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/21/12 12:35 AM

A few things I tried last night for the heck of it.

I installed the Apache Web Server in to Windows 95 last night, and what a complete waste of time that was lol. While it installs perfectly, when Windows loads, Apache complains of a missing DLL file (can't remember the name of it now). I suspect that has to do with the latest Apache version 2.2.222 (I think from memory) and Windows 95 no longer being fully supported (although you can technically install it). Uninstalling it took an hour frown Perhaps an older version would work though.

The 3C503 now installs fine and I was able to properly configure the O/I (300) and IRQ (3)(Windows completely assigns the wrong ones) from memory are the cards defaults. I understanding networking isn't supported, but it's nice to see the card is accurately detected and appears to work perfectly.

MOD4WIN fails to install on Windows 95, hangs at 1%. Looks like it uses a custom installer?, perhaps has something to do with it, however it does install on Windows 3.1, so it may be a matter of just copying over the installation folder and pasting it in to Windows 95.

After I had gone through the device manager and managed to add (as far as could tell since hardware detection isn't really safe to use) all of the at486 devices and ended up on shutdown with a blue screen telling me something about open files and I should close them or something similar. I was able to fix this by removing the hard drive controllers, so if anyone has that issue smile

The GUS drivers for Windows 95 install successfully, but don't appear in the device manager. I suspect adding new hardware might fix that, but due it causing MESS to crash I didn't try.

As mentioned the Crystal Dreams II demo now works if you don't have the GUS drivers installed (keyboard works in the menu). I was not able to get sound using sound blaster or on the LPT ports (using the covox speech thing), but it runs. It has some minor graphic problems though.

FastTracker II works great now due to MS Natural Keyboard support. It hates the Sound Blaster, but GUS / Covox Speech Thing work fine.

FIFA International Soccer crashes with a memory error when not using EMM386, and crashes MESS with an unimplemented opcode with EMM386 (can't remember the opcode). Not sure what's so special about FIFA that it uses an unsupported opcode since FIFA96 and FIFA97 at least show the splash screens but going no further.

Getting the mouse driver to not display a yellow ! in device manager in Windows 95 was quite a pain in the rear. I finally managed to fix this by removing the mouse from device manager, then starting the at486 drive with the mouse systems mouse driver instead of the ms mouse driver, which Windows 95 told me I had no mouse connected. I ran the hardware wizard which caused MESS to crash, and once that happened I attached the ms mouse to the first COM port and loaded Windows 95 again. Up came the found new hardware box and correctly loaded the serial mouse driver.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/21/12 12:53 AM

PC software not running on a PC smile





Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/21/12 01:00 AM

Yeah, the little-known secret of Win32 software is that most of it relies on Win32 and the x86 CPU, not the PC/AT architecture. Same principle as Linux/m68k running the same binaries on ST, Amiga, and Mac. MS finally achieved the aim of the "DOS compatibles" 30 years too late ;-)
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/21/12 01:08 AM

Does Win3.1 enhanced mode for fm towns work yet?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/21/12 02:51 AM

Originally Posted By crazyc
Does Win3.1 enhanced mode for fm towns work yet?

Nope, still get a load error with USER.EXE.
Posted By: That70sguy

Re: PC/XT/AT (inside) WIP topic - 05/21/12 05:42 AM

Originally Posted By mahlemiut
PC software not running on a PC smile







smile the old "Jasc Paint Shop Pro" laugh
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 05/21/12 06:21 AM

Originally Posted By MikeAbson
I have a few SVGA Avance Logic ISA video card BIOS's that I had used with MESS in the past before crc's? were implemented. Is it possible for me to send these to someone to see if they can be added to MESS?


send them (or a link to them) to Micko: http://www.mess.org/contacts.php smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/21/12 10:04 PM

Originally Posted By etabeta78
Originally Posted By MikeAbson
I have a few SVGA Avance Logic ISA video card BIOS's that I had used with MESS in the past before crc's? were implemented. Is it possible for me to send these to someone to see if they can be added to MESS?


send them (or a link to them) to Micko: http://www.mess.org/contacts.php smile


I will do that, no worries smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/21/12 10:22 PM

Yeah, I shouldn't have all the fun with the half a dozen working emulated Mac video cards ;-)
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/22/12 12:24 AM

Now we just need correct emulation of the IBM 8514, I believe it was called. At least, we should do that before fully going SVGA.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/22/12 12:56 AM

I know if I could program an emulator, I'd program hardware for which I had documentation on, rather just guess, unless I was really good a reverse engineering smile I understand the logic in attempting to program say ega / vga emulation first before moving on to more difficult hardware, such as svga for example, but I think the hardware being emulated is because of the technical programming guides and manuals they have access to. SVGA emulation is actually quite good considering the progress that's been made in the last few months.

By the way Alegend45, did you manage to get DOS working without going insane? lol
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/22/12 01:10 AM

Yes. Yes I did! I even managed to get Windows 95 OSR1 to install! laugh
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/22/12 01:27 AM

There you go, even better smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/22/12 01:28 AM

I think I had installed OSR1 as well, it was the first version of Windows 95.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/22/12 01:31 AM

I don't think it was. I think it was the second. Anyways, I need games to fix, please! laugh

EDIT: And yes, I realize I sound all too much like a n00b.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/22/12 01:36 AM

Sorry, the first version was 4.00.950, OSR1 is 4.00.950a, which is the second.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/22/12 02:28 AM

Originally Posted By Alegend45
Now we just need correct emulation of the IBM 8514, I believe it was called. At least, we should do that before fully going SVGA.


XGA too. Actually (non-accelerated) SVGA is much easier than 8514 as SVGA is just an extension of VGA while 8514 is completely different and has hardware acceleration features to boot.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/22/12 02:29 AM



Project XYZ by Orange, 1995.

Yet another demo that MESS runs! laugh

Sorry about the huge image...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/22/12 02:52 AM

To take a screenshot in MESS, press the scroll lock key then press F12. The image will be saved in your snaps folder within the MESS folder smile
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 05/22/12 03:03 AM

The image is totally black... what should I be seeing?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/22/12 03:08 AM

It looks like a PC demoscene shot, so just a fancy effect.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/22/12 03:13 AM

It's a very dark square tunnel thing. He probably could've picked a more visually interesting part to take a shot of smile
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 05/22/12 03:37 AM

It's in the middle of a clear sunny day here (typical winter day btw), and it was not possible to make out anything. With the blinds closed I could just make out the square tunnel receding into the distance.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/22/12 11:37 AM

Sorry about that, I just hit Alt+PrintScreen at a random part.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 05/25/12 06:30 AM

"Installed" (Almost*) Plus Pack for Win95.



*Almost = Emulation Hangs when it wants to install stuff from the Win95 CD/Floppies
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/26/12 01:54 AM

Plus 95 works fine for me, just the lack of 256 colour + support doesn't cut it for the themes or the Space Cadet pinball game.





Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 05/26/12 02:17 AM

Call me nostalgic, but these screenshots remind me that no matter how buggy the software actually was Microsoft used to produce cool innovative stuff with features which were actually appealing, impressive and rather cool..

compare that to the bland Windows 8 forcing useless features on people, and the Windows ARM locked down abomination and you really get some perspective on how times have changed.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/26/12 04:45 AM

Originally Posted By Haze
Call me nostalgic, but these screenshots remind me that no matter how buggy the software actually was Microsoft used to produce cool innovative stuff with features which were actually appealing, impressive and rather cool..

compare that to the bland Windows 8 forcing useless features on people, and the Windows ARM locked down abomination and you really get some perspective on how times have changed.


I'm the same way, rather nostalgic, particually when it comes to games. Microsoft were definitely very innovate. That's not to say they aren't now, but it does seem that they aren't quiet as innovative as they were, particually for me during the 90's after the release of Windows 95, which changed the way we used a PC forever. Computing during that time was fun and all about discovery, for me anyway. Of course for those of us now who are using computers for the first time (the much older generation) will feel similar to how we did when something completely new came along and you felt really interested in what you could do with operating system and various other software that works with it. To me these days it seems like websites have become more innovate than software, by this I mean social networking (rarely use it), twitter (never used it or ever created an account, never will) and the like, whereas during the 90's for example, while the web was expanding with new ideas, I thought stand-alone software for the PC was much better during that time. How times have changed for sure.

Just touching on bugs by the way, the ramsize option inside my ini files no longer work. The only way I can get a PC driver to accept a ramsize is by now forcing the -ramsize command line. Up to 15M use to work, now only 8M or less works. The bug I mention is not that 15M no longer works, it's that MESS no longer recognizes the ramsize paramater in the ini file. So in the ini file if I put in 8M and run the driver, MESS only sees 1664K, but if I use the commandline "mess64 at486 -ramsize 8M", it works. Can someone else confirm this, and if so, I guess I can submit a bug report, but I've never done that before.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/26/12 04:59 AM

ramsize was just fixed today by Micko, it was broken in 0.146.

Regarding the rest, modern Windows is not on topic unless Carl shows it booting. And even then, "Microsoft was awesome now they suck" is neither relevant nor on-topic. Thanks!
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/26/12 05:05 AM

I am referring to his fix. It seems that MESS no longer sees the ramsize parameter in the ini file, only via the commandline. It would seem strange that when MESS did see the ramsize paramater in the ini file, that that was considered a bug, and that fixing it means it no longer sees it.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/26/12 05:10 AM

Ahh. Complaints about hotfixes go in the "The New SVN Commenting Thread".
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/26/12 05:17 AM

Done.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/26/12 09:05 AM

Microsoft Frontpage 1.1 With Microsoft Personal Web Server 1.1: Requires Dial-Up Adapter, TCP/IP and Network Card drivers (3C503 in this case). The editor is lightweight and loads and runs quickly.







Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/26/12 10:46 AM

Finally got WAV sound working in Windows 95 using the Covox Speech Thing! The volume control doesn't work unfortuntely so not only can I not adjust the volume, the icon does not appear in the systray, however the sound is very apparent! Well done gentleman! grin Also, when playing sound, MESS runs at 100%, then drops back to around 50% once it's done, I wasn't expecting that.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/26/12 04:38 PM

Most likely the driver sleeps the whole system between sample periods, which makes the emulation temporarily lighter-weight. Like I said, there's a reason they didn't officially support Covox once there was real multitasking in Windows smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/27/12 02:38 AM

Sharing files on a local network in Windows 95: Single PC only screenshots.









Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/27/12 05:20 AM

WinAmp 2.0: WAV output using the Covox Speech Thing. Works, but sound suffers from extreme stuttering, (MESS running at about 57%)

Posted By: Firehawke

Re: PC/XT/AT (inside) WIP topic - 05/27/12 06:19 AM

Ah, good old Russian engineering there in that Win95 file sharing technology. That's why they called it Nyet-working.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 05/27/12 06:37 AM

I hope for a fix to run the enhanced mode (Win3.1) on FMT. smile
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/27/12 04:29 PM

And I hope for IBM 8514/A support. Luckily, I'm working on that...
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 05/27/12 06:36 PM

8514/A Support? Wouldn't this require Microchannel, ESDI, SCSI, i.e. full PS/2 support? I couldn't even get a PS/2 Model 80 to boot. But I would like to revive my first "real" PC, a PS/2 Model 70 A21...
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/27/12 08:54 PM

No, it is video hardware. And in this case, it's being used for the PC.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/27/12 09:20 PM

Originally Posted By Tinu
8514/A Support? Wouldn't this require Microchannel, ESDI, SCSI, i.e. full PS/2 support? I couldn't even get a PS/2 Model 80 to boot. But I would like to revive my first "real" PC, a PS/2 Model 70 A21...
Real 8514 was MCA but ATI 8514Ultra, Mach8 and Mach32 are apparently 8514 clones on ISA.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/27/12 09:24 PM

I've given up, because nobody gave necessary attention to my questions... However, I do have some preliminary SVGA fixes, AND a VGA fix! laugh
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/27/12 09:32 PM

What questions?

I hope you know though that emulating the 8514 won't be easy.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/27/12 09:35 PM

I knew when I started! LOL But the question had to do with ROM banking. The thing pages in 4k blocks of its 32k ROM like a dang fool.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 05/27/12 09:45 PM

Fair enough, the 3c503 driver I wrote does ISA MMIO banking. Probably not the best way but it seems to work.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/27/12 09:49 PM

Well, at least I came up with something. SVGA fixes for all, and for all, a VGA DAC mask fix! laugh
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/27/12 10:12 PM

Nice! What did you fix mate?
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/27/12 10:14 PM

I added a little bit of hardware acceleration to the S3 emulation, and I fixed the non-usage of the VGA DAC mask register! laugh
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/28/12 01:57 AM

I'm a reasonably tech-savy person, but understanding DAC's and register mask registers are way over my head haha, So what does it mean when you say you've fixed a non-usuage vga dac mask register? Are there any visual differences that will be noticed because of this / does this mean certain demos and or games now work whereas before they didn't? If I knew anything about programming I'd happily contribute to the project, but unfortunately I can't, all I can do is test it and be very curious smile
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 03:32 AM

Well, the FIC 486 3.276GN1 BIOS for at486 has MAJOR graphical corruption, if one does nothing, with no HDDs or bootable media inserted. The VGA DAC mask register fix partially fixes it...



This is the before, and I'll leave the after to you.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/28/12 03:54 AM

Fair enough, nice job there smile Did the S3 support hardware acceleration features in DOS or just Windows? I know that 3DFX was supported in DOS, and I think a few other cards support hardware acceleration in DOS to power games like Quake? but don't know about the S3 card that MESS uses, which I think is a Trio?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/28/12 04:06 AM

The S3 card in MESS is a Number Nine 9FX Vision 330 (according to the BIOS), which is basically an S3 764. It's effectively VGA with 8514/A acceleration.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/28/12 04:55 AM

Again, not technically PC, but I thought it was cute that it is possible to install this on the FM Towns...

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/28/12 05:14 AM

Gotcha. Just looked up the 8514/A and on Wikipedia it talks about accelerating 2D drawing operations. It also goes on to say that it was not first hardware accelerator card for the PC despite it coming out in 1987. From what I read here, the first, or at least one of the very first was the Intel iSBX 275, costing around $3500. It uses a Multibus slot as opposed to ISA if I have that right.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 03:00 PM

That's just amazing... Also, I fixed some chip ID stuff, because it was inaccurate to the BIOS it was running...

P.S. It's still hardcoded, just correctly this time. :P
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/28/12 05:17 PM

Now I'm curious, what's this "magic" DAC mask fix?
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 05:42 PM

Well, all the DAC mask register does, is bitwise AND with the pixel value, before sending it off to be on the monitor. So, I did the same thing. Lessens the graphical corruption in a certain FIC 486 BIOS, when nothing is inserted...
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 06:43 PM

Windows 95 in 16-color 800x600 mode on the S3... Goes absolutely nuts.

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/28/12 07:40 PM

Originally Posted By Alegend45
Well, all the DAC mask register does, is bitwise AND with the pixel value, before sending it off to be on the monitor. So, I did the same thing. Lessens the graphical corruption in a certain FIC 486 BIOS, when nothing is inserted...


Unless my English is broken, I haven't understood a single word of it ...
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/28/12 07:57 PM

He's saying "framebuffer = data_written & DAC mask" for each pixel written. I think. Either that or "palette_entry = data_written & DAC mask", which would make more sense given it's a *DAC* mask.

I don't know, but surely VGA is documented ;-)
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 07:58 PM

I did the 1st one.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/28/12 08:30 PM

Originally Posted By R. Belmont
He's saying "framebuffer = data_written & DAC mask" for each pixel written. I think. Either that or "palette_entry = data_written & DAC mask", which would make more sense given it's a *DAC* mask.

I don't know, but surely VGA is documented ;-)


Ok. FreeVGA doesn't have this register documented, the only thing I've found is this:

Quote:

3C6h (R/W): PEL Mask
bit 0-7 This register is anded with the palette index sent for each dot.
Should be set to FFh.


It's the latter, then.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 08:37 PM

Oh, dang. That is the same register... I need to fix that...
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/28/12 08:37 PM

I'm on it.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 05/28/12 09:51 PM

Originally Posted By Alegend45
Windows 95 in 16-color 800x600 mode on the S3... Goes absolutely nuts.


Many acceleration commands for many SVGA drivers aren't implemented. I thought you were working on fixing this. smile
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/28/12 09:59 PM

Correction, ALL acceleration commands aren't supported so far, if the VGA DAC mask wasn't supported so far that means we are still some miles away to dance with the wolves ...
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/28/12 10:01 PM

Yeah, plain VGA stuff still freaks out sometimes (Ultima 7 sprite colors, which may well be the DAC mask, and Crystal Dream II appears to have paging or bitplane issues of some sort).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/28/12 10:05 PM

The most successful I've been colourwise in Windows 95 is 800x600 in 16 colours using the ET4000. I couldn't technically find S3 764 drivers for Windows 95, but the standard S3 driver that comes with Windows 95 seemed to work, but couldn't get anything higher than 640x480x16 colours.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/28/12 10:12 PM

I've gotta try that.

EDIT 1: Fixing the VGA DAC mask register fully makes the Win95 boot logo full colored. laugh
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/28/12 10:44 PM

Originally Posted By R. Belmont
Yeah, plain VGA stuff still freaks out sometimes (Ultima 7 sprite colors, which may well be the DAC mask, and Crystal Dream II appears to have paging or bitplane issues of some sort).


Ultima 7 ... never got that to install properly here.

Crystal Dream II ... never tried, but probably suffers the same issue seen in a vgatest test.

In the other news, I've checked Sensible World of Soccer and that works now (with H scroll bug, like Jazz Jackrabbit / Alien Breed):

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 05/28/12 10:49 PM

U7 doesn't need to install, at least not the version I've seen floating around. Just run a mouse driver and go.

Fuck it, I'll send you a pre-wrapped CHD smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/29/12 12:46 AM

Don't shoot me for any possible inaccuracies here as it's obvious I don't know anything programming, but as a shot in the dark, from what I've read the Crystal Dreams demos use a hacked EGA mode 0x0D which is planar based? Perhaps the reason for the paging or bitplane issues are a result of missing or inaccurate 0x0D emulation? The CD1 demo is quite accurate, just some flickering on some 3D objects towards the end of the demo from memory. CD2 suffers from some weird text glitches at the start where it's sort of panning from left to right. The text also seems to get stuck there as well. Sounds great using the Speech Thing though.

http://en.wikipedia.org/wiki/Planar_(computer_graphics)
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 05/29/12 12:14 PM

Couple more random Windows apps...




Cubase Score 3.0 (Demo) on the FM Towns


Envelop 1.4 (doesn't run well on the FM Towns for some reason)
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/29/12 05:38 PM

Originally Posted By MikeAbson
Don't shoot me for any possible inaccuracies here as it's obvious I don't know anything programming, but as a shot in the dark, from what I've read the Crystal Dreams demos use a hacked EGA mode 0x0D which is planar based? Perhaps the reason for the paging or bitplane issues are a result of missing or inaccurate 0x0D emulation? The CD1 demo is quite accurate, just some flickering on some 3D objects towards the end of the demo from memory. CD2 suffers from some weird text glitches at the start where it's sort of panning from left to right. The text also seems to get stuck there as well. Sounds great using the Speech Thing though.

http://en.wikipedia.org/wiki/Planar_(computer_graphics)


Mode 0x0d is unsupported for sure, it's skipped altogether in vgatest for whatever reason.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 05/29/12 07:24 PM

For what is worth, GTA now pukes an error 8 if you try to launch that.

Presumably with the new keyboard code that should work just fine.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/29/12 10:45 PM

With my newest build, Windows 95 16-color 800x600 on the S3 works! It requires the generic S3 driver. Also, MAJOR graphical corruption.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/29/12 10:47 PM

Same here. Error 8 comes up when you type "gta", and if you let it go, you get the BMG logo come up, and then a black screen after that...

If you go in to the GTADOS folder and type in gta8, same thing, but no error 8 this time.

Typing gta24 however from within the GATDOS folder will get to the menu after uvconfig runs, but when you try to start the game it crashes back to DOS with this:

Error 74.249: invalid case : 0

If I run with GTA with EMM386, I still get an error 8, but no BMG logo comes up after that, just a black screen.

Same thing on the at586 driver.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/29/12 11:13 PM

Robotnik - Punish Your Machine: Works all the way through now, including GUS sound.

















Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/29/12 11:21 PM

Gravis Ultrasound Commerical By Triton: GUS sounds works as well.













Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/30/12 01:14 AM

Need For Speed Special Edition: SVGA screenshots, previous ones were just VGA. Looks great, runs terrible.









Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 05/30/12 07:23 PM

Found some old drivers (incl. what seems to be a patch for Win 95) that I kept around for the i430TX boards like it's emulated in the at586 driver ... maybe it'll be of help.

Robert

i430TX
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 05/30/12 09:24 PM

It seems that the floppy controller of the PC driver does allow reading but not writing of disk images, I can't change the status of files in CP/M-86, format disks in DR-DOS or copy disks in either.

Robert
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/30/12 09:41 PM

It seems floppy disk access is broken? I can't get the at driver to detect or read a floppy at all anymore. Also, when you go in to the dipswitches menu and "arrow up" or when you get the bottom (where base address is), when you arrow up or down from here MESS crashes completely. The secondary IDE configuration is also missing from there which might have something to do with it.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/30/12 11:15 PM

FIFA International Soccer (C) 1994 Electronic Arts: My beloved FIFA game works on the at586 driver smile No EMM386 required. For some reason though it does not work on the at486 driver. I get the following error:

Abnormal Program Termination: Memory protection fault
CS: EIP 000FH:0009C4E7H

Incidently DOSbox crashes back to the desktop when using the 486 CPU also, but not the Pentium. The game however does work on a 486 as I use to own it and had also played the demo on the family PC, which was a 486/SX 33. Not sure what's going on here, but I don't think it's the game?

If you look closely at the left side of the in-game screenshots when the game is in motion, you'll notice that the image is slightly overlapping itself. Not sure what's causing that, DOSbox produces the same effect. I thought it was related to vysnc, but this doesn't appear to be case.















Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 05/31/12 01:31 AM

Holy crap, that works now?! The AT drivers have come a long way... smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/31/12 03:15 AM

Originally Posted By Alegend45
Holy crap, that works now?! The AT drivers have come a long way... smile


It is and it has, and I'm pretty happy about it too smile Game is unplayable though, running at 15% on the 586 driver frown
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 05/31/12 03:17 AM

NHL Hockey / NHL 94' (C) 1993 Electronics Arts: Another EA game of that era, this time working on the 486 driver, requires EMM386 though and the game is very sluggish frown Looks nice though.













Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 05/31/12 11:37 PM

Is 'ibm5160' supposed to work? I'm running it with one 360K floppy and one (empty) 10MB hard disk, and POST fails:

601 (Disk power-on diagnostics test failed) -- after power-on

101 (System board error - Interrupt failure) -- after soft reset

(MESS 0.146)
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 06/01/12 02:57 AM

MINIX-vmd boots, but with a file system panic.



I'm thinking it's probably an FDC problem...
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 06/01/12 05:09 PM

Also, OS/2 2.11 fails to install due to a General Protection Fault, caused by a 67h D7h, or some sort of XLAT instruction.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 06/01/12 06:43 PM

I didn't try to install OS/2 2.1, only ran it. If you run with -debug and understand how to look up descriptors, you can see the faulting code.
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 06/01/12 06:45 PM

Originally Posted By shattered
Is 'ibm5160' supposed to work? I'm running it with one 360K floppy and one (empty) 10MB hard disk, and POST fails:

601 (Disk power-on diagnostics test failed) -- after power-on

101 (System board error - Interrupt failure) -- after soft reset

(MESS 0.146)


It was supposed to work, yes. I just tried it myself without anything mounted and I get a 1701 (normal) and a 601 post error. The 601 is new, so it looks like a regression.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 06/01/12 07:10 PM

I was looking into that. It actually looks like a firmware bug. In the reference here in the 01/10/86 listing on page 241 seek is called with the drive in dx but on page 190 seek expects the drive in di. Obviously it doesn't effect the real hardware.
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/01/12 07:36 PM

"rev2" BIOS (11/08/82) doesn't fail, BTW. "rev3" (01/10/86) and "rev4" (05/09/86) do.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 06/01/12 07:42 PM

The 11/08/82 listing is in there too. There the drive is still in dx but is expected in dl so that is fine.
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/01/12 08:34 PM

fdisk from MS-DOS 3.30 hangs (actually, jumps to random memory location and runs amok). Apparently this is not a new problem (thread from 2010)?

(ibm5160, rev2 BIOS)
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 06/02/12 04:25 AM

Updated changes in bold.

Sound Blaster changes based on r15379. Using both the Sound Blaster 1.0 and 1.5. There doesn't actually appear to any difference on what card is used as most of these results were done using the 1.5.

Windows 95: Causes Windows to throw up some errors, and after a reboot Device Manager shows a yellow ! only.

test-sbc.exe (official Sound Blaster sound settings and tester): Hangs on testing the Voice (1.0 / 1.5) and causes MESS to close completely when using EMM386.

Second Reality: Requires EMM386 for Sound Blaster unfortunately. The demo detects it, making the initialising pop and click sound, only a black screen is displayed.

8088 Corruption: Detects the Sound Blaster 1.5, but not the 1.0. Only a black screen appears when using 1.5.

Blake Stone: Works with the Sound Blaster now.

Crystal Dreams 2: Works with the Sound Blaster now.

DOOM: Works with the Sound Blaster now. Requires EMM386 unfortunately though otherwise the game hangs at the loading screen. Must use Sound Blaster 1.0 only.

Epic Pinball: Works with the Sound Blaster now. Incidentally it also detects all the way up to Sound Blaster 16, but with Sound Blaster 1.0 / 1.5 mono sound.

FIFA International Soccer: Exactly the same as Epic Pinball.

Fast Tracker 2: Detects the Sound Blaster now, but no sound is played.

Hardball 3: Works with the Sound Blaster now.

Inertia Player v1.22. Works with the Sound Blaster now, but the sound is playing a bit too fast. Plays normally when using the PC Speaker / Covox.

Links 386 Pro: Works with the Sound Blaster now. Only works with Adlib / Sound Blaster 2.0, not the 1.0 or 1.5. (When using the Sound Blaster 1.5, didn't try the using the 1.0 here.)

Megamix (Demoscene Demo): Works with the Sound Blaster now, sounds good too.

Pinball Dreams: Works with the Sound Blaster driver only, however I think previously it was Sound Blaster anyway.

Robotnik (Demoscene Demo): Works with the Sound Blaster 1.0 now, 1.5+ causes a Black Screen.

SimCity 2000: "Reticulating Splines" smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 06/02/12 12:00 PM

Since I can't edit my last post any more, just on Fast Tracker 2, it does work when selecting a mixing frequency of 8000 Hz. I was using 22050 Hz before and getting no sound.

Inertia Player v1.22 also plays at the correct speed when using Adlib.

Another edit real quick, Wolfenstein 3D detects and works with the Sound Blaster now, however Digitised Sound needs to be set to none otherwise the only in-game sound effect I can get to work is when using the knife. I was able to get one gun shot sound to work, but all other shots fired afterwards produced no sound effects.

Some great progress being made.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 06/02/12 01:21 PM

Now the 5160 is always giving a 101 error. Looks like the DMA channel 0 test on page 240 on line 930 is failing now.
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 06/02/12 05:25 PM

Maybe I am wrong but whole enable/disable timer is not needed.

Thing is that timer proc for DMA check if command is for active or not, so removing all enable/disable (adjust/reset now) will make it work again. Can't check SB on this machine however with those changes. Will email you.
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/02/12 06:46 PM

I've been trying to get some soviet pc clones working (mc1502, ec1841 etc.).

mc1502: is somewhat like pcjr (no DMA, keyboard is polled by the CPU, video RAM is shared with system RAM), but otherwise is quite different (uses wd1793 in the FDC and a bunch of other changes). Has a cassette port and uses cartridges for expansion.

I've changed the memory map and it now passes memory test in POST, and sits there waiting for keypress.

ec1841: is almost, but not quite, a PC XT. Always ships with a hard drive (which is not configured in current driver), has only one serial and parallel port (at different address), has custom mouse controller. Has memory controller that remaps bad banks of memory (ports 0x2B0..0x2B3, one port per memory board). CGA supports font uploads. Keyboard has extra keys to switch the layout between Cyrillic and Latin; default is Cyrillic :-)

Amazingly, it mostly works (POST failures can be ignored) -- boots and runs the demo disk, boots DOS. Tests on the diagnostic disk mostly fail, though. There's a BIOS listing (clearly derived from IBM's).
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 06/04/12 06:53 AM

shattered:

Sorry for late reply. It would be good to get some more info regarding those machines. If you are willing and able to contribute code great, but even documenting is fine. I have added most of old Soviet machines, but even if I use cyrillic I do not understand all things smile

Feel free to post your findings, also if it's up to other machines, not just PC clones. Maybe make a separate forum thread for that.

Thanks in advance
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/04/12 04:18 PM

Sure, I will help with docs, at least. There are about 10 more PC clones to add :-)

Will make a new thread.
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 06/04/12 04:58 PM

That would be great. You can contact me at: mmicko@gmail.com (note double m)

Most things I have found at zk.pk.ru but recently do not have much time to check things there. Any help is appritiated.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 06/04/12 07:59 PM

I found another 486 mainboard with an AMI BIOS that is a slightly different version of the MG48602.BIN file already in MESS.

download link

Maybe it could be added to MESS as well? It offers a few more advanced chipset options than the existing one.

The chip is labelled:
Code:
(c) 1986-1990 AMI
ALL RIGHTS RESERVED
486 BIOS
# ZZ290446


The board is not labelled very well, from what I can gather (from scanning the images on TULARC) it's a DFI board called "486-25/33/40 DX/SX UCE REV.0", which looks almost, but not quite entirely unlike this one ;-)

Chipset is UMC (UM82C206L, UM82C482AF, UM82C481A)

If anyone needs more info on the BIOS / mainboard feel free to ask.

-Darkstar
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 06/04/12 10:09 PM

Speaking of bioses, this site appears to have a bunch of them, x86? 286, 386 and 486, maybe others as well.

http://chukaev.ru54.com/bios.htm (sorted by type, x86 first, Pentium last).

http://chukaev.ru54.com/bios_cs.htm (Sorted by manufacture it appears).

http://chukaev.ru54.com/video.htm (Video bioses, no particular order it seems).

http://chukaev.ru54.com/firmware.htm (firmwares for different products: cd-roms, scsi devices, network cards etc....). It would be interesting to see MESS support these!
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 06/04/12 10:14 PM

Nice collection! Mine is probably listed somewhere under "UMC" there as well.

MESS probably needs a softlist for BIOSes, too (with info about which chipset to use for which BIOS etc.)

-Darkstar
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 06/05/12 04:08 AM

Yep MESSDEV copied all the contents of chukaev a while back although it's probably worth checking back periodically. I think the plan has been to wait until the emulation gets a bit better with the existing chipsets before going ape adding new stuff.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 06/07/12 08:22 PM

Just for fun tried installing Norton Antivirus for Windows 95:


Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 06/08/12 08:02 PM

This stuff is from an XT compatible, Siemens Sicomp PC 16-05.

It has a mainboard, additional RAM card, Floppy/RTC card, MDA Video adapter and a Longshine LCS-6210D MFM HD controller.

The archive contains pictures of the mainboard/cards, a bootable DOS 3.3 floppy with the drivers for the RAM card and dumps from the BIOS and HD controller BIOS. There is also a file that contains a dump of memory region E000-FFFF that should include the character ROM, as I couldn't identify what chip it is contained in.

Siemens Sicomp PC16-05

Robert
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/09/12 07:12 PM

drivers/pc.c sometimes uses mask 0x00ff for printer ports, this seems to be a bug. i.e.

static ADDRESS_MAP_START(pc16_io, AS_IO, 16, pc_state )
...
AM_RANGE(0x0278, 0x027b) AM_DEVREADWRITE8_LEGACY("lpt_2", pc_lpt_r, pc_lpt_w, 0x00ff)
AM_RANGE(0x0378, 0x037f) AM_DEVREADWRITE8_LEGACY("lpt_1", pc_lpt_r, pc_lpt_w, 0x00ff)
AM_RANGE(0x03bc, 0x03bf) AM_DEVREADWRITE8_LEGACY("lpt_0", pc_lpt_r, pc_lpt_w, 0x00ff)
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 06/09/12 08:26 PM

Originally Posted By shattered
drivers/pc.c sometimes uses mask 0x00ff for printer ports, this seems to be a bug. i.e.


What leads you to believe that that is a bug and not the correct behavior? i.e., if it's a bug, where's the fix, and what does it fix? Or are you just engaging in conjecture?
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 06/10/12 03:11 AM

The parallel port addresses expected by pc programs are 378 379 and 37a for typical LPT1

LN
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 06/10/12 03:19 AM

In which case, yes, the mask should be 0xffff smile
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/10/12 05:43 AM

Originally Posted By Just Desserts

What leads you to believe that that is a bug and not the correct behavior?


A test suite for ec1841 fails to use the printer, because reads from port 0x379 (status register) always return 0xff.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 06/11/12 01:44 AM

Originally Posted By shattered
Originally Posted By Just Desserts

What leads you to believe that that is a bug and not the correct behavior?


A test suite for ec1841 fails to use the printer, because reads from port 0x379 (status register) always return 0xff.


Sounds like a valid fix. Anyone want to volunteer to commit it so I don't have to sync up? smile
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/13/12 05:47 PM

iskr1031 fails to boot from floppy (tested on an image of MS-DOS 3.30 distribution); same image boots fine elsewhere (genpc, ec1841...).

I've found that first sector reads okay, the code in there reads FAT sector, then tries to read IO.SYS and fails.

The failing read call is for 6 sectors starting at C:H:S 0:1:4; last sector would be sector 9, last on the track. If, at this point, I change number of sectors to 5, read call succeeds.

Has this got anything to do with "end of cylinder condition - almost working, needs fixing" comment in machine/upd765.c ?
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 06/13/12 06:51 PM

Sounds similar to the problem I have with an old DOS 6 boot disk on the at586, I keep getting the useless "abort, retry, fail" a few seconds after "starting MS-DOS".

Didn't investigate it yet, though

-Darkstar
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 06/23/12 10:28 PM

I dumped an "AMD 80C287 Game and Demo diskette" -- http://goput.it/mo0.zip
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/04/12 05:51 PM

Someone dumped the "IBM Advanced Diagnostics for the IBM PC 5150" cassette to MP3 -- http://www.brutman.com/Cassette_Waveforms/IBM_PC_Diagnostics_Cassette.mp3 via http://www.brutman.com/Cassette_Waveforms/Cassette_Waveforms.html

(I was actually looking for "Advanced Diagnostics for IBM AT" floppy, but haven't found a download link)

A video of real PC running these diags: http://www.youtube.com/watch?v=k5V-PMZHWM0
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 07/04/12 05:56 PM

Cassette? That's fantastic smile
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/04/12 06:03 PM

An MP3, though? I'll try anyway.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 07/04/12 06:09 PM

MP3s have been known to work, as long as it's not too low of a bitrate.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 07/04/12 06:33 PM

I converted the IBM PC Diagnostics Cassette last year.
The size of the wav ~40MB.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 07/04/12 06:44 PM

Here are two IBM diagnostics floppies ... dunno if I posted them already, but I'm not sure if they're PC, XT or AT:

https://dl.dropbox.com/u/55419307/IBM%20Diagnostics.rar

Robert
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/04/12 08:03 PM

Award Software's Cross-Chex (diags) -- http://goput.it/wza.zip

ibm5160 fails two of three floppy tests (motor speed and write test).
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/04/12 08:22 PM

ec1841 TPS (diagnostics) disk fails the video test (code 505 -- vsync failure) and also leaves the video card in strange 'doubledoublescan' mode:


Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 07/04/12 09:29 PM

https://dl.dropbox.com/u/55419307/DIAGS.ZIP

Brandnew dumps of diagnostics disks:

IBM V 2.02 in two versions (one is from an original, the other one from a copy)

IBM V 2.08

NCR PC4i, an XT class machine

NCR AT class machines (I think it came with either PC6 or PC8)

All disks booted on a 286 AT class machine.

Robert
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 07/05/12 02:11 AM

You're allowed to use more than 8 characters in a filename now, you know wink
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 07/05/12 05:12 AM

Originally Posted By Anna Wu
I converted the IBM PC Diagnostics Cassette last year.
The size of the wav ~40MB.


The PCE/ibmpc emulator support the cassette interface too.
The interface detect the header.

Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/05/12 05:18 AM

Nice! Do the tests run OK?
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 07/05/12 05:59 AM

Only the graphic adapter tested by using the Trident TVGA D3.0 BIOS.








Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 07/05/12 06:26 AM

Hmm. that last screenshot shows that the 40x25 character pixel doubling doesn't work properly in PCE, the window width should remain the same and the characters should be stretched.

LN
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 07/05/12 06:34 AM

@justin ... you just officially found out that those were created on a real DOS machine ... smile
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 07/05/12 02:32 PM

Yes but did the DOS machine also upload them to Dropbox? smile (I guess it's possible....)

Just thinking that in a few years no one who has these disk images will remember what they are exactly unless the forum post is also still around and easy to find.

Including a readme.txt would work too.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 07/05/12 02:34 PM

Well, once we slap them into a softlist that will help considerably too smile
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 07/05/12 02:48 PM

I know I was being sloppy whistle ... actually, the .TD0 files contain verbose descriptions ... maybe they could be displayed when you select a Teledisk file using the dialogue in MESS.
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 07/06/12 08:44 AM

After a while, I tried again to start the ibm5170 driver. This time, the system boots! It used to not get through BIOS, I think it showed an "101" error.
I managed to boot the diagnostic diskette and set the system parameters (2 80 track/15 sector floppies, 1 type 2 hard disk), and then install DOS 3.3 onto the disk.
I could copy the first diskette easily, but the second DOS 3.3 diskette always triggered a read error. A "dir a:" works fine, but a "copy a:*.* ." triggers the read error on the first file it tries to copy. After some fiddling around and several reboots, the diskette could be read successfully.

Now I am trying to install Windows 1.04, and have the same problem: Disk Read Error on Drive A: Does anyone have an idea on where to look for a solution? The diskette images worked on another driver, so they are ok.

Thanks! Martin
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 07/06/12 06:01 PM

I seem to be getting the best results in the ibm5170 driver using dumps from 5 1/4 inch floppies.
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/06/12 07:28 PM

Originally Posted By rfka01
https://dl.dropbox.com/u/55419307/DIAGS.ZIP

Brandnew dumps of diagnostics disks:

IBM V 2.08


Ran this in MESS r15529 (ibm5150 driver, as these are for original PC). Failing codes: 601 (floppy), 1101 and 1201 (serial ports). Perhaps serial ports require a loopback plug?
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 07/07/12 01:18 PM

Originally Posted By shattered
(ibm5150 driver, as these are for original PC).

They probably run on the 5150, but as far as I remember they were built for the PC/AT (5170). You need them to configure the BIOS: The 5170 had almost no DIP switches anymore, but it did not yet have a BIOS configuration screen like today's PCs. And yes, I remember that the serial diagnostics used to fail, because I did not have a loopback plug.
Regards, Martin

Update: The diskettes are obviously not for the 5170: They do not have the BIOS setting menu, and most of the tests fail on the 5170.
Posted By: Tinu

Re: PC/XT/AT (inside) WIP topic - 07/07/12 01:23 PM

Originally Posted By judge
I seem to be getting the best results in the ibm5170 driver using dumps from 5 1/4 inch floppies.

I didn't even try to use 3.5 inch floppies. I believe the BIOS of the PC/AT does not support them. I used 360k (40 track, 9 sectors, double side) images, but configured the drive as a 1.2MB drive (15 sectors, 80 tracks). This worked on the original PC/AT. The only thing that did not work reliably is writing to 360k disks with the 1.2m drive, and then reading them on a real 360k drive: The tracks were written too "narrow", and thus the 360k drive not always picked up the written data. I don't think that MESS can (or want) to emulate this ;-)

Regards, Martin
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/10/12 09:27 PM

http://www.pcworld.com/article/237878/can_you_do_real_work_with_the_30yearold_ibm_5150.html

:-)
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/18/12 03:57 PM

What am I doing wrong?

1 - I created a blank chd

2 - I installed the Hard disk



3 - I tried to format the Hard disk

4 - And this error happened


ps: The hard disk did not work !!! (MESS 0.146)
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 07/18/12 04:20 PM

Don't use the BIOS harddisk utility, just set up the cylinders/heads/sectors and boot a DOS install disk to do the partitioning/formatting.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/18/12 09:05 PM

I tried one more time.

1 - I noticed that the hard disk was left with only 499kb. Is that correct?

2 - I pressed F1





3 - The hard disk did not work again. any ideas?
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 07/18/12 09:23 PM

You have to run fdisk first setup the partion then restart and then format.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 07/18/12 09:49 PM

Originally Posted By Goku_SSJ4
I tried one more time.

1 - I noticed that the hard disk was left with only 499kb. Is that correct?

Yes that's correct, sectors that don't contain data are not written to the CHD. It will grow bit by bit after you partition, format and install DOS on it
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/19/12 03:45 PM

Thanks for the tips !!! :-D


MS-DOS 6.22 successfully installed


Next step, how do I install the cd-rom ?
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 07/19/12 03:57 PM

Just copy the drivers from your boot disk (in the screenshot above it shows the CD ROM driver successfully loaded) to the new system and put the corresponding lines in your CONFIG.SYS/AUTOEXEC.BAT
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/19/12 10:03 PM

Within the disk, there was a file with some instructions.

I copy the file to C:\dos

I modified the autoexec.bat

I modified the config.sys

And this error happened


Any idea ?
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 07/19/12 11:33 PM

I think your ISO is corrupted causing DOS to freak out. Try with out the ISO and see if it boots ok.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/19/12 11:57 PM

This test, I had not mounted the CHD in CD-ROM

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

I tried installing a game through the flop1
How do I fix this ?
Posted By: F1ReB4LL

Re: PC/XT/AT (inside) WIP topic - 07/20/12 12:13 AM

Originally Posted By Goku_SSJ4
How do I fix this ?

You need to load EMM386.exe
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/20/12 12:23 AM

How to do this ?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 07/20/12 12:39 AM

Extended memory is provided by HIMEM.SYS, so you should just need to increase the amount of RAM with the -ramsize switch.
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 07/20/12 03:28 AM

Originally Posted By Goku_SSJ4

And this error happened


Any idea ?


I think this one is a MESS bug, I've seen it before and someone else mentioned it too.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 07/20/12 04:12 AM

Should be simple enough to prove out on real hardware. ISO editors are known for producing off-spec images that wont read right when burned. And i'm sure DOS is even less tolerant.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/20/12 05:08 AM

(-ramsize 8M) Solve the problem ... o/





Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 07/20/12 05:43 AM

Originally Posted By Malice
Should be simple enough to prove out on real hardware. ISO editors are known for producing off-spec images that wont read right when burned. And i'm sure DOS is even less tolerant.


It happens even with no ISO mounted though.
Posted By: F1ReB4LL

Re: PC/XT/AT (inside) WIP topic - 07/20/12 10:45 AM

Originally Posted By Goku_SSJ4
How to do this ?

"DEVICE=C:\DOS\EMM386.EXE" before "DOS=HIGH", you can also replace "DOS=HIGH" with "DOS=HIGH,UMB" to free some memory from the first 640k. Many games require this, anyway.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/20/12 03:43 PM

Another test


I had to copy the manual (pdf) to learn the password

Worked perfectly (No sound)
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/21/12 07:37 PM

For the record, here's how Arkanoid sounds like on PC: http://goput.it/sf1.flac (recorded live in a MESS studio near you)
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 07/24/12 03:17 PM

The new DMA device (the old one did too but not quite as much) causes a performance hit with XT drivers due to the DRAM refresh. If you get fresh.lzh from here you can adjust the refresh for a significant boost. QFRESH.COM disables it entirely which works fine on most BIOSes. It doesn't work, most significantly, with the default 5160 BIOS which uses the refresh counter as a delay timer for floppy access, however FRESH3.COM which just slows the counter, works fine.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/24/12 10:04 PM

Another test

I was behind the code like crazy

To play this great game

But the screen freezes in that part
:-(
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/25/12 01:39 AM

I had the exact same problem with Lotus, it hangs. You can try deleting the lotus.cfg file and you should be able to go the intro then to try and skip that through to the menu, but it hangs for me there, even using PC speaker. Works fine in DOSBox though. The game did work in the past however.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 07/26/12 09:10 PM

Mega Man 3 (USA) (v1.2) (3,5'')

Even using 1M RAM

The game was super fast


Someone knows how to solve the problem of super speed ?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 07/26/12 09:21 PM

Games that are too fast on at386/486 you should generally run on a slower machine - at or ibm5160 or whatever smile
Posted By: F1ReB4LL

Re: PC/XT/AT (inside) WIP topic - 07/27/12 11:13 AM

Originally Posted By R. Belmont
Games that are too fast on at386/486 you should generally run on a slower machine - at or ibm5160 or whatever smile

Or using slowdown utilities - AT-Slow, PentSlow, Mo'Slo, etc.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 07/27/12 12:34 PM

Yeah, but on emulation that's wasteful when you can just run a slower PC.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 07/27/12 03:35 PM

Realtalk for a second: Does anyone have a list of the PCI chipsets used by the different Pentium BIOSes in MESS, and a list of which BIOSes actually run well enough to be worth improving?

That one 13-year-old kid may not have been able to do anything useful before he decided to write an N64 emulator (feel free to laugh derisively) instead of work on MESS, but I think I could stand a good chance to brush things up a little.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 07/28/12 02:59 AM

Want to emulate an awesome Pentium motherboard try this one. Tyan was know for making some badass boards. Pentium 75 to Pentium MMX 233 512MB of ram 4 pci 5 isa. Single or dual CPU.

http://www.tyan.com/archive/products/html/tomcativs.html
ftp://ftp.tyan.com/bios/tomcat4/awd/hx669102.zip
ftp://ftp.tyan.com/manuals/m_s1564_100.pdf
Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 07/28/12 06:30 AM

IBM PGC is worth emulating, methinks: http://www.seasip.info/VintagePC/pgc.html (some technical info there, but no dumps)

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/29/12 12:30 AM

Recent fixes to CGA emulation correct the corrupted graphics in Street Rod II when driving down the road, but not when using EGA / VGA (been broken for ages, but I think it was ok for a short amount of time). Is it possible to implement these same CGA fixes in to the EGA / VGA / SVGA driver at all, or does it not work this way?

CGA:



EGA / VGA:

Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 07/29/12 02:09 AM

Originally Posted By MikeAbson
Is it possible to implement these same CGA fixes in to the EGA / VGA / SVGA driver at all, or does it not work this way?


Doesn't work that way, they're entirely different code paths with entirely different functionality under the hood.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/29/12 04:12 AM

Originally Posted By Just Desserts
Doesn't work that way, they're entirely different code paths with entirely different functionality under the hood.


No worries.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/29/12 04:44 AM

I've managed to get Sound Blaster to partially work in Windows 95 thanks to recent changes with the Northbridge and Southbridge updates (mainly Southbridge I think though). For those interested:

- Be sure to set MESS to use "sblaster1_5".

- Install the drivers from within Add/Remove Hardware. Be sure to have the CAB files handy or CD image you used. By default, Windows sets the following resources:

I/O: 0220 - 022F
I/O: 0388 - 0389
IRQ: 05
DMA: 01

- After pressing Finish to complete the installation of the drivers, you'll get an error message in the form of a white box come up with both Continue and Ignore buttons, keep pressing either of these until the box goes away. Don't restart the PC yet when prompted.

- Right click on My Computer and click on Properties, then click on the Device Manager tab at the top. Double click on Creative Labs Sound Blaster (it'll have a yellow ! next to it) then click on the Resources tab at the top. Change the IRQ from "5" to "7" and reboot.

When Windows starts you'll hear the default start up sound, however it's not perfect. It starts, then gets stuck almost right away and keeps looping indefinitely. I found the best way to stop this was to click on the "Sounds" icon in Control Panel, then play a Windows sound and press the stop button, this will stop all sounds.

You can use Windows Media Player to play MIDI files as well, which play without a problem. I would suggest you use the i386 driver to play and hear the sounds perfectly, as Windows, (at least for me anyway), runs at 100%, and only half that on the i486 driver.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/29/12 05:59 AM

FIFA 97: (C) 1996 EA Sports.

Wasn't expecting this beast to work, but here we are!















Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/29/12 10:08 AM

8088 Corruption (C) 2004

8088 Corruption is PC demo designed to display full motion colour video on the Intel 8088 with a CGA video card and an original Sound Blaster using ASCII characters.

I had attempted to run this demo a few months ago, but the Sound Blaster emulation wasn't good enough. Now with the Northbridge / Southbridge updates, it's now possible.

I was not able to get this demo to work on the ibm5150 driver, (all I get a blinking cursor?) but I was able to get it up and running perfectly on the at486 driver using CGA and the Sound Blaster.

The screenshots don't do the demo much justice, best view it on YouTube or download it and watch it for yourself!

Before the demo starts it asks if you are using a real CGA card or an emulator, all screenshots below are from me telling the demo I am using a real CGA card.



















Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 07/29/12 07:56 PM

Huh. 3D graphics on what's probably the Tseng ET4000. I've seen everything, apparently.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 07/29/12 09:58 PM

Originally Posted By Alegend45
Huh. 3D graphics on what's probably the Tseng ET4000. I've seen everything, apparently.


You've never heard of a software rasterizer before? Damn, dude. How's that N64 emulator coming?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 07/29/12 10:02 PM

I was using the ET4000 for FIFA 97, yep. FIFA 96 should work as well now. As JD said, it's just software rendering. All the other 3D games I have taken screenshots of, such as Quake, Grand Theft Auto etc... were all taken using the same video card.

MAME v0.1 works perfectly as well, even with Sound Blaster sound, but takes a big performance hit causing MESS to run at about 40% on the 486 driver. I suspect most of early MAME releases for DOS should work as well now.
Posted By: Goku_SSJ4

Re: PC/XT/AT (inside) WIP topic - 08/04/12 06:51 PM

Just to warn ... Lotus run on a at386 (ramsize 8m)







Posted By: shattered

Re: PC/XT/AT (inside) WIP topic - 08/04/12 07:28 PM

Found and dumped a PC DOS 1.00 disk -- http://goput.it/aqy.zip
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/04/12 07:51 PM

Originally Posted By shattered
Found and dumped a PC DOS 1.00 disk -- http://goput.it/aqy.zip

Nice, works fine with the XT.

Posted By: RColtrane

Re: PC/XT/AT (inside) WIP topic - 08/06/12 12:34 PM

Is the PC (CGA) driver broken? Here it only displays the cursor blinking at the topleft side of the screen and nothing happens.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/06/12 01:39 PM

Works for me. It takes about a minute for the HDD bios to fail out if there's no disk attached.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/09/12 08:22 PM

I got Fractint's 600 scanline modes working... smile



Sorry about the blurryness... imgur wouldn't take a PNG... >.>

The patch is right here.

And in diff format: Diff
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/09/12 09:19 PM

Which mode does it fix? The IBM VGA non-standard register compatible only 800x600 mode works fine without any patch needed.

Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/09/12 09:21 PM

Weird, for me, I needed the patch for both of the 600-scanline modes... The one I showed was 800x600x16.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/09/12 09:26 PM

Why not use || here?
Code:
+                       if(vpos >= vblank_start && vpos < vga.crtc.vert_total)
+                               res = 1;
+                       else if(vpos < vblank_end)
+                               res = 1;


-Darkstar
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/09/12 09:30 PM

It's because I need both.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/09/12 09:34 PM

I'm not sure if you don't understand what I mean; or if I don't understand what you mean smile

All I was saying is that
Code:
+                       if(vpos >= vblank_start && vpos < vga.crtc.vert_total)
+                               res = 1;
+                       else if(vpos < vblank_end)
+                               res = 1;


could be written a bit more clearly (and probably faster, depending on the compiler) by writing it this way:
Code:
+                       if((vpos >= vblank_start && vpos < vga.crtc.vert_total) || (vpos < vblank_end))
+                               res = 1;
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/09/12 10:38 PM

Yeah, I guess that would be better. Thanks.
Posted By: Ville Linde

Re: PC/XT/AT (inside) WIP topic - 08/09/12 10:55 PM

The original code obviously doesn't work if vblank start and end are the same (the latter part will always be false).

Would be much cleaner to just do this though :P

Code:
if(vpos >= vblank_start && vpos <= vblank_end)
    res = 1;


This assuming that vblank end counts as during vblank...
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/09/12 11:03 PM

That's actually (close to) what I wanted to suggest first, but I wasn't sure if the edge case around vert_total wasn't there on purpose smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/10/12 03:01 AM

Shouldn't vblank start and end not be the same? smile Seems to me that's the actual bug, moreso than whatever's going on with this code.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/10/12 03:05 AM

Well, in Fractint's 600-scanline modes, VBlank is the entire frame, and it attempts to detect VBlank. It never does.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/10/12 03:54 AM

I don't think you're getting it: CRT monitors could not function if "vblank is the entire frame", so that can't be what's really happening.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/10/12 05:18 AM

Well, this is a DOS program that was released recently (I'm using the latest version), so I don't know, because most people don't use CRT's anymore.
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 08/10/12 08:21 AM

It has to work on a real machine or throw it out
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 08/10/12 11:14 AM

Originally Posted By Ville Linde
The original code obviously doesn't work if vblank start and end are the same (the latter part will always be false).

Would be much cleaner to just do this though :P

Code:
if(vpos >= vblank_start && vpos <= vblank_end)
    res = 1;


This assuming that vblank end counts as during vblank...


Code:
	UINT16 vblank_start,vblank_end,vpos;

	vblank_start = vga.crtc.vert_blank_start;
	vblank_end = vga.crtc.vert_blank_start + vga.crtc.vert_blank_end;


So, that isn't supposed to be smaller, in ANY case.
Also documentation says:


Quote:
End Vertical Blanking

This field determines when the vertical blanking period ends, and contains the value of the vertical scanline counter at the beginning of the vertical scanline immediately after the last scanline of blanking.


So the < vblank_end part is technically right.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 08/10/12 01:05 PM

Originally Posted By Alegend45
Well, this is a DOS program that was released recently (I'm using the latest version), so I don't know, because most people don't use CRT's anymore.


Are you for real? LCDs have vblank as well, as much as you don't want to admit your code is wrong.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/11/12 12:36 AM

So, you're saying there's a logic problem with Fractint, and not a video problem, as far as we know.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/11/12 01:21 PM

IBM VGA BIOS works fine.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/12/12 05:24 PM

Nice!
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/12/12 05:49 PM

So, I'm guessing the dump was successful. Now for MESS incorporation! smile
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 08/12/12 07:52 PM

Uh, well, the dump was done a long time ago by great hierophant, but he trimmed the 27256 rom dump from 32kb to 24kb, and I *still* don't know what the chunk he cut off contained, but it isn't used by the card.

LN
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/12/12 08:02 PM

It's more than sufficient for Carl to make isa_vga.c though smile
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 08/14/12 04:47 PM

An interesting page that explains the complexities of the pc fdc subsystem: http://www.os2museum.com/wp/?p=472

OG.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/14/12 04:55 PM

Yeah, that whole site is great. That page in particular finally explains the "fd0 is a post-1991 82077" message that the kernel shows on boot.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 08/14/12 04:59 PM

Originally Posted By Olivier Galibert
An interesting page that explains the complexities of the pc fdc subsystem: http://www.os2museum.com/wp/?p=472


Yes, very interesting:

Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 08/14/12 05:37 PM

Well, your company is nuts in that area.

OG.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/17/12 11:55 PM

Apparently, MAME 0.2 runs without a hitch!... At 5% speed that is...



Yeah... Took me some minutes to get to this.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 08/18/12 10:01 AM

John Elliott, who runs the www.seasip.info site, just posted this on the [GEM DEVELOPMENT] mailing list:

"One of the drivers in GEM that I've never been able to test is for an 'MDSI Genius' card. Tonight I tried patching support for this card into a PC emulator, and running GEM (and Windows 1) with the results.

<http://www.seasip.info/Gem/History/longgem.png> - GEM/2 desktop
<http://www.seasip.info/Gem/History/longwin1.png> - Windows 1.04

According to reviews, the card could also do other tricks; it could superimpose MDA-style text on the graphics output, and do a dual-head sort of display with MDA text in the top half of the monitor and CGA graphics in the bottom. But without any documentation or its DOS driver (VHRBIOS.SYS), how
it did those will remain a mystery. Such information as I have managed to glean is at <http://www.seasip.info/VintagePC/mdsi_genius.html>."

Robert
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/19/12 03:09 AM

Been slowly doing this.

Other then the 8bit audio and the opl3, doesn't quite work yet. I wonder what CPU the ASP is as there appear to be firmware images around.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 08/19/12 07:48 AM

The CT1748A ASP/CSP is some sort of 3rd generation DSP chip (i.e. with, I believe, separate X and Y ram, and i think separate ram for program and all data tables), but I'm not sure what exact cpu it corresponds to if it isn't something completely custom that was locked behind creative labs' NDAs.

Stiletto might be able to help, though he's been having some disk problems recently...

Also see http://www.ebay.co.uk/itm/Creative-Labs-...=item564537ba55 which was the upgrade kit containing the ASP/CSP, which explains some of the stuff it could do.

LN
Posted By: Ville Linde

Re: PC/XT/AT (inside) WIP topic - 08/19/12 12:47 PM

ST18932 according to this page:
http://queststudios.com/smf/index.php?topic=2421.0
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/19/12 10:13 PM

OS/2 2.11 doesn't GPF anymore at 0160:FFF56CC6, with this patch.



So, it formats the hard drive, at least.

Patch:

http://pastebin.com/0fwPiivi
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/19/12 10:22 PM

Almost right. You need to check address_size not address_prefix and the 16-bit form of the instruction needs fixing also.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/20/12 01:47 AM

Hey, coming from him, I'm officially impressed. Alegend: fix it like Carl said and we'll apply it.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/20/12 01:53 AM

(Cue "That was easy" button)

NEW Patch:

MESS Patch
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/20/12 02:04 AM

Yup, that's fine ... except for "address_sized". Good work.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/20/12 09:11 PM

OS/2 2.11 is fully operational! (Although the second half of Setup requires better floppy emulation, so this was set up in Bochs.)



OS/2 Notepad FTW.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/20/12 09:20 PM

An update on some of the more obscure x86 operating systems...


Just to see how far it gets...







It errors out on setting each of the NVRAM parameters, thus going into an endless loop asking about them. But at least it's doing *something*

The NVRAM error can probably be fixed quite easily but since it supposedly runs on MCA hardware only, I guess it won't do anything useful anyway


This seems to work, although I have to dig out the manuals because I can't remember anything on how to use the server console:


This works up to this point where it silently hangs, waiting for something


This one also seems to work so far, however, it doesn't have a driver for IDE disks (although it has drivers for the Adaptec AHA154x, which as of now only exists as skeleton driver in MESS)


And finally, this one has trouble writing the (changed) partition table to the disk during install, other than that it seems to work




-Darkstar
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/21/12 01:34 AM

I haven't run out of things to test yet... smile

These are all on the FM Towns, since this software requires a 256 colour display.


MAME32 0.31


MAME32 0.34


MAME32 0.34 - not quite running wink

EDIT: One more that does something...

MAME32 0.36
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/21/12 09:59 AM

Remembered that back in the day, parts of MAME were in ASM, and might require a 486 CPU, so I ran MAME32 in the FM Towns II HR driver (20MHz 80486).


MAME32 0.34 - actually running and accepting input
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/21/12 12:26 PM

Yeah, BSWAP is quite useful for emulators smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/21/12 12:50 PM

How about FMT Win3.1 Enhanced Mode? That work yet?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/21/12 10:03 PM

Nope: still generates a load error on user.exe. (I've tried recopying the file from the CD, still doesn't work)
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/22/12 01:01 AM

Screenshots for the Neo Geo kiddies. wink


MAME32 0.36 - Neo Geo up in my MESS!


MAME32 0.36 - Hi BBH! wink


MAME32 0.36 - Title Screen - after a fair few minutes...


MAME32 0.36 - inputs works.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/23/12 12:13 AM

Umm... We're going to need S3 hardware acceleration taken into account at some point... XD

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/23/12 12:46 AM

Originally Posted By Alegend45
Umm... We're going to need S3 hardware acceleration taken into account at some point... XD



Haven't we been here before...?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/23/12 11:21 AM

Raiden PC CD-ROM 1994 (C) Fabtek & Seibu Kaihatsu: One of the worst ports I've ever played. There is digital audio on the disc, but it doesn't play. I can't access the disk directly in DOS either (I believe due to the digital audio. I've converted several CD's to CHD that had digital audio on it and the disk was not accessible in DOS), but the game recognises it though.







Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 08/23/12 12:43 PM

Originally Posted By mahlemiut

Haven't we been here before...?


Have we? I seem to remember not being able to get 9x to recognize a card at all without just crashing last time I tried, although maybe I was doing it wrong..

it's sure going to be fun anyway, I remember well the days of brand new PCs which would leave trails behind windows, or end up with random corrupt windows / icons because the video drivers and/or hw acceleration was buggy as hell. Knowing which bugs are your bugs is going to be half the fun I think... As crappy as the current ati/nvidia/intel drivers are we have it easy these days ;-)
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/23/12 01:30 PM

Well, I remember Alegend45 was trying to do something with 8514/A a while back, more for the purpose of adding acceleration functions of the S3 chipset (which is pretty much VGA+8514/A, with probably a few extra functions).
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/23/12 01:34 PM

lol, I wonder how he fixed that bug in the i386 core. He obviously doesn't understand how MESS works.

A lucky guess probably (or maybe someone else fixed it for him)
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/23/12 02:03 PM

Ah, the Great Censorhip Instance (whoever it is) seems to have removed another post without notice.

Could we maybe settle to censor posts by just removing the text so that everything afterwards is not completely out of context?
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 08/23/12 02:12 PM

Honestly, I think it's still plenty in-context even without my post.

Long story short, everyone keeps suggesting things that he might be capable of looking into, but no, he doesn't want to do that. He wants to look into N64, he wants to look into PS1, he wants to look into S3. Things that are completely out of his depth. Then, when he inevitably fails, he cries about how hard it is, and demands that people hand-hold him through it, or he'll just sort of poke languidly at it and then post screenshots about how it's broken, or of a bug he found that anyone could have told him would be there, and acts like he's accomplished something. I'm tired of it, there are plenty of things that he could be looking into, but the second someone actually suggests it to him, he doesn't want to work on it. I'm done, I'm done suggesting things that are at his skill level only to have it thrown in my face and for him to go try (and inevitably fail) to do things that are so far out of his depth you can see Atlantis.

He has some technical ability, but he's squandering it on things that he has no hope of being able to actually do at his current skill level. He's like a walking, talking example of the Dunning-Kruger effect.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/23/12 02:20 PM

The context works perfectly fine. Barry's post flows nicely out of Haze's, and Dorkstar's flows nicely out of Barry's.

Anna's didn't make sense with the deleted post, so no impact there either ;-)
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 08/23/12 02:26 PM

Originally Posted By R. Belmont
The context works perfectly fine. Barry's post flows nicely out of Haze's, and Dorkstar's flows nicely out of Barry's.

Anna's didn't make sense with the deleted post, so no impact there either ;-)


Are you sure, what makes sense now? ; )
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/23/12 02:27 PM

Very funny, ReBelmont :-P

Even though it might work this time, I already had posts deleted where the context wasn't flowing so nicely without the corresponding posts.

I just think it would be fairer to the people that are getting their post removed. But since that's my only pet peeve with this forum I'll stop here, I won't risk my 7 year old account being deleted, I'm kinda proud of my rather small member ID smile
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 08/23/12 02:34 PM

I'd rather you stop referring it to censorship. RB got to see the text of the kid's meltdown prior to him deleting it, and that's what matters.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/23/12 04:44 PM

I didn't meltdown. Plus, I do seem to have some sort of idea of what is wrong. Foreground Mixing is non-functional, and Win95 seems to use it. The only problem is, I'm failing to see where the VRAM should be changed to make the register writes actually do something.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/23/12 04:45 PM

Originally Posted By Darkstar
lol, I wonder how he fixed that bug in the i386 core. He obviously doesn't understand how MESS works.

A lucky guess probably (or maybe someone else fixed it for him)


Actually, that bug was fairly easy. Just some missing logic in the XLAT instruction, to handle for 16-bit XLATs in 32-bit code, that's all.

EDIT: Maybe JD is right. JD, do you think the Sega Mega Drive would be a better system to work on? I know it's a lot simpler than the PC.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 08/23/12 11:04 PM

Originally Posted By Alegend45
EDIT: Maybe JD is right. JD, do you think the Sega Mega Drive would be a better system to work on? I know it's a lot simpler than the PC.


Mega Drive has, I believe, one game that does not work, the rest work fine, and it's one of the more accurate implementations in fact. What exactly do you think needs to be done, or that you'd be able to help with?
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/23/12 11:13 PM

Nothing right now. Right now, I'm working on the Atari 8-bit line, like you suggested.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/24/12 01:52 AM

Still on the FM Towns II HR...




FX Fighter Turbo (Demo v1.0)
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 08/24/12 03:16 AM

Gonna stash this here before I forget again:

TOPBENCH is now beta.
http://dosbenchmark.wordpress.com/
http://www.vintage-computer.com/vcforum/...a-new-benchmark
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 08/24/12 03:28 AM

Also:
Ran into this on the DOSBox forums the other day, thought someone here might be interested.

http://vogons.zetafleet.com/viewtopic.php?t=27935

http://www.seasip.info/VintagePC/hercplus.html
http://www.seasip.info/VintagePC/incolor.html
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/26/12 09:18 AM

FIFA 96 PC CD-ROM (C) 1995 EA Sports

Converted the full CD from BIN/CUE to CHD, and although it's unplayable using SVGA, VGA was reasonable. Screenshots taken using the S3 video card, no VESA drivers needed, nor was EMM386. Full sound is provided using the Sound Blaster driver which sounds terrific. The game itself and menus look nice and vibrant.













Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 08/26/12 04:50 PM

Mike, your image host seems to be having issues at this end...
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 08/26/12 07:07 PM

if you open the link in a new page they work, so it seems not to like direct links wink
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 08/26/12 08:35 PM

hmm they're fine here, always were, must be disallowing direct links based on IP or something
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 08/26/12 08:37 PM

well, pics from Aug 23rd were fine, only these FIFA pics are not displayed, FWIW
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/26/12 09:49 PM

Perhaps Haze is right, displays on my PC, but not on my phone here. I was using imigur? but their image links changed so this board wouldn't display them, might have to revert back to the initial image host site I was using.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/26/12 09:58 PM

Also, GTA 1 now works again with full keyboard support, but only in low color, no high (16, 24 / 32-bit color) support. I get a message stating not enough VESA modes even with a VESA driver. It almost seems like GTA 1, Quake and Windows 9x are all affected by the same VESA problem, just speculating though.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 01:24 AM

*REPOST* Since the last post I did on page 89 didn't display the images properly, I've posted it here again. If Mods want to delete my original post that'll be fine since I can't edit it anymore frown

FIFA 96 PC CD-ROM (C) 1995 EA Sports

Converted the full CD from BIN/CUE to CHD, and although it's unplayable using SVGA, VGA was reasonable. Screenshots taken using the S3 video card, no VESA drivers needed, nor was EMM386. Full sound is provided using the Sound Blaster driver which sounds terrific. The game itself and menus look nice and vibrant.













Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/27/12 01:29 AM

Images on page 89 are fine for me in Chrome, Firefox, and IE. I suggest that since it was only Stiletto having problems, reposting was not necessary smile
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/27/12 01:30 AM

Actually, I had problems, too.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 01:34 AM

I had issues on this PC and my phone, it appears Stiletto was not alone smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/27/12 01:55 AM

Well, in the future know that the moderator (me) gets cranky when large pictures are reposted that I can see fine the first time ;-)
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 08/27/12 02:12 AM

Page 18. What's this page 89, kemosabe? FLAT MODE FTW!

Anyhow, it's a network routing issue or something - each image eventually took up to 30 seconds to load when loaded in separate tabs. I mean, it's the British Virgin Islands, for crying out loud, and I'm being routed through Dominica.

Now his new image host is fine.

We now return you to your regularly scheduled PC/XT/AT thread.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 02:19 AM

I believe on page 89 you said "Mike, your image host seems to be having issues at this end..." All I see on page 18 are EA cricket screenshots smile

Anyway, all is good now, kemosabe!
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 08/27/12 02:30 AM

Originally Posted By MikeAbson
I believe on page 89 you said "Mike, your image host seems to be having issues at this end..." All I see on page 18 are EA cricket screenshots smile


I changed my messageboard settings so it paginated threads at every 50 posts, so my page numbers are different. smile
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/27/12 02:31 AM

r17494

Got rectangle drawing working well enough for the S3 764, so that win95 can display something useful, although it still needs a lot of work. Bitblt is still missing (used for moving windows around), though. Neither is line drawing, not that Win95 uses it (it uses 0 width rectangles instead).

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 03:08 AM

Nice. Does this mean more than 16 colours now?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/27/12 04:41 AM

Yes, although it still needs a lot of work. Haven't even looked at 16-bit colour support, either (which the chipset also supports). Of course, the FM Towns gives you 256 colour support for free. smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 05:18 AM

Even if it's just 256, it's still better than 16 colours and compatibility increases, which is always good. I think anymore than that will probably bring most if not all PC's to a grinding halt due to the amount of on screen colours at the same time smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 09:45 AM

Alright, when I change the colour depth in Windows 95 from 16 to 256 and reboot, all I get is a black screen. I'm using the Number Nine 9FX Vision 330 (S3) driver that comes with Windows. Do I need to update the driver? I can't get to Advanced Display Properties because of only 16 colours I think.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 08/27/12 09:58 PM

Originally Posted By MikeAbson
Alright, when I change the colour depth in Windows 95 from 16 to 256 and reboot, all I get is a black screen. I'm using the Number Nine 9FX Vision 330 (S3) driver that comes with Windows. Do I need to update the driver? I can't get to Advanced Display Properties because of only 16 colours I think.


For me, it's the same, but once I wait, I still get the same exact picture as what I've already posted.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/27/12 10:05 PM

Make sure you haven't forgotten to use -isa1 svga_s3 smile

Should work fine with the standard driver.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 08/27/12 10:15 PM

Originally Posted By MikeAbson
Even if it's just 256, it's still better than 16 colours and compatibility increases, which is always good. I think anymore than that will probably bring most if not all PC's to a grinding halt due to the amount of on screen colours at the same time smile


If you're emulating a sufficiently advanced 2D card with good HW acceleration features and driver support for them then it could well be quite a bit faster.

the emulation is slow mainly because of the i386 cpu emulation so if your emulated graphic card (which is emulated at a higher level) is doing most of the work, and the emulated CPU less of the work then the emulation will be faster.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 11:18 PM

Originally Posted By Alegend45
Originally Posted By MikeAbson
Alright, when I change the colour depth in Windows 95 from 16 to 256 and reboot, all I get is a black screen. I'm using the Number Nine 9FX Vision 330 (S3) driver that comes with Windows. Do I need to update the driver? I can't get to Advanced Display Properties because of only 16 colours I think.


For me, it's the same, but once I wait, I still get the same exact picture as what I've already posted.


I had waited for about 1 minute and still had nothing but a black screen unfortunately frown
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 11:47 PM

Originally Posted By mahlemiut
Make sure you haven't forgotten to use -isa1 svga_s3 smile

Should work fine with the standard driver.


I was using the S3 driver that comes with Windows 95 smile and I'm fairly certain it was in ISA1, if not ISA1 then one of the other ISA slots, but Windows recognizes the card and isn't giving me any errors in Device Manager.

Is a black screen normal? Do I need to wait a few minutes? I just mentioned to Alegend there that I had a black screen for about a minute before giving up. I can try again tonight and wait a bit longer to see if anything changes.

I'm using Windows 95A 4.00.950. I can't see this making any difference if your using a new version of Windows 95 though?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/27/12 11:55 PM

Originally Posted By Haze
Originally Posted By MikeAbson
Even if it's just 256, it's still better than 16 colours and compatibility increases, which is always good. I think anymore than that will probably bring most if not all PC's to a grinding halt due to the amount of on screen colours at the same time smile


If you're emulating a sufficiently advanced 2D card with good HW acceleration features and driver support for them then it could well be quite a bit faster.

the emulation is slow mainly because of the i386 cpu emulation so if your emulated graphic card (which is emulated at a higher level) is doing most of the work, and the emulated CPU less of the work then the emulation will be faster.


That's interesting as I was expecting emulation to decrease the more colours are supported. Sort of like back in the day where users that had under-powered PC's had to run games in 16 / 24-bit colour instead of 32-bit to get decent speed.

Interestingly though about 10 or so pages back in this thread where was a post made with a link to download some DOS software that did some tests on the math co-processor and I was surprised to see emulation was faster when using that compared to not using it. I understand a system will be faster when using a co-processor, but I thought if an emulator has to use more CPU power to get that to work, emulation would be slower, so you may very well be right there smile
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 08/28/12 12:07 AM

well keep in mind people purchased expensive graphic cards to take load off their CPU and have the card do most of the work.

given the simple example of a line draw command, if you emulate it, done in software, with no card acceleration your 386 is having to do a lot more work, and then in turn the emulation of the 386 is having to do more work, decoding and executing multiple opcodes for every single pixel.

if the 2d card you're emulating has a build in line draw function, and the windows drivers / software can make use of it then instead it becomes only a handful of opcodes, once, to tell the card to draw a line, which then gets executed as a single command in native compiled (and optimized) C code of the emulator. The 386 is doing less work, so you're emulating less to get the same effect.

Now if your emulated card is handling a lot of things then 16-bit modes etc. could well be faster to emulate (and give better overall system performance) than a non-accelerated card even in 16 colour mode simply due to the sheer weight taken off the emulated CPU. Want to clear the screen without acceleration? you'd have to manually write to every pixel, with, tell the card to draw a big black rectangle.

of course this isn't going to magically make emulation of games which actually required a fast 486 / pentium *and* a good graphics card fast in MESS, but if you're emulating titles which ran on low end 486 systems but had good support for hardware accelerated graphics cards then it could help quite a lot.

framebuffers still take more CPU work to manage than say a pure tilemap / sprite system, but a blitter (which is essentially what the hardware acceleration is) at least takes some of the load away.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/28/12 03:31 AM

Originally Posted By Haze
well keep in mind people purchased expensive graphic cards to take load off their CPU and have the card do most of the work.

given the simple example of a line draw command, if you emulate it, done in software, with no card acceleration your 386 is having to do a lot more work, and then in turn the emulation of the 386 is having to do more work, decoding and executing multiple opcodes for every single pixel.

if the 2d card you're emulating has a build in line draw function, and the windows drivers / software can make use of it then instead it becomes only a handful of opcodes, once, to tell the card to draw a line, which then gets executed as a single command in native compiled (and optimized) C code of the emulator. The 386 is doing less work, so you're emulating less to get the same effect.

Now if your emulated card is handling a lot of things then 16-bit modes etc. could well be faster to emulate (and give better overall system performance) than a non-accelerated card even in 16 colour mode simply due to the sheer weight taken off the emulated CPU. Want to clear the screen without acceleration? you'd have to manually write to every pixel, with, tell the card to draw a big black rectangle.

of course this isn't going to magically make emulation of games which actually required a fast 486 / pentium *and* a good graphics card fast in MESS, but if you're emulating titles which ran on low end 486 systems but had good support for hardware accelerated graphics cards then it could help quite a lot.

framebuffers still take more CPU work to manage than say a pure tilemap / sprite system, but a blitter (which is essentially what the hardware acceleration is) at least takes some of the load away.


If any load is taken off of the emulated CPU, we should see an increase in the percentage that MESS runs at shouldn't we? At the moment I can run the i386 driver at 100% no matter what it's doing, this in Windows 95 or software that requires EMM386, but the i486 driver gets killed when running certain software, Windows, Quake and GTA come to mind, running as low as around 40% in some cases. It'll be interesting to see how much, if any, load is taken off the CPU. None of us (well some do), expect miracles, but every little of speed boost helps the popularity of the emulator succeed.
Posted By: Duke

Re: PC/XT/AT (inside) WIP topic - 08/28/12 09:33 AM

Unless you're running GLQuake it won't use any hardware acceleration and uses the FPU quite extensively, so it will probably be always slow to emulate. Same for GTA, unless you use the 3DFX version.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/28/12 10:07 AM

I've updated to the latest revision here, and I still can't get any more than 16 colours in Windows 95, just a black screen frown

I'm using the svga_s3 card and the default drivers that come with Windows 95, (listed in their driver database as "Number Nine 9FX Vision 330 (S3)"). I've tried various monitor drivers as well, the SVGA ones and the Plug And Play monitor drivers. I have also tried both the 486 and 586 drivers without success.

Any ideas?
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 08/28/12 10:51 AM

Originally Posted By Duke
Unless you're running GLQuake it won't use any hardware acceleration and uses the FPU quite extensively, so it will probably be always slow to emulate. Same for GTA, unless you use the 3DFX version.


Yeah, I don't think things like quake will magically improve, but IIRC things like Sim City which can make extensive use of 2d accelerated features were much better with a decent card.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/28/12 11:37 AM

r17526
Added background and foreground mix registers. Cleans up text in many areas, like the status bar in MAME32...





I have tried two driver versions - one included with Win95 OSR2.1 (DirectX2) and one included with DirectX 5. Both should be usable.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/28/12 11:40 AM

Maybe that's my problem. I've got DirectX 8.0a installed. Does this make a difference?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/28/12 11:59 AM

Possibly, they changed how text was drawn between DirectX 2 and DirectX 5, it's entirely possible that other stuff could have changed. Large icons on the desktop should always appear at a minimum, at least with DX2 and 5, as they are drawn in software. Windows includes a generic S3 764 driver also, so that's another option.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/28/12 10:04 PM

Originally Posted By mahlemiut
Possibly, they changed how text was drawn between DirectX 2 and DirectX 5, it's entirely possible that other stuff could have changed. Large icons on the desktop should always appear at a minimum, at least with DX2 and 5, as they are drawn in software. Windows includes a generic S3 764 driver also, so that's another option.


No desktop icons appear unfortunately. I don't see a generic S3 764 driver here in Windows, but I do have a driver called just "S3", which is the first driver in the list under the "S3" manufacturer list, so I'll give this a go and see what happens, otherwise I'll install Windows 95 again and not update DirectX as I cannot uninstall it.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/28/12 11:06 PM

Hmm... must have changed the names at some point. From the list, the closest would be S3 Trio32/64 PCI. Whether or not that would require it to be an actual PCI card, I don't know at this stage. The generic S3 card may also work, but I don't know just how much of the acceleration features it would use.

EDIT: One more thing that I completely forgot about, was that the graphics acceleration level was set to low. Setting it to full now presents further issues (text and mouse pointer), so try setting it lower.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/28/12 11:42 PM

No worries, I'll try setting the graphics acceleration to low as well as the Trio 32/64 PCI drivers, I do recall seeing those drivers in the list. I've got Windows version 4.00.950 (first release) so you may be right in that their driver names have changed in later versions. I think I have OSR2 somewhere, so I could try that as well.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/29/12 12:51 AM

I've fixed text rendering in full acceleration (will commit it soon), but still need to figure out how it renders the mouse pointer. You can use one step below full to get around it, but I fear it could be done via interrupts.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 08/29/12 12:57 AM

I'd be kind of impressed if it used raster IRQs for the pointer given the pretty high interrupt latency possible in Win9x. More likely there's a dedicated single sprite though, based on other SVGA h/w of that era.
Posted By: Tafoid

Re: PC/XT/AT (inside) WIP topic - 08/29/12 01:20 AM

For what it's worth, I owned an S3 back in the day with Windows 98 and a Pentium 233 - I remember it being a horror. I had to run acceleration at about half in order to get no graphic issues. If I ran it high, lot of corruption and mouse pointer corrupted as well.. taunting me. It made emulation no fun in windows because performance sucked so much.

Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 08/29/12 01:25 AM

Looks like a sprite is copied into the framebuffer.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 08/29/12 01:38 AM

Ah, haven't looked much at the extra VGA registers. Port 0x3d4, index 0x45 to 0x4f handle the hardware graphics cursor.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/29/12 02:04 AM

Originally Posted By Tafoid
For what it's worth, I owned an S3 back in the day with Windows 98 and a Pentium 233 - I remember it being a horror. I had to run acceleration at about half in order to get no graphic issues. If I ran it high, lot of corruption and mouse pointer corrupted as well.. taunting me. It made emulation no fun in windows because performance sucked so much.



That makes me feel a lot better smile
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 08/29/12 08:35 AM

Any interest in a Tseng Labs ET4000/W32P & ET6000 video bios?
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 08/29/12 09:35 AM

Originally Posted By Malice
Any interest in a Tseng Labs ET4000/W32P & ET6000 video bios?

Sure, you can dump it and post it in the "New Dumps" thread.
It will probably come in handy at some point, when VL and PCI is in a more usable state ...
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/29/12 11:12 AM

Originally Posted By mahlemiut
EDIT: One more thing that I completely forgot about, was that the graphics acceleration level was set to low. Setting it to full now presents further issues (text and mouse pointer), so try setting it lower.


256 colours is now the go. Nice one! Gonna test the crap out of this now smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/29/12 11:28 AM

DirectX 8.0a Direct 3D Software Rendering Test:



Yes, it's doubled, but very impressive nonetheless smile Slight graphics corruption appears afterwards.

Hardware Acceleration was set to the second option, which is "Basic". The third option (or second last if you prefer) causes the mouse only to be displayed and the desktop black with a few weird coloured lines scattered about.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 08/29/12 11:43 AM

Daytona USA PC Demo For Windows 9x (C) 1996 Sega: Again, the screen is doubled like the one above, but I've cropped the image this time. The game runs at 1 frame about every 3 seconds. Awesome!

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/02/12 04:05 AM

Added memory-mapped I/O to the S3, as Windows 3.1 makes heavy use of this feature.

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/03/12 02:03 AM

Made co-ordinates always relative to the start of VRAM. Fixes Virtual Pool (with S3 accelerated drivers enabled).


Virtual Pool (MS-DOS Demo)
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 09/03/12 07:16 PM

Took a while but it works.

It was hard to find any consistent info on how the page register and the top most bit of the 16-bit dma interact. The 5170 schematic shows that the lsb of the page register is masked and the msb of the dma controller is passed to A16 and that seems to work. Dosbox appears to add them while Bochs appears to or them.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/03/12 10:01 PM

Great progress there.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 09/04/12 10:31 AM

Agree with the above post great progress.

I do have a question about the memory configuration for the 386 and 486 driver the -ramsize switch is limited to:

1664K,2M,4M,8M,16M,32M,64M

as far a i recall a 486 could only logically use 15MB. If i try setting MESS with -ramsize 16M the bios only sees 1664K i don't know if that's a bug or not?

Also AFAIK 12M should be a valid setting.

Just for amusement i changed MESS to accept 15M and it seemed to work.



Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 09/04/12 10:48 AM

I've encountered a problem trying to install the sound blaster 16 drivers 'sbbasic.exe' in the at486 driver.

I can't gain access to the local hard drive C:



I'm using the latest SVN 17630 (x64 Windows 7).
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/04/12 11:19 AM

I know this doesn't exactly solve your problem, but what you could try is extract the sbbasic.exe file first in Windows 7 (I use 7-Zip) and then put all the extracted files in to a floppy image and mount it once inside.

Are you able to write other files to the drive? For example, can you open autoexec.bat or config.sys and save the file. You can try running defrag.exe to see if the drive is write-protected. If so, I can't remember the fix right now, but I'll have a look around.

I was able to install the drivers ok, but it seems compatibility is the same as the Sound Blaster 1.0 / 1.5, nothing higher for most of what I tried, ie: no backwards compatibility with the Sound Blaster Pro for example. SimCity 2000 wouldn't detect the SB16 no matter what I tried, SB was detected ok though.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/04/12 02:30 PM

A lot of DOS apps require the BLASTER variable to be set correctly to detect the later SB models. Did you do that?
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 09/04/12 07:35 PM


This needed pre-sb16 adc support to work even though it doesn't use it. I think it only uses 8-bit audio too even though it came with the sb16 (at least it came with mine).
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 09/04/12 09:00 PM

Originally Posted By crazyc


Holy shit I'm 9 again
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/04/12 10:07 PM

Originally Posted By R. Belmont
A lot of DOS apps require the BLASTER variable to be set correctly to detect the later SB models. Did you do that?


Yes, this happens automatically during installation. This also happens after you run diagnose.exe. Testing the soundcard works fine, although it seemed I only got mono sound during testing, then again the speakers built into my monitor aren't that great. There were a few demos that detected the card but sound was imperfect ie: playing slowly.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/04/12 10:30 PM

The 80286 and 386SX are limited to 16MB RAM, the 386DX and 486SX/DX can address as much as 4GB. The FM Towns BIOSes seem to support up to about 99MB (later Pentium-based systems support more, later models have as much as 128MB), so is likely a BIOS limitation. I'd guess there must be some 486 BIOSes out there that support more than 16MB?
Posted By: Duke

Re: PC/XT/AT (inside) WIP topic - 09/04/12 10:35 PM

ct486 supports 64 MB.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/05/12 11:13 AM

Manually changing the IRQs and DMAs gets the Sound Blaster 16 working perfectly in Windows 95, (the Sound Blaster 1.5 hangs when playing sound).



Still not having a lot of luck with sound correctly in DOS though.

- SC2000: Won't see the SB16 at all, (SB works ok)
- FastTracker II: Works, but sound is played very slowly
- Inertia Player 1.22: Locks up
- Wolfenstein 3D: Works fine
- Megamix Demo from RealTech: Sound is played slowly
- Pinball Dreams: Freezes with SB Pro (same when using SB1.5, works fine with just SB)
- Quake: Works with sound as before, but only using 8-bit samples at 11025khz
- Rise Of The Triad: Ok with SB16
- Robotnik demoscene Demo: Runs with SB16 8-bit-stereo, won't run when using 16-bit stereo / mono
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 09/06/12 07:04 AM

Originally Posted By mahlemiut
The 80286 and 386SX are limited to 16MB RAM, the 386DX and 486SX/DX can address as much as 4GB. The FM Towns BIOSes seem to support up to about 99MB (later Pentium-based systems support more, later models have as much as 128MB), so is likely a BIOS limitation. I'd guess there must be some 486 BIOSes out there that support more than 16MB?


Ok at lest the at486 bios's didn't seem to work with 16MB or more. But nice to know that the ct486 driver does i know some Pentium boards could go up to at least 512MB.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 09/06/12 11:42 AM

Wow Deluxe Paint II works in SVGA 256 color modes on the ET4000.

Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 09/06/12 12:38 PM

Originally Posted By MikeAbson
Manually changing the IRQs and DMAs gets the Sound Blaster 16 working perfectly in Windows 95, (the Sound Blaster 1.5 hangs when playing sound).
IRQ's and DMA channels are currently hard coded of they have to be manually set for now.

Quote:
- SC2000: Won't see the SB16 at all, (SB works ok)
It probably uses an unimplemented command. Look in the error log window to see.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/06/12 10:08 PM

Originally Posted By crazyc
Originally Posted By MikeAbson
Manually changing the IRQs and DMAs gets the Sound Blaster 16 working perfectly in Windows 95, (the Sound Blaster 1.5 hangs when playing sound).
IRQ's and DMA channels are currently hard coded of they have to be manually set for now.

Quote:
- SC2000: Won't see the SB16 at all, (SB works ok)
It probably uses an unimplemented command. Look in the error log window to see.


Initially Windows did correctly identify the settings when I added new hardware, but I didn't have the Windows disc in and ended up with an illegal operation, but after rebooting, inserting the Windows 95 disc and setting up the driver to see it, Windows identified the new hardware (this time with the incorrect settings) and I was able to change these manually and get it to work.

As far as SC2000 goes, I don't recall seeing any unimplemented features in the error log, but I will look again real quick tonight maybe (football on tonight and takes major priority!)
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/09/12 03:04 AM

SimCity 2000 CD Collection (Win 3.x / Win 9x): Depending on the country where this was released, you either get the DOS version included, or you don't. I've had the Big Box version sent to me from the US which does not include the DOS version unfortunately (UK version seems to though). Here are some shots of the game up and running on Windows 95 in full 256 colour at 1024x768 (S3 does not support anything higher in Windows at the moment. I'm unsure of the maximum resolution it can support, possibly 1600x1200?). Sound and music is provided by the Sound Blaster 16.







Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 09/09/12 07:45 AM

very colourful! smile

I notice Regent's Park has a wrong character.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 09/09/12 02:27 PM

Originally Posted By Robbbert
very colourful! smile

I notice Regent's Park has a wrong character.


probably just down to the version of Windows and the fonts / languages installed.

You see it sometimes even today although more often with forums not processing some codepages correctly and mangling apostrophes.
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 09/09/12 03:18 PM

Just came across this list developers may like:
http://nerdlypleasures.blogspot.com/2012/04/unique-pc-hardware-game-support.html
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/09/12 03:28 PM

That's a nice list smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 09/09/12 03:33 PM

Quote:
Innovation Sound Standard SSI-2001

Feature - 6581 SID Sound


That's interesting. I need to find a copy of Ultima VI and try to make it work.
Posted By: Sune

Re: PC/XT/AT (inside) WIP topic - 09/09/12 04:49 PM

"Unfortunately, when the DAC is playing on real hardware, the built in joystick ports cannot be used."

A slight oversight there!
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 09/09/12 05:04 PM

Originally Posted By Sune
"Unfortunately, when the DAC is playing on real hardware, the built in joystick ports cannot be used."

A slight oversight there!


At least it's not an aircraft flight system ;-)

Anybody want to raid some plane graveyards? :-p
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 09/09/12 06:31 PM

Originally Posted By crazyc
Quote:
Innovation Sound Standard SSI-2001

Feature - 6581 SID Sound


That's interesting. I need to find a copy of Ultima VI and try to make it work.


There's an unofficial patch for DosBox to support this. See here

Ultima VI sounds really cool with that, I didn't know there were so many games supporting it.

Ultima VI can be bought on gog.com for 6 bucks. If anyone is interested, I have the japanese Ultima Collection CD (which I *think* cannot be bought anymore, thus if there's interest I could provide images for it)
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 09/09/12 07:30 PM

Originally Posted By Stiletto


I could swear I saw explicit support for some of those cards in one or more of the DOS games I played as a kid that aren't listed on that page. maybe Descent or Hocus Pocus.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/09/12 08:59 PM

I'm sure there are more games supporting some of this stuff than was on that list. The vogons thread indicates at least one game that listed support on the box doesn't, too smile
Posted By: Matty

Re: PC/XT/AT (inside) WIP topic - 09/10/12 04:54 AM

Originally Posted By Robbbert
I notice Regent's Park has a wrong character.

Pretty easy to work out why - city was created on a Mac, and the person used a typographical apostrophe, which is at codepoint 0xD5 in MacRoman. When the city is opened on Windows, the signs are interpreted with CP1252 which has O-tilde at codepoint 0xD5. (IIRC cities were directly transferable between Mac and Windows, but scenarios weren't, because on the Mac they had the scenario data, including target funds/population, disaster, etc, in the resource fork. They even had a ResEdit template for editing it, so you could turn your own cities into scenarios, and edit the goals for the existing ones.)
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/13/12 10:10 AM

Street Fighter II: Normally all I get is a black screen, but with recent additions it works now with sound.







Posted By: Vas Crabb

Re: PC/XT/AT (inside) WIP topic - 09/13/12 10:40 AM

SF2? Is that the crappy US Gold port, or something worth playing?
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/13/12 11:12 AM

It's the US Gold version. I didn't actually play the game either, screenshots were taken from the attract mode. The gameplay honestly didn't look fun enough to warrant playing the game, I'd stick with MAME or the SNES version smile
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/14/12 11:27 PM

r17895

Got the ATI Graphics Ultra to pass the Mach8 test on boot, so there's now one less error message shown, just one more to sort out...

Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 09/15/12 09:12 AM

I've installed the DOS driver (found on the Creative website) for the Sound Blaster 16 and selected it as an ISA slot (-isa2 sblaster_16).

My autoexec.bat and config .sys appear to be set correctly by the official install.exe





I have also set the sound settings correctly using SETUP.EXE for Doom 2.

When entering the game the music sounds great but the sampled sounds are grainy and played back and the wrong speed (too fast).

Is this normal given the current status of the driver or have I done something wrong when setting up the Sound Blaster?

The driver is running at a constant 100% with 0 frame skips.

I'm using the latest SVN build [r17895] on Windows 7 64-bit.

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/15/12 11:22 AM

Doom 1 works for me simply with BLASTER=A220 I5 D1 T6. Sound is a bit clicky (could be caused by speed issues, I can only muster about 85% running Doom). But various other games seem to exhibit some sort of crackling, so that at least, I'd figure is expected at this time. Not had anything play too fast though, so not sure about that.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 09/15/12 01:10 PM

Doom locks up for me during loading when I use the SB16 frown I haven't had any instances though where the sound is played too fast, just slowly in some cases. As far as crackly sound goes, Rise Of The Triad was one game that did this during testing last week.

Edit: Is it just me or does the floppy drive not work? I can't access it in DOS, gives me Abort, Retry, Fail? message (using at486).
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 09/15/12 01:29 PM

It's not just you, I'm having the same problems.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/15/12 10:13 PM

Yeah, I'm having issues with floppy access, also.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/15/12 10:14 PM

Floppy access is DOA until Olivier's new NEC765 lands. This is a known thing.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/19/12 12:26 AM

r18006

Working 640x480x256 (including tweaked modes) with the Graphics Ultra...


Fractint - ATI VGA Wonder 720x540x256


Fractint - ATI VGA Wonder 752x564x256
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 09/19/12 06:06 PM

Is it just me, or does the second image look WAAY off?
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 09/19/12 06:09 PM

Originally Posted By Alegend45
Is it just me, or does the second image look WAAY off?


I'm Alegend45, and I know nothing about fractals.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 09/19/12 06:43 PM

-_- No, I mean that the fractal is all warped and twisted. I don't think that's how it's supposed to be.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:00 PM

Originally Posted By Alegend45
-_- No, I mean that the fractal is all warped and twisted.


You mean like how fractals are when you start tweaking the equation being used?

Originally Posted By Alegend45
I don't think that's how it's supposed to be.


Hence my original comment.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:19 PM

I gotta admit, it looks like an FPU bug, or maybe a missing XOR in the pixel draw order.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:39 PM

It's the "mandphoenix" type from fractint. Here it is from dosbox.

Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:42 PM

Originally Posted By crazyc
It's the "mandphoenix" type from fractint. Here it is from dosbox.



No, no, that's too simple an answer. It must surely be an FPU bug or a pixel drawing bug, just ignore the fact that the outermost iterations look smooth and unperturbed... smile
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:44 PM

The dosbox image is too low res to really tell, but it appears to be smoother and not pixel=rand(); like the MESS screen.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:48 PM

Originally Posted By R. Belmont
The dosbox image is too low res to really tell, but it appears to be smoother and not pixel=rand(); like the MESS screen.


Uh, other than resolution and the fact that MESS clears to black and DOSBox seems to clear to blue for some reason, they look identical to me. The outer iterations are just as smooth in MESS as they are in DOSBox. Secondly, by the recursive nature of a fractal, the inner iterations are happening at a scale that is <= 1px in size. So, if you assign each successive iteration's pixel writes to be a successive entry from the default palette, looping around after you get to 16 or 256, the inside will indeed look like pixel=rand().

If, on the other hand, you use a more advanced fractal program that lets you select a custom palette - like a smooth, linear gradient - it looks more more visually pleasing and a lot more sensible.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 09/19/12 07:55 PM

Originally Posted By R. Belmont
The dosbox image is too low res to really tell, but it appears to be smoother and not pixel=rand(); like the MESS screen.

Here's a higher res one also from dosbox.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/24/12 09:04 AM

MS-DOS version runs well. Also runs under Win95. Win95 version runs, but has some video issues, however...


NESticle 0.43 (MS-DOS)
Posted By: Firewave

Re: PC/XT/AT (inside) WIP topic - 09/24/12 09:45 AM

Originally Posted By R. Belmont
I gotta admit, it looks like an FPU bug, or maybe a missing XOR in the pixel draw order.


I doubt it's an FPU bug IIRC the FPU results from MESS matched a real one in the QEMU testsuite. Although that might miss a few things.
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 09/24/12 11:01 AM

@ mahlemiut

Looks good, a NES emulator running inside of MESS. smile
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 09/24/12 11:34 AM

probably the easiest way to play Castlevania 3 US/Euro until our PPU is rewritten... frown
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/28/12 04:41 AM

Ah, the memories...

DOS version works, Win32 doesn't for some unknown reason, displays the GUI, then exits without error. Would be nice to be able to test the X11 version one day, too...


GalEMU 0.40.9 (MS-DOS)
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/28/12 11:45 AM

Maybe the Win32 version wants the color depth set to something specific? IIRC a lot of early Win32 emulators wanted 8-bit color and wouldn't work with more or less.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 09/28/12 11:57 AM

Since it does display the GUI in the first place, I'd say the colour depth is not the issue (256 colours is the minimum, and is set as such).
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 09/28/12 12:50 PM

This topic is becoming a portfolio of individual projects ^^'
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 09/28/12 01:10 PM

Could be worse, it could be the QMC2 topic ;-)
Posted By: qmc2

Re: PC/XT/AT (inside) WIP topic - 09/28/12 01:16 PM

smile
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/07/12 07:15 PM

Second Reality scrolls correctly now.

http://pastebin.com/37kHsBT0
Posted By: TSCHAK

Re: PC/XT/AT (inside) WIP topic - 10/08/12 07:38 AM

errr…
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 10/08/12 10:17 PM

Again, if you want to fix that thing you have to test the following test cases too:

* Alien Breed
* Bio-Menace (EGA mode)
* Jazz Jackrabbit
* Sensible World of Soccer
(there are others too, but don't recall right now)

Alien Breed at very least doesn't work with your posted patch, so it's wrong.
Posted By: Javier Donoso

Re: PC/XT/AT (inside) WIP topic - 10/08/12 10:43 PM

The Unisys 586 BIOS closes with the following error:
"x87 invalid instruction (PC:10095)".
What would be the cause?
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 10/09/12 12:26 AM

Possibly more an unemulated behaviour rather than a CPU core bug, according to the improbable Program Counter.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 10/13/12 09:46 AM

The SNES finally emulated in MESS:


*runs away before being stoned*
(but it runs at a healthy 20%)
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/13/12 04:28 PM

It seems our virtual 8086 mode is SLIGHTLY broken.



The write-protect flag is not working in 'supervisor mode', which I'm guessing means virtual 8086 mode.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/13/12 04:42 PM

Nope, the WP bit disallows kernel writes to (user) write-protected pages. It's 486+ only and I have a patch to implement it, just haven't submitted it yet.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/13/12 04:57 PM

Ah, OK. I tried making a patch, too, probably not as good as yours, though. Can you send me the patch, please?
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 10/13/12 07:14 PM

Originally Posted By Alegend45
Can you send me the patch, please?


What are you going to accomplish with the patch other than taking screenshots? Just wait until he submits it, like normal people.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/21/12 05:59 PM

Yeah, Carl's patch is not perfect. Gives me the same results on the tcldisk.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/21/12 10:59 PM

Carl is a miracle worker wink




Damn Small Linux 4.4 - with low RAM setting enabled
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 10/22/12 09:58 AM

He certainly is a miracle worker smile 3 floppy disks and 1 CD later, Tada! Interestingly enough, Windows NT runs at 100% on my computer, Windows 95 runs at half the speed. I suspect this has something to do with the way Windows NT works internally, not actually MESS? If Windows 95 ran that fast, that would be incredible! Really great job everyone!





Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:08 AM

Originally Posted By MikeAbson
He certainly is a miracle worker smile 3 floppy disks and 1 CD later, Tada! Interestingly enough, Windows NT runs at 100% on my computer, Windows 95 runs at half the speed. I suspect this has something to do with the way Windows NT works internally, not actually MESS? If Windows 95 ran that fast, that would be incredible! Really great job everyone!


Could you try installing cpuidle on the '95?

http://www.oocities.org/siliconvalley/pines/5597/cpuidle2.html


OG.

Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:42 AM

Yes cpuidle drastically improves performance of win95 in MESS went from a low of 44% to 220% unthrottled.
Posted By: Vas Crabb

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:45 AM

NT4, now that's a familiar sight smile
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:53 AM

Jesus, NT4 is working now?! What next, Windows ME? Windows 2000?!
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:55 AM

ME hung very early in the installer last time I tried, but yeah, might be worth seeing what those do again now, although AFAIK people were still having issues with certain configurations of Win 3.1? (barry?)
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/22/12 12:10 PM

Windows 2000 would need the at586 driver working better then it is now.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/22/12 12:34 PM

Originally Posted By Haze
ME hung very early in the installer last time I tried, but yeah, might be worth seeing what those do again now, although AFAIK people were still having issues with certain configurations of Win 3.1? (barry?)

Windows 3.1 does not boot on the FM Towns in 386 Enhanced Mode (Standard Mode works fine). it gives a load error on user.exe.
Win3.1 runs fine in either mode on at486/ct486.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 10/22/12 12:56 PM

I guess it would be interesting to know how real hardware behaves.. Maybe the revision we have just wasn't compatible with that configuration.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/22/12 01:41 PM

Enhanced mode implies using VxDs to talk directly to hardware instead of calling BIOS services, so having the right version would definitely be important for not-quite-PCs like the FM Towns.
Posted By: AWJ

Re: PC/XT/AT (inside) WIP topic - 10/22/12 02:47 PM

I'm pretty sure that each of the Japanese almost-PCs needed its own custom versions of Windows up to Win95 or so.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 10/22/12 02:50 PM

Originally Posted By AWJ
I'm pretty sure that each of the Japanese almost-PCs needed its own custom versions of Windows up to Win95 or so.


Correct. smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 10/22/12 08:59 PM

Olivier, I will give cpuidle a go as it seems to really help from what Malice tried, thanks for the tip.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:02 PM

Windows 2000 gets this far then MESS exits with the following error.



0023C0B8: 00D7DE74 (not found)
0023C148: 00D7DADD (not found)
0000001D: 012132BE (not found)
i386: Invalid REP/opcode 90 combination
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:14 PM

Holy crap. O_O Can you please run that again with the -log option, and then send me your error.log, please? I'm gonna fix some bugs.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:23 PM

That one's easy. REP NOP is a valid instruction on Pentium 4 and newer, it yields an HT sibling. It should just be ignored.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:27 PM

Originally Posted By Alegend45
Holy crap. O_O Can you please run that again with the -log option, and then send me your error.log, please? I'm gonna fix some bugs.


http://www.filedropper.com/error
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:31 PM

And done! It simply adds a special case for REP NOP, as Carl said.

http://pastebin.com/AAr3a8vL
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:34 PM

after installing winME I had 3 meg left on the C drive.. it wasn't happy



Only took around 12 hours on a 66mhz 486 with 15 meg of ram ;-)

Haven't managed to get it to like the gfx adapters either

interesting note tho, ME also has cpuidle behavior built in, so it jumps between 100% and about 10% when actually doing something
Posted By: remax

Re: PC/XT/AT (inside) WIP topic - 10/22/12 10:57 PM

I'm sure you had plenty of old files to delete!

How did you manage to came this close to the limit? Pure luck?
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:06 PM

I just used the recommended hdd settings for the 486 driver, and installed WinME using the default options..

I have a feeling some files might have ended up not installed properly as a result ;-) and no, I didn't have any files to delete, it was installed to a blank (well dos 6.22) c: drive

It did blow MAME up once during installation after first reboot, during the hardware detection, but 98 does the same, so not surprising.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:11 PM

Managed to get 15-bit+ colour video modes to display more or less correctly for the S3 card. Now I can run Firefox (eventually). smile (No, I haven't bothered trying to get networking working as yet...)



EDIT: As for the REP NOP stuff, I get that with various Linux versions when doing an HD partition check.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:30 PM

Originally Posted By Alegend45
And done! It simply adds a special case for REP NOP, as Carl said.

Changed it a bit to return rather than break and not to do the logerror as that instruction is used in busy wait loops and so could log way to much.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/22/12 11:34 PM

Ah, OK. Probably a good idea.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:03 AM

Malice: After pulling the most recent SVN changes, what does Windows 2000 do now?
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:42 AM

It proceeded further

Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:47 AM

Originally Posted By Malice
It proceeded further



Sounds like we're going to need LBA support smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:56 AM

Nice progress being made here with ME and Windows 2000. NT 3.1 wouldn't install though, tells me I need to rerun setup after going through about 9 of 15 floppies or whatever it is (at work now so I can't remember).

In that screenshot above Malice, is that because the hard drive file you were using was 500MB or less or because Windows 2000 / MESS not working properly?
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:59 AM

Coincidentally i posted about a LBA capable 486 bios. But i think the MESS IDE controller also needs support to work.

http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=80278&page=4

Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/23/12 01:09 AM

Originally Posted By MikeAbson

In that screenshot above Malice, is that because the hard drive file you were using was 500MB or less or because Windows 2000 / MESS not working properly?


yeah the HD is too small.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/23/12 02:28 AM

Originally Posted By mahlemiut

Windows 3.1 does not boot on the FM Towns in 386 Enhanced Mode (Standard Mode works fine). it gives a load error on user.exe.
Win3.1 runs fine in either mode on at486/ct486.



Says "Failure code is 02" (file not found). When starting in standard mode, the next line is INIT=Keyboard so maybe it's trying to load a mouse driver? There doesn't seem to an error in the system.ini.
In fact INIT=Keyboard is the next line on the AT in enhanced mode also.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 03:35 AM

Not sure what it's trying to load... mouse driver would be mouse.sys.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/23/12 03:47 AM

Looking around it seems that the dos mouse driver might inject itself into the windows loading process. I wonder if mouse.sys was not loaded on the towns would it work and if mouse.sys were loaded on the AT would it break?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 04:03 AM

Tried disabling mouse.sys in config.sys, makes no difference (standard mode works, with mouse functioning), and enhanced mode bombs out at user.exe.

I'd tend to think that MO is cut off somehow and is meant to refer to something else.

I noticed mouse.drv is on the CD, but didn't appear to be installed on the HD. Copied it to Windows system folder, still doesn't help.
Posted By: Sharkpuncher

Re: PC/XT/AT (inside) WIP topic - 10/23/12 04:47 AM

Originally Posted By mahlemiut
Tried disabling mouse.sys in config.sys, makes no difference (standard mode works, with mouse functioning), and enhanced mode bombs out at user.exe.

I'd tend to think that MO is cut off somehow and is meant to refer to something else.

I noticed mouse.drv is on the CD, but didn't appear to be installed on the HD. Copied it to Windows system folder, still doesn't help.


It seems like there were dozens of MO (Magneto-Optical) drives available for the FM Towns at the time. Could something be trying to call to a piece of nonexistent hardware because it's making an assumption based on the hardware it's seeing or having a random issue with that particular driver loading because of it?

If I'm reading this correctly (EDIT: Whoops, can't post japanese here apparently? That was a whole mess of gibberish.) then an internal MO drive was an option on the HR (486SX) and HG (386DX)...but I may not be.

http://ja.wikipedia.org/wiki/FM_TOWNS#48....9E.8B.E5.8C.96
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 09:04 AM

Could be, but I'd think it'd be more likely to refer to a proper filename.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 10:08 AM

Just to set up a small list of the obvious issues with Linux running under MESS:

- Floppy disks don't seem to work. On boot, you get a message to the effect of "No floppy controllers detected". Some distros will not proceed past this point. Trying to mount a floppy within Linux fails.
- Hard disks do not work. Multiple timeouts occur during partition checks. Only way around this, is to not mount any HD images.
- Serial mouse doesn't work. Damn Small Linux does give the option of choosing a serial mouse for X11 (by default, there is one on the first serial port), but the pointer never moves.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 10/23/12 10:52 AM

did you check the mouse protocol? I think it might be Mouse Systems by default, I remember having to switch that to Microsoft mode on the past
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 11:47 AM

It's Microsoft by default, but tried msystems_mouse also, neither work. More likely issues with serial port emulation.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:18 PM

Well, the hard disk problem might be fixed by adding support for LBA48.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/23/12 12:27 PM

Originally Posted By mahlemiut
Just to set up a small list of the obvious issues with Linux running under MESS:

- Floppy disks don't seem to work. On boot, you get a message to the effect of "No floppy controllers detected". Some distros will not proceed past this point. Trying to mount a floppy within Linux fails.


I could use a repro on that one (what driver to use, what image to download, how to hook things up correctly slot-wise... :-)

OG.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/23/12 06:42 PM

Originally Posted By Olivier Galibert
I could use a repro on that one (what driver to use, what image to download, how to hook things up correctly slot-wise... :-)


Thanks to kaylee I've been able to repro and it should be fixed now.

OG.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/23/12 06:48 PM

Originally Posted By Olivier Galibert

Thanks to kaylee I've been able to repro and it should be fixed now.

OG.

Details? I need to look at the serial mouse.
Posted By: remax

Re: PC/XT/AT (inside) WIP topic - 10/23/12 07:45 PM

Originally Posted By Haze
and no, I didn't have any files to delete, it was installed to a blank (well dos 6.22) c: drive


Yeah that was irony. You 've made clear you had just installed it wink

Originally Posted By Haze
I just used the recommended hdd settings for the 486 driver, and installed WinME using the default options..

I have a feeling some files might have ended up not installed properly as a result ;-)


Strange, i would have thought installation would fail in this case.
Perhaps you just had a lot of luck and had exactly the right amount of free space.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/23/12 07:56 PM

Originally Posted By crazyc

Details? I need to look at the serial mouse.


It's committed, not sure what more you need :-)

OG.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/23/12 08:05 PM

I think he means details on how to boot Linux up to repro this smile
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/23/12 08:11 PM

Originally Posted By R. Belmont
I think he means details on how to boot Linux up to repro this smile


We, he just gave me an image from this:
http://www.zelow.no/floppyfw/

And then you just need a mess at486 -ramsize 8M -flop1 floppyfw-1.0.1.img

But that's not graphical and/or mouse-using in any way.

OG.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/23/12 08:34 PM

Right, Barry will need to explain his setup. Given it's Linux, there's no problem with just posting the CHD being used, by the way.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 09:31 PM

The Linux I've been using is Damn Small Linux 4.4.10 liveCD. Since the 486 BIOSes don't boot from CD, you'll need a boot floppy to boot the CD. Both should be available from http://www.damnsmalllinux.org/

Once you get the boot: prompt, you'll need to enter 'dsl xsetup' as the default video mode is 1024x768x32, and most (all?) of the supported video cards don't do that. This options with run xsetup before starting X11, allowing you to configure X11 settings. The S3 card can do 640x480x16, and 16-bit video is required for some X11 apps.

Be patient while it boots, it's not fast. Driver is ct486 with 64MB RAM enabled.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 10:18 PM

Ok, can cross floppy issues off that list now, floppies are now readable under Linux.

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/23/12 11:37 PM

BootE Linux 0.20-r2 now boots to a shell prompt :P

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/24/12 03:45 AM

With HDs, it fails at the partition check stage. With an HD image mounted, the check will generate a few IRQ timeout errors.



Then it generates a bunch of drive not ready errors.



It generally won't stop Linux from booting, but it would be nice to be able to install to HD where possible, or at least access HD contents.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/24/12 04:44 AM

Originally Posted By mahlemiut
Ok, can cross floppy issues off that list now, floppies are now readable under Linux.


Weeee :-)

OG.
Posted By: Curt Coder

Re: PC/XT/AT (inside) WIP topic - 10/24/12 07:35 AM

Wangpc still thinks the FDC is broken, it is very picky about it. This fixed it with the old code:

r15355
Trigger RDY active during reset interrupt for each drive independently so that 4 consecutive Sense Interrupt commands will return the correct status.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/24/12 10:44 AM

Originally Posted By Curt Coder
Wangpc still thinks the FDC is broken, it is very picky about it. This fixed it with the old code:

r15355
Trigger RDY active during reset interrupt for each drive independently so that 4 consecutive Sense Interrupt commands will return the correct status.


Yep, I know I have to take care of that (the 82078 datasheet was the first one clear on the subject, weee). Thanks for reminding me (and providing a test case).

The 4 sense interrupt calls must return the expected value, but otoh the irq must go low after the first one.

OG.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/24/12 01:27 PM

The IBM 5160 BIOS requires that too but the AT clones require the opposite. Micko fixed it in rev15364 "Added SMC37C78 based floppy controller and connected it to 386+ and atvga.".
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 10/24/12 10:33 PM

Originally Posted By Olivier Galibert
Originally Posted By mahlemiut
Ok, can cross floppy issues off that list now, floppies are now readable under Linux.


Weeee :-)

OG.


Or Wheeeee... or more appropriate for you Ouiiiiii... wink
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/25/12 12:31 AM


I wanted to run X in gdb to make the image even more silly (and to find what it's doing with the mouse) but no debugger in DSL.
Posted By: Matty

Re: PC/XT/AT (inside) WIP topic - 10/25/12 02:24 AM

Originally Posted By crazyc
I wanted to run X in gdb to make the image even more silly (and to find what it's doing with the mouse) but no debugger in DSL.

Yo sup dawg, I heard you like debuggers, so I put a debugger in your debugger, so you can debug while you debug.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/26/12 05:39 AM

Looks like modern Linux kernels work too, although for some reason it won't attempt to start X11.


Tiny Core Linux 2.6.4 (kernel 3.0.21)
Posted By: qmc2

Re: PC/XT/AT (inside) WIP topic - 10/26/12 08:09 AM

Cool smile!
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/26/12 12:12 PM

Modern Linux probably doesn't have drivers for video cards as old as we emulate, which would preclude starting X smile
Posted By: qmc2

Re: PC/XT/AT (inside) WIP topic - 10/26/12 12:29 PM

Well, given it even runs on the 'old' hardware, I'd say it could also support some old graphics adapters wink.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/26/12 12:30 PM

Originally Posted By R. Belmont
Modern Linux probably doesn't have drivers for video cards as old as we emulate, which would preclude starting X smile


Actually the server they provide is Xvesa, so it's more of a bios issue...

OG.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 10/26/12 01:43 PM

IIRC all X servers have a VESA fallback so in this case you should be able to use svga_s3 it has a VESA v1.02 compatible bios.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/26/12 02:48 PM

The reason Linux of that era had a bunch of chip-specific servers was because everyone's VESA BIOS was broken. Hence the widespread popularity of Scitech Display Doctor on DOS machines to get VESA-using demos running.
Posted By: SoltanGris42

Re: PC/XT/AT (inside) WIP topic - 10/26/12 07:02 PM

I tested out about 10 modern (but light) linux variants on some Pentium 1 & 2 laptops recently. Only a couple would get X up and running. I'll go through the discs again this weekend. Any that boot on my laptops, I'll try on the mess driver.

But if my Pentium 1 era video hardware doesn't have X working properly, the 486 Mess driver is probably worse.

Maybe some still work, though. IF VESA support was bad in the 486 era, did it really get better after that? I mean, at some point, companies started to only worry about 2D performance in Windows, right?

Also, are people running the at486/ct486 drivers? Or should I also try the 586 drivers, too?
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/26/12 09:02 PM

Damn Small Linux uses Xvesa also, (with Xfbdev as an option also), which works fine with svga_s3 at 640x480x64k.

What would be nice, is if Tiny Core gave some indication as to why it doesn't even attempt to copy X11 to the ramdisk...
Posted By: Zadduk

Re: PC/XT/AT (inside) WIP topic - 10/27/12 05:48 AM

Originally Posted By mahlemiut
What would be nice, is if Tiny Core gave some indication as to why it doesn't even attempt to copy X11 to the ramdisk...


Ensure that you actually are using TinyCore and not Core...

See: TinyCore Versions

TinyCore ships Xvesa, but Core has not graphical environment.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 10/27/12 08:37 AM

Originally Posted By mahlemiut
Damn Small Linux uses Xvesa also, (with Xfbdev as an option also), which works fine with svga_s3 at 640x480x64k.

What would be nice, is if Tiny Core gave some indication as to why it doesn't even attempt to copy X11 to the ramdisk...


Actually with tinycore I can't even manage to mount the cdrom after boot, so this may have something to do with that.

OG.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/27/12 10:07 AM

Originally Posted By Zadduk
Originally Posted By mahlemiut
What would be nice, is if Tiny Core gave some indication as to why it doesn't even attempt to copy X11 to the ramdisk...


Ensure that you actually are using TinyCore and not Core...

See: TinyCore Versions

TinyCore ships Xvesa, but Core has not graphical environment.

I was aware of that, but the same ISO boots to X11 in Virtualbox, so certainly it should.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/28/12 03:11 AM

Well, the mouse doesn't work because the Xserver programs the serial port for 2 stop bits even though most documentation I've found says it should be 1. I'll have to see later if Windows is unhappy with 2 stop bits from the mouse.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/28/12 03:13 AM

Assuming Windows programs it for 1 stop bit, why would it ever see 2? smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/28/12 03:15 AM

To work with X, the mouse has to send 2 stop bits. If Windows doesn't like that then it'll require some manual setting to get them both to work. I think it'll be okay though because a start bit is a high to low transition and a stop is low to high and those should never be confused.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/28/12 06:59 AM

Perhaps Xvesa tries to determine the mouse protocol, but picks the wrong one? There doesn't seem to be any easy way to force Xvesa to use any specific protocol.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/28/12 03:07 PM

Nope, in the source at http://cgit.freedesktop.org/xorg/xserver/tree/hw/kdrive/linux/mouse.c both ms and mouse systems protocols it explicitly sets CSTOPB which means two stop bits.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/28/12 06:59 PM

So how broken are DOS and Windows mouse drivers now that you've set it to two stop bits? smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/28/12 07:03 PM

Of course I tried it before it changed it. Actually, I tested with a real serial mouse too and it worked fine whether I set the port for 1 or 2 stop bits and that could only work if the mouse was sending 2.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 10/28/12 07:08 PM

Well, I found some Nvidia NV1 documentation in the form of Xfree86 source code! laugh

http://cvsweb.openbsd.mirror.frontiernet...256/drivers/nv/
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/28/12 08:23 PM

That doesn't do any of the 3D stuff though.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 10/28/12 08:25 PM

Anyway, if the mouse is working in X, where's my screenshot of Firefox showing this thread? ;-)
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/28/12 09:45 PM

Too busy playing Solitaire. smile

Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 10/29/12 02:39 AM

Originally Posted By Alegend45
Well, I found some Nvidia NV1 documentation in the form of Xfree86 source code! laugh

http://cvsweb.openbsd.mirror.frontiernet...256/drivers/nv/


Not to sound like Just Desserts, but being completely serious, welcome to eight+ years ago.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 10/29/12 09:46 PM

Here's where MO is coming from.

Oddly, there is no MOUSE.DLL in windows 3.1, only MOUSE.DRV.
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 10/29/12 11:57 PM

Looks to me like that area is probably re-used to store filenames, at slightly different locations. The "se.dll" is possibly a remnant from an earlier file load attempt.
Posted By: MASH

Re: PC/XT/AT (inside) WIP topic - 11/03/12 09:28 PM

Pyrotechnica only works without sblaster_16. You can start the game and fly, but it hangs if you press any control keys or mouse!

Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 11/04/12 01:47 PM

With recent MESS (Rev. 18841, at486 driver), Coherent finally installs and works smile







The default ATA driver seems to have some timing issues with the IDE HDD, you have to select "alternate" timing during installation. Also, it seems that Coherent doesn't support networking ;-)

If anyone wants to try it, it used to be available on ftp.mayn.de, but right now that server seems down, so I uploaded a copy here. I hope it's okay to post the disk images, if not I'm sure some moderator will take care of it ;-)

Edit: I see it is also available here: http://unixarchive.tliquest.net/Other/Coherent/

-Darkstar
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 11/04/12 02:32 PM

A System V version 7 clone from a company that hasn't existed since 1995? Moderator is taking no action ;-)
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 11/04/12 06:38 PM

Tried System V R4 2.1, but without luck:



(yeah, I'm probably the only one who can come up with ancient OS's like that wink )
Bootfloppies here

Funny thing though, when booting it, it briefly displays the VGA banner for a few seconds, at first I thought it did reset the PC. How/why would it do that?

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 11/04/12 07:15 PM

Re: the VGA banner, it's likely doing that to make sure the card is in a completely "factory" state. Modern OSes have to do something similar in the case of having more than 1 video card with a monitor attached (as opposed to SLI/Crossfire).
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 11/04/12 11:10 PM

Originally Posted By R. Belmont
Re: the VGA banner, it's likely doing that to make sure the card is in a completely "factory" state. Modern OSes have to do something similar in the case of having more than 1 video card with a monitor attached (as opposed to SLI/Crossfire).

Well, you would assume that the bootloader already gets a completely factory-set video card, since it's the first thing to run during boot...
Maybe they just wanted to show off wink
Posted By: Matty

Re: PC/XT/AT (inside) WIP topic - 11/04/12 11:31 PM

Originally Posted By Darkstar
Well, you would assume that the bootloader already gets a completely factory-set video card, since it's the first thing to run during boot...
Maybe they just wanted to show off wink

Not really - lots of cards display splash screens or messages, like SCSI controllers and NICs with boot ROMs. You never know what they've done before you get a hold of video.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 11/05/12 01:00 AM

Yeah, but we're talking plain old text-mode video modes here... there's no rocket science going on behind the scenes. And even then, a simple int 10h with the right parameters would be more than enough wink
Posted By: Matty

Re: PC/XT/AT (inside) WIP topic - 11/05/12 03:30 AM

Originally Posted By Darkstar
Yeah, but we're talking plain old text-mode video modes here... there's no rocket science going on behind the scenes. And even then, a simple int 10h with the right parameters would be more than enough wink

You haven't seen what some of the crazier SCSI cards did on running their BIOS roms :P
Posted By: Vas Crabb

Re: PC/XT/AT (inside) WIP topic - 11/05/12 01:25 PM

Hehe I had (or possibly still have in a box somewhere) a combo SCSI/IDE card for VLB that got the video card into some VGA mode for its splash screen.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 11/12/12 05:03 PM


&#12456;&#12531;&#12495;&#12531;&#12473;&#12488;&#12514;&#12540;&#12489; == Enhanced mode (board doesn't like UTF-8 apparently)

I had to poke the SCSI controller several times in funny places to make this work.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 11/12/12 05:09 PM

Nice!
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 11/12/12 06:25 PM

Carl: would you mind to check the i8259 bug that affects NEC PC-100?

In the BIOS POST, it tries to test the chip/irq, and it fails for whatever reason. Check also the ASM note I've hooked in the driver.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 11/12/12 11:19 PM

It looks like the pic is programmed in edge triggered mode but the IRQ lines are always high so no edges are arriving. There is one edge when the machine starts but since the pic is reset and that clears the latches, even that edge don't trigger an interrupt.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 11/13/12 12:39 AM

Ok, that's annoying since that I don't have documentation regarding how to 0 the irqs.

EDIT: Apparently if I just 0->1 when an irq occurs seems to work for the time being. But error 02 is even more annoying, because it tries to calculate the timing of the vblank.

Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 11/20/12 02:47 AM

I'm trying to figure out where the hell you guys got the documentation for the ATI Graphics Ultra. The VGADOC doesn't have some of the registers, and the SVGAlib doesn't even use them!
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 11/20/12 03:11 AM

Originally Posted By Alegend45
I'm trying to figure out where the hell you guys got the documentation for the ATI Graphics Ultra. The VGADOC doesn't have some of the registers, and the SVGAlib doesn't even use them!


http://pdos.csail.mit.edu/6.828/2012/readings/hardware/vgadoc/ATI.TXT -- ATI VGA Wonder series, and ATI Mach8 specific stuff that the 8514/A doesn't do.
http://pdos.csail.mit.edu/6.828/2012/readings/hardware/vgadoc/8514.TXT -- IBM 8514/A, which the Mach8 is backwards compatible with.

The ATI Graphics Ultra has both the VGA Wonder and Mach8 chipsets. (Although there is some confusion as to exactly which revision of the VGA Wonder is used, as the BIOS doesn't seem to match up with what is physically on the card, even though the BIOS is clearly compatible with the Graphics Ultra)
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 11/20/12 03:15 AM

Oh, derp, sorry. I was looking at the extended registers, and didn't realize that their indices are ANDed with 3Fh! It makes sense now!
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 11/21/12 10:12 PM

Wait, I've got an idea. Why don't we emulate the pipeline of the later x86 processors? That way, emulation can be a lot more accurate.

EDIT: Besides, it might fix the floppy problems when using the Pentium core.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 11/22/12 12:44 AM

It's not fun anymore. Really.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 11/22/12 12:52 AM

What's not fun anymore?
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 11/22/12 01:18 AM

Originally Posted By Alegend45
What's not fun anymore?


What he's saying is: Fuck off
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 11/22/12 12:20 PM

I was wondering is there any particular criteria for adding additional PC BIOS's to at.c?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 11/22/12 01:03 PM

The criteria is something like "we literally have probably a thousand of them and post-386 they're nearly all Award anyway" smile
Posted By: remax

Re: PC/XT/AT (inside) WIP topic - 12/03/12 02:23 PM

Originally Posted By MikeAbson
Since I can't edit my last post any more, just on Fast Tracker 2, it does work when selecting a mixing frequency of 8000 Hz. I was using 22050 Hz before and getting no sound.


Still true.

Sim City 2000 doesn't detect SB16 correctly. Choosing SB1 give sound though.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/03/12 08:51 PM


My earlier patch for the pcjr floppy was a bit of a bust but I think I've got it now.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 12/03/12 09:03 PM

Originally Posted By crazyc

My earlier patch for the pcjr floppy was a bit of a bust but I think I've got it now.


Very nice! smile

I hope we get any progress for the pcjx driver too.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/03/12 09:10 PM

Originally Posted By remax
Originally Posted By MikeAbson
Since I can't edit my last post any more, just on Fast Tracker 2, it does work when selecting a mixing frequency of 8000 Hz. I was using 22050 Hz before and getting no sound.


Still true.

Sim City 2000 doesn't detect SB16 correctly. Choosing SB1 give sound though.


Yes, same here. Doom stops loading when using SB for sound but not music? On the train so can't quite remember how accurate this is, but there is a problem when using the SB, but was ok before. It seemed the only thing I could get to work with the SB16 was the SB tester software and I think Rise of the Triad before further changes where made.
Posted By: remax

Re: PC/XT/AT (inside) WIP topic - 12/03/12 10:38 PM

By the way, in SC2000, using the at386 driver, it hangs when clicking on the icon that shows all the city of the neighborhood.

I had no hangs in at486 while playing it for hours though.

Boppin' has some weird echoes on SoundFX (using SB)

Biomenace has jerky scrolling. The readme talk about this possibility and suggest going in SVGA Compatibility mode, but that doesn't fix it. I wonder if this is really a Mess bug, or if it does it on a real computer.

EDIT : VGA card does this too. And you really don't want to try the EGA card, it's all broken.
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 12/04/12 12:49 AM

Originally Posted By remax
Biomenace has jerky scrolling. The readme talk about this possibility and suggest going in SVGA Compatibility mode, but that doesn't fix it. I wonder if this is really a Mess bug, or if it does it on a real computer.

EDIT : VGA card does this too. And you really don't want to try the EGA card, it's all broken.


This is a known issue. Alegend45 keeps making bad patches to try to fix the problem, but nothing valid yet.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/04/12 01:39 AM

I actually tried porting from DOSBox but that made the jittering worse.

EDIT: Works in DOSBox, though.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/04/12 02:45 AM

Someday, Alegend will figure out the difference between UINT8, UINT16, and UINT32.

But this isn't that day. Get back to topic before I have to nuke this entire thread, please.
Posted By: judge

Re: PC/XT/AT (inside) WIP topic - 12/04/12 07:14 PM

Yeah, the EGA card needs quite some more work. Very busy with work atm frown
Posted By: remax

Re: PC/XT/AT (inside) WIP topic - 12/05/12 01:56 PM

Trying to install Game Wizard 3.0 gives :

14:54:16.530: stderr[#2]: 0000000000228220: 0000000000D23067 (not found)
14:54:16.530: stderr[#2]: 00000000002286F0: 00000000017887BE (not found)
14:54:16.530: stderr[#2]: 00000000002287D0: 0000000000EAC33E (not found)
14:54:16.531: stderr[#2]: 0000000000228970: 0000000000EABF59 (not found)
14:54:16.531: stderr[#2]: 0000000000228A10: 000000000133D66C (not found)
14:54:16.531: stderr[#2]: 0000000000228BF0: 00000000013573EB (not found)
14:54:16.531: stderr[#2]: 000000000022F3D0: 000000000125DF37 (not found)
14:54:16.532: stderr[#2]: 000000000022F8B0: 00000000014EB65E (not found)
14:54:16.532: stderr[#2]: 000000000022FE10: 0000000000D25FF6 (not found)
14:54:16.533: stderr[#2]: 000000000022FE60: 000000000175F64C (not found)
14:54:16.533: stderr[#2]: 000000000022FF20: 00000000004013F0 (not found)
14:54:16.533: stderr[#2]: 000000000022FF50: 00000000004014F8 (not found)
14:54:16.533: stderr[#2]: 000000000022FF80: 0000000077A5652D (BaseThreadInitThunk+0x000d)
14:54:16.534: stderr[#2]: 000000000022FFD0: 0000000077B8C521 (RtlUserThreadStart+0x0021)
14:54:16.534: stderr[#2]: i386: Invalid REP/opcode 10 combination

If i use the old cracked version of the 2.0 i had, or the 3.0 shareware (the two from an archive of the installed folder i had years ago), it works fine, with only sometimes a few graphic corruption.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 12/05/12 03:44 PM

REP ADC? Sounds like a complicated way to do a multiplication...
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/05/12 04:23 PM

Assuming it's not the program counter going off into the weeds, yes smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/05/12 04:27 PM

Well, unless it's some weird copy protection that wants an int6 it's the pc->weeds.
Posted By: remax

Re: PC/XT/AT (inside) WIP topic - 12/05/12 04:35 PM

Protection is not impossible. The two different versions i have (3.0 Pro and 3.0A Pro) do the same thing. I'm going to test the 3.0 Shareware installer.

EDIT : Well, Shareware doesn't have an installer. It's given as a zip which must be deflated.
It works well though, as i've said earlier.

EDIT2 : What is annoying is that GW Pro has a protection to prevent copying the installed folder from one PC to another. So i cannot install it in Dosbox and then transfer it on Mess.
I could do that with my cracked 2.0 Pro version cause this protection was removed.

(Precision : the regular version
comes with a full installer that cross-crypts parts according to bios data and thus
only runs on the respective PC/dosbox installation.


http://vogons.zetafleet.com/viewtopic.php?t=26803&highlight= )

but that has nothing to do with the main problem : gw installer crash Mess wink
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/06/12 04:37 AM


Bit of progress.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 12/06/12 06:59 AM

Originally Posted By crazyc

Bit of progress.


Wow shocked
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/09/12 04:22 PM


Bit more progress. I haven't figured out fully how the kanji rom is laid out, the keyboard craps out quickly and a bug in the bios means, for now, debugger help is needed to boot.
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 12/09/12 05:00 PM

Nice progess. smile

I have 1-2 disk image(s) but not sure they are working on JX, can´t test.
Also not know the compatibility rate between the JX and JR.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/09/12 07:34 PM


This is better but I think the kanji rom is laid out wrong as the BIOS calculates the address of the glyph differently.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 12/15/12 01:17 PM

Just remembered I have one of the tiny Commodore PC-1 XTs ... I took some pictures, dumped the EPROM and found a (German) PDF with the DIP switch settings for the internal graphics card.

https://dl.dropbox.com/u/55419307/Commodore%20PC-1.rar

Robert
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 12/15/12 01:20 PM

Nice, can you please dump 2nd rom one with sign CHARACTOR ?

Micko
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 12/15/12 06:03 PM

D'oh! smile

I've updated the archive.
Any interest in dumping a Commodore PC-10 III as well?

Robert
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 12/15/12 07:55 PM

Thanks, and yes PC-10 III is interesting too
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 12/15/12 11:11 PM

I've prepared a "little" package with Commodore PC-10 stuff.

https://dl.dropbox.com/u/55419307/Commodore%20PC-10%20III.rar

This particular machine sports a 2 MB Bocaram XT memory expander card and a Longshine LCS 6210C MFM harddisk controller. The PC-10 has an integrated IDE-controller, but all specimens I've seen have either a MFM harddisk in place like this one or a MFM filecard with controller and disk on a rack mounted in one of the slots.

The archive contains the driver for the Bocaram card and a disk image called bocaram.img ... iirc I made a bootable disk that has the driver in config.sys with all the correct parameters.

Robert
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 12/16/12 08:08 AM

Thanks again. Can you please just check if EPROM size is fine, thing is that 27256 and 27512 are both in DIP 28, and here we have 32K block twice repeated in content, so it could be that both are 32K roms.

Please confirm if I am right about this.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 12/16/12 08:22 AM

This is irrelevant in this case, but for 28 pin chips, don't forget tc531000 which is a dip28 mask rom which holds 128k. Those need a wire mod (to supply vcc) to dump as a 32-pin 27c101 (with the top 4 pins of the socket empty except the wire from pin 32 to pin 30 to supply power to the chip)
I've dumped a few of them before.

LN
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 12/16/12 10:00 AM

I'm sorry I'll read that again smile

I've updated the archive with new dumps - both were 27C256 parts indeed. I had thought I'd leave the labels intact this time, read the smaller part with the 27C512's settings and then move to the correct setting if I'd see blocks of FF or 00 at the beginning or end.

Robert
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 12/16/12 10:41 AM

thanks for fixing and checking
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 12/16/12 11:13 PM

This is from a Sanyo MBC-16

The PC itself is long gone, but I kept the Mainboard and the graphics card, an ATI Graphics Solution SR

https://dl.dropbox.com/u/55419307/Sanyo%20MBC-16.rar

The PC looked like this:

http://www.plaga.de/index.php?id=115

here are the graphics card settings

http://artofhacking.com/th99/v/A-B/52891.htm

Robert
Posted By: Micko

Re: PC/XT/AT (inside) WIP topic - 12/17/12 08:37 AM

Very nice. Thanks. Brand machines are things we should add in into pc and at driver files. Those are much easier to track for what hardware they contain, and also contain greater documentation value.

For other contributors:
Generic machines are interesting as well if emulation of specific chipset is provided with them, otherwise we are not able to run them and if chipset is unknown we did not do much preserving them then
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/18/12 03:46 AM


Fixed the kanji rom so it works both in graphics and text mode. I still can't figure out where the vram is located though. It seem to be mostly the same as the pcjr but the BIOS memory test stomps on every byte of system ram implying it isn't shared.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 04:40 AM

Fixed the damn PEL shift bug, hopefully that Alegend doesn't moan about it anymore ...

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/27/12 05:00 AM

The first scene of Second Reality is still broken. It's broken *differently* now, but still broken.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 05:41 AM

That's because he did it wrong. I'm too tired to fix it now though, I'll wait till tomorrow.

If you must know, though, the pel shift in vga_vh_vga is supposed to be (vga.attribute.pel_shift & 7) >> 1, and for EGA, it's supposed to be vga.attribute.pel_shift & 7.

EDIT: Besides, my fix actually fixed that scene.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:03 AM

Wait.
(vga.attribute.pel_shift & 7) >> 1?
That means you completely lose the lowest bit.
That doesn't sound right...

LN
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 12/27/12 09:29 AM

Commander Keen 4 scrolling is also still busted. Bio Menace works now though. (Which is weird because they share basically the same engine.)
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 01:20 PM

Originally Posted By Lord Nightmare
Wait.
(vga.attribute.pel_shift & 7) >> 1?
That means you completely lose the lowest bit.
That doesn't sound right...

LN


That's only for 256 color modes, due to "how the VGA hardware creates 8-bit pixels" according to FreeVGA, and VGADOC backs me up on this, too, as well as the official IBM documentation.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/27/12 01:24 PM

It makes sense if you assume that pel shift was created for EGA and shifts in units of 4 bit pixels. Thus for 256 color VGA you'd ignore the low bit because shifting 8bpp in 4 bit units is nonsense.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 02:02 PM

Here: A fix of a fix:

http://pastebin.com/XMpy5qs6
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 02:10 PM

Originally Posted By Lord Nightmare
Wait.
(vga.attribute.pel_shift & 7) >> 1?
That means you completely lose the lowest bit.
That doesn't sound right...

LN


My PELshift test in DOSbox shows that bit 0 is discarded while in VGA mode.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 02:20 PM

Verified here, but you still have to shift right by 1.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 03:10 PM

Doesn't work with Second Reality (and doesn't make sense, too).
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/27/12 03:15 PM

Confirmed, Alegend's change doesn't fix SR.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 03:18 PM

DosBox does shift it right.

Code:
		case 0x13:	/* Horizontal PEL Panning Register */
			attr(horizontal_pel_panning)=val & 0xF;
			switch (vga.mode) {
			case M_TEXT:
				if (val > 7)
					vga.config.pel_panning=0;
				else if (vga.attr.mode_control&0x4) // 9-dot wide characters
					vga.config.pel_panning=(Bit8u)(val+1);
				else // 8-dot characters
					vga.config.pel_panning=(Bit8u)val;
				break;
			case M_VGA:
			case M_LIN8:
				vga.config.pel_panning=(val & 0x7)/2;
				break;
			case M_LIN16:
			default:
				vga.config.pel_panning=(val & 0x7);
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 03:35 PM

There's an additional problem:

I've written a basic pel shift tester program via Turbo C++, and it doesn't work on two different real HW machines (tested by Micko & LN). It does on DOSbox & our emulation.

http://mamedev.emulab.it/kale/fast/files/PELSHIFTtestV0.03.zip

It seems that it goes black screen at the MovePELshift() routine (uncommenting that out as a whole works fine, fwiw) ... ideas?

EDIT: Micko got it, I need to get the palette control back to the system after modifying the palette data (i.e. write bit 5 to 0x3c0). Groovy.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 04:28 PM

Originally Posted By crazyc
DosBox does shift it right.

Code:
		case 0x13:	/* Horizontal PEL Panning Register */
			attr(horizontal_pel_panning)=val & 0xF;
			switch (vga.mode) {
			case M_TEXT:
				if (val > 7)
					vga.config.pel_panning=0;
				else if (vga.attr.mode_control&0x4) // 9-dot wide characters
					vga.config.pel_panning=(Bit8u)(val+1);
				else // 8-dot characters
					vga.config.pel_panning=(Bit8u)val;
				break;
			case M_VGA:
			case M_LIN8:
				vga.config.pel_panning=(val & 0x7)/2;
				break;
			case M_LIN16:
			default:
				vga.config.pel_panning=(val & 0x7);
Proving my point. Besides, before Kale's update, that same difference would've fixed SR.

EDIT: I know this because it did.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 04:31 PM

Quote:
EDIT: Micko got it, I need to get the palette control back to the system after modifying the palette data (i.e. write bit 5 to 0x3c0). Groovy.
Cool. Anyway, if you want me to try it on my ISA VGA adapters, post a new binary.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 04:36 PM

Actually, keep the old version around, it's a good testcase for bit 5 of 0x3c0.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 04:59 PM

Originally Posted By crazyc
Quote:
EDIT: Micko got it, I need to get the palette control back to the system after modifying the palette data (i.e. write bit 5 to 0x3c0). Groovy.
Cool. Anyway, if you want me to try it on my ISA VGA adapters, post a new binary.


http://mamedev.emulab.it/kale/fast/files/PELSHIFTtestV0.05.zip

Need to clean a couple of opcodes, but oh well.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 05:53 PM

I just tried it on two adapters, an S3 805 and a generic VGA clone, and both gave the same results. Here's a video.

Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:04 PM

What the hell is going on with PEL shift over 8? Besides, unsupported values supposedly vary between clones.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:11 PM

A raw guess is that the internal state is busted in some way when fetching color data from the video RAM.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:15 PM

Well, emulating it might require a rewrite of the video drawing functions, and I'm not sure I'm ready for that.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:18 PM

Both adapters from different manufacturers did that same thing. I changed your .03 source to set bit 5 and write the address at the same time (i.e. write 0x33). Then when 1, 3 or 5 were written to the panning reg, the line was shifted and blue.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:27 PM

You mean 1,3,5 ORed with 8, right?
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:39 PM

Nope, 9, D, B, and F behaved just as in the video.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:47 PM

Ah, ok. so it's probably swapping the color entries in some way when bit 0 = 1.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:50 PM

are we dealing with 16-bit per pixel entries here? might cause it to shift / scroll by a single byte instead, that would throw the colour off.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:51 PM

8 bit per pixel, actually.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 06:53 PM

Naw, it's VGA mode 13h.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/27/12 07:16 PM

One explanation might be that it's shifting 4 bits. The line is palette entry 0x12. If you shift it 4 bits left then it's two bytes 0x01 and 0x20 which both are blue in the default mode 13h palette.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/27/12 07:47 PM

Quote:
Proving my point. Besides, before Kale's update, that same difference would've fixed SR.

EDIT: I know this because it did.


But it doesn't. Apparently you have no idea what SR is intended to look like: the BG is intended to scroll smoothly 1 pixel at a time and the foreground text is intended to hold still, not jitter around with epilepsy like your diff causes.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 07:53 PM

Uh... I mean it did before Kale's update.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 07:55 PM

Originally Posted By crazyc
One explanation might be that it's shifting 4 bits. The line is palette entry 0x12. If you shift it 4 bits left then it's two bytes 0x01 and 0x20 which both are blue in the default mode 13h palette.


That actually makes a lot of sense. It makes even more sense when you see that in the video, the line doubles in size.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/27/12 08:28 PM

Originally Posted By crazyc
One explanation might be that it's shifting 4 bits. The line is palette entry 0x12. If you shift it 4 bits left then it's two bytes 0x01 and 0x20 which both are blue in the default mode 13h palette.


Yes, thought the same while offline. I'll write up a new test tomorrow, testing the feature.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 12/27/12 10:07 PM

Originally Posted By Alegend45
Originally Posted By crazyc
DosBox does shift it right.
[/code]
Proving my point. Besides, before Kale's update, that same difference would've fixed SR.

EDIT: I know this because it did.


DosBox is not a valid reference point, unfortunately. As the 0x3c0 bit 5 thing shows, even DosBox has bugs.

LN
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 10:22 PM

Maybe, but VGADOC, and the official IBM documentation back me up.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 12/27/12 10:36 PM

Documentation is meaningless if it doesn't match hardware. Tests > Docs, always.

LN
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 10:40 PM

It does appear to match hardware according to crazyc's video, except for unsupported values. The supported ones work fine, though.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 10:45 PM

Originally Posted By Kale
Originally Posted By crazyc
One explanation might be that it's shifting 4 bits. The line is palette entry 0x12. If you shift it 4 bits left then it's two bytes 0x01 and 0x20 which both are blue in the default mode 13h palette.


Yes, thought the same while offline. I'll write up a new test tomorrow, testing the feature.


A good test would be to change the palette value written from 0x12 to 0x24. Then, the PEL shift results in wildly different colors.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 12/27/12 10:47 PM

I'd say it was pretty certain what has been suggested, it's basically the same thing I said but applied to 8-bit / 4-bit instead of 16-bit/8-bit.

It's a 4-bit shift register, it shifts multiples of 4-bits regardless of screen mode, probably because it has it's roots in 4-bit modes of some kind.

Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 11:02 PM

I'm about to test, and when I do, I'm going to put up the video as an edit. I'm testing it on a netbook of all things.

EDIT: Correction, a laptop



EDIT 2: So, in other words, our hypothesis was correct all the way.
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 12/27/12 11:46 PM

That behavior is very different from the behavior i see on the ps/2 model 70 here (which is true 'authentic' ibm vga)

What i see (with test version 0.05) is for 0,1,2,3,4,5,6,7 the line is centered for 0,1, moves one whole pixel for 2 (3 is same as 2), another pixel for 4,(5 is same as 4), and another for 6,(7 is same as 6). The background behind the numbers is always black for these.

8,9,a,b,c,d,e,f all produce a double-wide blue line of two colors which doesn't move at all, and the leftmost column of the screen displays scrambled green junk. The background behind the numbers is always blue for these.

Hence, the video card on your laptop actually is implementing pelshift differently from the official IBM vga, it seems!

I took a video as well, I'll see if I can post it.
Edit: https://www.youtube.com/watch?v=RdI_BWgy6Dk

LN
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/27/12 11:48 PM

Well, mine's an nVidia GeForce Go 6100, a chip that's apparently so bad that nVidia's website does not acknowledge its existence.

EDIT: Or if it does, it's listed as an nForce chipset. Weird.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/28/12 12:16 AM

Go6100 is integrated into the nForce northbridge, that isn't *that* unusual smile
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/28/12 02:06 AM

I was just wondering, is there a regression as far as the joystick is concerned? I was trying to load Cricket but the game wants me to calibrate the joystick again even though I've got it disabled.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/28/12 02:08 AM

It might just assume that you have a joystick plugged in.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/28/12 02:12 AM

The game used to work though. There was an issue a while back where the at driver always thought you had a joystick connected even though it was disabled, I believe it was Kale that produced a fix, which worked, but the same problem has arisen again.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/28/12 02:24 AM

Originally Posted By Kale
Well, io bus must return 0xff where stuff isn't connected, going to fix that in at.c


This was the problem last time, seems it's happening again. I'll need to test a few more games to be sure, but Cricket will not go any further unless I calibrate the joystick at the moment, and even if I enabled it, I still can't calibrate it frown
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/29/12 09:25 AM

FIFA 98: Road To World Cup

Works only on the AT586 driver because the game requires a Pentium processor. Runs around 15% under Windows 95. I had to copy over the install folder from XP as there are still some issues with the CD-ROM in MESS. For some reason the game crashes MESS with a Sound Card installed on the AT586, no such issues under the AT486 driver however, but the game crashes when it tries to load the menu because the game is running on a 486 and not a Pentium.



















Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/29/12 02:47 PM

http://mamedev.emulab.it/kale/fast/files/PELSHIFTtestV0.06.zip

Does an extra item test after the first, it should color cycle in some way, vertical stripes with color entries 0x24 -> 0x42 -> 0xff. Notice that the black screen time between tests #1 and #2 takes a while.
Posted By: Dullaron

Re: PC/XT/AT (inside) WIP topic - 12/29/12 04:06 PM

Wow that have very good graphics.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/29/12 06:01 PM

Originally Posted By Kale
Does an extra item test after the first, it should color cycle in some way, vertical stripes with color entries 0x24 -> 0x42 -> 0xff. Notice that the black screen time between tests #1 and #2 takes a while.
Sure does. This is with the S3 805 again.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/29/12 06:40 PM

The "extra" line is black, right?

If yes, video RAM shifts by 4 when bit 0 is on.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/29/12 07:01 PM

Extra line? You mean the line between the blue areas?
Edit: link huge pics
http://i.imgur.com/HXGCc.jpg

http://i.imgur.com/tFKbQ.jpg
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 12/29/12 07:31 PM

Yes, those ones.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 12/29/12 07:38 PM

When i run the PELSHIFT test on a TSENG Labs ET4000 W32P the second test does not shift. the first test does shift but doesn't change colors.

I tried the PELSHIFT test on dosbox and it behaves just like my ET4000. There is one difference dosbox shifts right when it hits 8 ET4000 shifts left.

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/30/12 05:04 AM

Quake 2:

Up and running on the AT486 driver in Windows 95. Runs all the way up to 640x480. Again I've copied the install folder over to a secondary hard drive and ran it directly from there. The screenshot taken was with Print Screen because every time I pressed the Scroll Lock key the Quake 2 menu would appear over the attract mode mad The game looks great with full sound, but naturally runs very slowly. Excuse the scanlines on the image.

Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/30/12 05:35 AM

Wow, uh... I never really expected a game from the end of 1997 to run in MESS.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/30/12 06:06 AM

I'm a bit surprised myself actually. Goes to show how well developers supported as low as 256 colours back in the day. A few others I've tried, but without success:

Interstate '76 PC Demo: Black screen after the loading screen.

3D Mark 99 Max: Needs a 3D accelerator card, (I was thinking it supported software rendering back then, but apparently not).

Max Payne PC Demo: Tells me I don't have a DirectX 8.0 compliant video card / does not support software rendering. (I was thinking it supported software rendering).
Posted By: Lord Nightmare

Re: PC/XT/AT (inside) WIP topic - 12/30/12 08:05 AM

Originally Posted By Kale
http://mamedev.emulab.it/kale/fast/files/PELSHIFTtestV0.06.zip

Does an extra item test after the first, it should color cycle in some way, vertical stripes with color entries 0x24 -> 0x42 -> 0xff. Notice that the black screen time between tests #1 and #2 takes a while.


V0.06 Running on a ps/2 model 70 (specifically an 8570-A21):


LN
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 12/30/12 01:45 PM

PELSHIFT test V0.06 run on a TSENG Labs ET4000 W32P
http://www.youtube.com/watch?v=x7QX6TbZHnE
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 12/30/12 02:49 PM

PELSHIFT test V0.06 run on a Nvidia Geforce 6600
http://www.youtube.com/watch?v=vW78Jn768Iw

Seems to match the behavior of Lord Nightmare's PS/2 VGA.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/30/12 04:27 PM

So, it looks like this is a standard behavior, just one that doesn't really work on some clones.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/30/12 04:51 PM

But only if you write 0x30 + the address to the index before writing the data. Otherwise 1,3,5,7 behave exactly like 0,2,4,6.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 12/30/12 04:56 PM

Well, that makes implementation quite tricky.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/30/12 11:16 PM

Originally Posted By Dullaron
Wow that have very good graphics.


The graphics were second to none back then, gameplay was enjoyable too. Those screenshots are only in 256 colours (you can notice some colour banding there), in 16-bit colour it looks much better obviously (I cannot get Windows 95 to display more than 256 colours at at this time, MESS limitation I believe), and of course on a 3DFX or Direct3D hardware accelerated compatible video card it looked even better smile
Posted By: SoltanGris42

Re: PC/XT/AT (inside) WIP topic - 12/30/12 11:55 PM

Originally Posted By MikeAbson
Originally Posted By Dullaron
Wow that have very good graphics.


The graphics were second to none back then, gameplay was enjoyable too. Those screenshots are only in 256 colours (you can notice some colour banding there), in 16-bit colour it looks much better obviously (I cannot get Windows 95 to display more than 256 colours at at this time, MESS limitation I believe), and of course on a 3DFX or Direct3D hardware accelerated compatible video card it looked even better smile


Definitely. I suppose we'll probably end up with the good old voodoo 1 for our first 3d accelerator in MESS when we get to that point some day. That will be pretty neat to see whenever it happens. I hope we eventually get other stuff too. I'd like to see vQuake on an emulated Vérité V1000!

I just saw the case for my Unreal disc in a box a few days ago. I might see how close that is to running in MESS if I can get a HD image set up with windows. The software renderer in Unreal was very pretty.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/31/12 12:14 AM

Originally Posted By SoltanGris42
Originally Posted By MikeAbson
Originally Posted By Dullaron
Wow that have very good graphics.


The graphics were second to none back then, gameplay was enjoyable too. Those screenshots are only in 256 colours (you can notice some colour banding there), in 16-bit colour it looks much better obviously (I cannot get Windows 95 to display more than 256 colours at at this time, MESS limitation I believe), and of course on a 3DFX or Direct3D hardware accelerated compatible video card it looked even better smile


Definitely. I suppose we'll probably end up with the good old voodoo 1 for our first 3d accelerator in MESS when we get to that point some day. That will be pretty neat to see whenever it happens. I hope we eventually get other stuff too. I'd like to see vQuake on an emulated Vérité V1000!

I just saw the case for my Unreal disc in a box a few days ago. I might see how close that is to running in MESS if I can get a HD image set up with windows. The software renderer in Unreal was very pretty.


I've been trying to get Unreal 1 up and running myself actually, so far without success though. I first tried on the 486 driver, but the game couldn't initialize the engine and would crash with a GPF error, turns out it needs a Pentium smile On the Pentium driver (I'm using the original Unreal 1, not Unreal Gold, although I have both and I may end up trying to get this up and running instead), the log file screen (first thing that comes up when I attempt to start the game) hanged at a certain point and stopped responding. Further attempts after this have caused MESS to completely crash altogether. I've got an idea, but I can't try anything until I get home from work tonight. Hopefully you'll have some luck, the game looked fantastic, and still does actually!

Edit: To get the Voodoo up and running, I think only the AT586 driver supports the PCI interface. While there were 486 boards with PCI slots, I'm not sure MESS incorporates these or the BIOS's support them, I'd have to have a look.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 12/31/12 12:47 AM

given that the Windows ME installer just hangs on AT586 last time I tried (had to install it on 486 ignoring the HW checks) I wouldn't count on anything, actually I'm surprised you can do as much as you can...

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 12/31/12 12:51 AM

I'm surprised also, but at the same time, unless someone just tests the hell out of it, no one knows what's possible wink I think you are probably right though, Unreal is pushing the boundaries, kinda like it did back in 1998 as well ha.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 12/31/12 01:42 AM


Seems the mc1502 can boot msdos. You just need to type @ at the debug prompt to get it to boot the floppy.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 12/31/12 01:54 AM

Very nice. And I'm really happy to see all the Tandy clones booting again as well.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/01/13 01:43 AM

Regarding the PEL shift extravaganza, I'd like to point out that DOSBox ignores pretty much all of the behavior that the test program shows but runs games and demos much better than we do. Let's not get too buried in details when Second Reality still goes chunk-chunk-chunk-chunk.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/01/13 01:48 AM

Hexen II PC Demo:

Running at 640x480x256 on Windows 95. Game uses a modified Quake 1 engine.





Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 01/01/13 03:50 AM

I'm trying to figure out untested edge-cases for the next revision of my PC and PC/XT doc. First, though, I need to know what they are, please.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/01/13 05:40 PM

Originally Posted By R. Belmont
Regarding the PEL shift extravaganza, I'd like to point out that DOSBox ignores pretty much all of the behavior that the test program shows but runs games and demos much better than we do. Let's not get too buried in details when Second Reality still goes chunk-chunk-chunk-chunk.


Agreed. I think it's because video address latching timing isn't perfect or the video update function isn't called exactly at vblank (and on VGA that's very fussy).
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/03/13 12:26 AM



This is how Number Nine S3 330 shows up in 16-bit true color (except that I've fixed the mouse pointer color after this snap). No idea about why everything seems drawn with a bad color ...
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/03/13 12:41 AM

well the icons are good, the text and taskbar (and start menu outline) seem to be drawing at the wrong bbp hence being half-width and broken colours.

I'd guess the behavior of one of the other accelerated functions should differ in 15/16bpp mode and is currently operating in 8bpp mode.
Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/03/13 12:52 AM

8bpp mode is different too ...

Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/03/13 02:11 AM

At least for me anyway, in certain versions of Windows, will yield different results as far as the display goes, for example, I cannot get 256 colors in Windows 95A when setting the acceleration slider all the way to the right, however if I set the slider one notch from the left, the display works fine. This is using the S3 330 driver. I believe Barry was able to get 256 colours with the slider all the way to the right without problems in Windows 95B. In Windows 95C, I can only run in VGA mode no matter what I try. Obviously we don't all have different versions of Windows available, but changing the acceleration / using a different version of Windows might get 16-bit colour mode looking a bit better, or worse! ha.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/03/13 09:31 AM

I've been doing some testing with 16 bit colour here, and apparently the screenshot below is the Windows 95A desktop running at 640x480 in 16 million colours after setting the hardware acceleration to none, however I'm actually unconvinced. For instance, I was expecting the IE logo to look at more shaper with the lighter shades of blue, but it appears the same as it does in 256 colours. Same with the Cloud wallpaper (unless that was just a 256 colour bmp anyway). Perhaps the colour depth is lower by Windows when selecting no hardware acceleration even when running in 16 bit? I'll have to do some more testing to be sure Windows is really running in 16 bit.



Kale: In that above screenshot (8bpp) I have the same problem with setting hardware acceleration to either full or one notch below full in 256 colours. Previously when I did this, all I got a horrible mess, so there is a definite improvement here.

Edit: Just one more thing, in that first screenshot with the inside of the PC as the background, that's more or less the same problem I had when hardware acceleration was set to anything other than none in 16 bit colour mode.
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/03/13 01:59 PM

The icons in Win95 are still 16 colors (or 256?) ... IIRC to get high color icons you have to install either the plus pack or some power toy ... I don't really remember that well, but I do remember the low color icons smile
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 01/03/13 02:22 PM

yeah, even that 'inside PC' background is part of a the plus pack IIRC.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/03/13 02:41 PM

Yeah, stock icons were 16 color, Plus gave you 256 color.

Also, I'm pretty sure that "inside PC" background looked a lot better on a real 15/16bpp display than it does in Kale's screenshot.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/04/13 12:14 AM

I was thinking the motherboard background should also have looked better in 16-bit, but the icons are 16-bit (I think it's Windows 98 that Kale is using, and they'll look different in 256 colours).

I know that Windows 98 has icons that change depending on the colour depth, and I was thinking Windows 95 did the same thing, but apparently not. I'm able to confirm that when in 16-bit colour mode with a corrupted desktop, games still appear normally (at least so far from what I've tried). I should give FIFA 98 another go, that's supports 16-bit.

Posted By: Kale

Re: PC/XT/AT (inside) WIP topic - 01/04/13 12:23 AM

Except I'm using your Win 95A CHD you gave me several months ago.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/04/13 02:09 AM

I see what you mean now, I had Plus installed then and it's changed the icons.
Posted By: rfka01

Re: PC/XT/AT (inside) WIP topic - 01/05/13 11:56 PM

A few more dumps ...

* Atari PC-3 XT compatible ... unfortunately only the mainboard remains of this nice machine.

https://dl.dropbox.com/u/55419307/Atari%20PC3.rar

* WD 1002A-WX1 8 bit ISA MFM HD Controller, is mounted in a "File Card" cage.

https://dl.dropbox.com/u/55419307/WD1002A-WX1.rar

* CI-5050 Support Millennium and beyond, a 8 bit ISA card that contains a BIOS workaround and RTC for Mainboards that were affected by the Y2K bug.

https://dl.dropbox.com/u/55419307/CI-5050%20Support%20Millennium%20and%20beyond.rar

Robert
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/12/13 05:23 AM

what setup are people using to get the S3 working in win95. i've tried both the S3 trio64 and number 9 vision 330 drivers and neither seem to work.



Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/12/13 05:44 AM

From what I've tested, Windows 95A works for me. I haven't tried Windows 95B yet, and Windows 95C won't detect any display driver, even if I try to force it like you have. Others may have had more luck than me though, but Windows 95A is the go for sure.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/12/13 07:07 AM

Thanks i'll have to give that a try. If i remember right 95b was when they added USB support to the kernel.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/12/13 07:22 AM

Has anyone figured out what is causing MESS to crash when you run the hardware detection in Windows 95 and up.

Quote:
mess at486 -isa1 svga_s3 -ramsize 15m -hard1 roms\at486.chd -w

-----------------------------------------------------
Exception at EIP=7C90100B (not found): ACCESS VIOLATION
While attempting to read memory at 00000014
-----------------------------------------------------
EAX=00000000 EBX=05331AC8 ECX=7FFDF000 EDX=00000000
ESI=00265300 EDI=0532AB48 EBP=00000000 ESP=0023BF1C
-----------------------------------------------------
Stack crawl:
00000000: 7C90100B (RtlEnterCriticalSection+0x000b)


i did a back trace in case its helpfull:

Quote:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2356.0xe84]
0x7c90100b in ntdll!RtlEnumerateGenericTableLikeADirectory ()
from C:\WINDOWS\system32\ntdll.dll

(gdb) bt
#0 0x7c90100b in ntdll!RtlEnumerateGenericTableLikeADirectory ()
from C:\WINDOWS\system32\ntdll.dll
#1 0x01a151ea in osd_lock_acquire ()
#2 0x015dd5da in resource_pool::remove ()
#3 0x0173b394 in render_texture::release ()
#4 0x01742324 in render_manager::texture_free ()
#5 0x0182ea05 in ~render_font ()
#6 0x0182eb9f in ~render_font ()
#7 0x01e60c4b in ~resource_pool_object ()
#8 0x01e60b73 in ~resource_pool_object ()
#9 0x015dd68d in resource_pool::remove ()
#10 0x015dd7ec in resource_pool::clear ()
#11 0x015dd290 in ~resource_pool ()
#12 0x016a1d71 in ~running_machine ()
#13 0x015d1f6c in mame_execute ()
#14 0x017edcfe in cli_frontend::execute ()
#15 0x01025a71 in utf8_main ()
#16 0x01a12c76 in wmain ()
#17 0x0040140b in __tmainCRTStartup ()
at /home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:310
#18 0x7c81776f in RegisterWaitForInputIdle ()
from C:\WINDOWS\system32\kernel32.dll
#19 0x00000000 in ?? ()
Posted By: Just Desserts

Re: PC/XT/AT (inside) WIP topic - 01/12/13 08:13 AM

Originally Posted By Malice
Has anyone figured out what is causing MESS to crash when you run the hardware detection in Windows 95 and up.

Quote:
mess at486 -isa1 svga_s3 -ramsize 15m -hard1 roms\at486.chd -w

-----------------------------------------------------
Exception at EIP=7C90100B (not found): ACCESS VIOLATION
While attempting to read memory at 00000014
-----------------------------------------------------
EAX=00000000 EBX=05331AC8 ECX=7FFDF000 EDX=00000000
ESI=00265300 EDI=0532AB48 EBP=00000000 ESP=0023BF1C
-----------------------------------------------------
Stack crawl:
00000000: 7C90100B (RtlEnterCriticalSection+0x000b)


i did a back trace in case its helpfull:

Quote:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2356.0xe84]
0x7c90100b in ntdll!RtlEnumerateGenericTableLikeADirectory ()
from C:\WINDOWS\system32\ntdll.dll

(gdb) bt
#0 0x7c90100b in ntdll!RtlEnumerateGenericTableLikeADirectory ()
from C:\WINDOWS\system32\ntdll.dll
#1 0x01a151ea in osd_lock_acquire ()
#2 0x015dd5da in resource_pool::remove ()
#3 0x0173b394 in render_texture::release ()
#4 0x01742324 in render_manager::texture_free ()
#5 0x0182ea05 in ~render_font ()
#6 0x0182eb9f in ~render_font ()
#7 0x01e60c4b in ~resource_pool_object ()
#8 0x01e60b73 in ~resource_pool_object ()
#9 0x015dd68d in resource_pool::remove ()
#10 0x015dd7ec in resource_pool::clear ()
#11 0x015dd290 in ~resource_pool ()
#12 0x016a1d71 in ~running_machine ()
#13 0x015d1f6c in mame_execute ()
#14 0x017edcfe in cli_frontend::execute ()
#15 0x01025a71 in utf8_main ()
#16 0x01a12c76 in wmain ()
#17 0x0040140b in __tmainCRTStartup ()
at /home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:310
#18 0x7c81776f in RegisterWaitForInputIdle ()
from C:\WINDOWS\system32\kernel32.dll
#19 0x00000000 in ?? ()


No, that's a more or less bunk stack trace, it wouldn't be that crashing the system. Sounds like memory corruption. Humor me, though - is this with a SYMBOLS=1 build? The presence of anything at all indicates yes, but if so, what sort of build? 32-bit, 64-bit? Weird stuff like MESS UI?
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/12/13 09:04 AM

Originally Posted By Just Desserts

No, that's a more or less bunk stack trace, it wouldn't be that crashing the system. Sounds like memory corruption. Humor me, though - is this with a SYMBOLS=1 build? The presence of anything at all indicates yes, but if so, what sort of build? 32-bit, 64-bit? Weird stuff like MESS UI?


MESS v0.148 32bit build with SYMBOLS=1 SYMLEVEL=1

It crashes with a stock compile also that's why i built with SYMBOLS=1 and tried a back trace to see if something obvious would show up. As far as i read here other people were having MESS crash also on the at486 driver running win95 and doing hardware detection.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/12/13 09:58 AM

From what I understand the problem is related to IRQ's, but it's a known issue. You will need to add all of the devices manually at this stage.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/12/13 04:14 PM

Win9x hardware detection would kill some real hardware machines back in the day too, which is why it's able to recover if you restart when it dies.

Possibly of interest to the PC gang and/or OG: XENIX 386, the first 386 protected mode OS released, is floating around but the Teledisk images show a very strange format. (Also interesting: it calls IDE "wd1010" and has some unique timing requirements for it).

http://www.os2museum.com/wp/?p=1621
Posted By: Darkstar

Re: PC/XT/AT (inside) WIP topic - 01/12/13 09:49 PM

I have a few different Xenix 386 versions (also 286 and 8086), if you want to look at them, I uploaded them here:

https://www.dropbox.com/s/1kqapgicqjkwta7/xenix386.zip

Not all of them are TD0 images, some are raw/uncompressed (and I think I already tried them once on MESS but that was some time ago and they wouldn't get far)

They are 2.2.2c, 2.3.1, 2.3.4 and "Xenix 386MC 2.3.4q" (whatever the MQ stands for)

If you also want the 8086 and 296 versions, I can upload these as well

-Darkstar
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/13/13 12:44 AM

What command switches do you use to get MESS to recognize teledisk images?

I've got a few self booting PC games in teledisk format that i would like to try.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/13/13 01:03 AM

Looks like teledisk format isn't back yet after the floppy rewrite. You can run "mess at486 -listmedia" to see what formats are accepted.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/13/13 01:56 AM

Alternatively, there is a program called TD02IMD which apparently converts teledisk images to *.IMD images (supported by MESS). TD02IMD can be found inside a program called ImageDisk via the link below. I've never used it, so I'm unsure of how it works or how accurate it is.

ImageDisk: http://www.classiccmp.org/dunfield/img/index.htm
ReadMe File: http://www.classiccmp.org/dunfield/img54306/readme.txt
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 01/13/13 03:44 AM

Originally Posted By MikeAbson
I've never used it, so I'm unsure of how it works or how accurate it is.


It works well for me.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 01/13/13 05:44 AM

Originally Posted By Darkstar
and "Xenix 386MC 2.3.4q" (whatever the MQ stands for)
-Darkstar


MC stands for "These disks are for the MicroChannel bios"
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/13/13 07:57 AM

Originally Posted By MikeAbson
Alternatively, there is a program called TD02IMD which apparently converts teledisk images to *.IMD images (supported by MESS). TD02IMD can be found inside a program called ImageDisk via the link below. I've never used it, so I'm unsure of how it works or how accurate it is.

ImageDisk: http://www.classiccmp.org/dunfield/img/index.htm
ReadMe File: http://www.classiccmp.org/dunfield/img54306/readme.txt


I gave TD02IMD a try it doesn't like copy protected disks. It can't deal with bad sectors or different size sectors.
Even images it could convert MESS didn't recognize i get the following error.

Device 3.5" high density floppy drive load failed: Unable to identify the image format

The images were of 360k 5 1/4 floppies. do you have to specify the density and disk size some how?
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/13/13 08:04 AM

no. it's the floppy drive in MESS to expect the 3.5" disks...
I don't see any 5.25" floppy drive available among the slot options (output of -lslot command), so I guess drivers do not support the 5 1/4 disks currently
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 01/13/13 08:11 AM

etabeta78 sort of beat me to it, but 5 1/4 drives are supported, (at least listed as a device anyway). What you'll need to do is this:

- Once your in the AT driver, press Scroll Lock then TAB to bring up the menu.

- Select Slot Devices and you'll notice at the top you'll see 35hd listed twice, these are your 3.5" floppy drives, change one these to 525hd, then scroll to the bottom and press Reset.

- After the driver has rebooted, go in to the BIOS and change whichever drive you selected as 525hd in the Slot Devices menu to the 5 1'4" floppy drive, then save and exit

- Now you have a 5 1/4 floppy drive in MESS smile
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 01/13/13 08:22 AM

darn! I had missed that the ISA fdcsmc device supports both formats and I thought a different floppy device was needed!

For the record, yesterday I had looked for this option for a while (because I was sure I had used it around 0.146), before giving up, so many thanks for the correction! I can now play a bit more with some disks I had laugh
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/13/13 08:50 AM

Even with Mike's suggestions it won't accept the images i can set the slot to 5 1/4 HD just fine and reset. I thought maybe it doesn't like 360k images so i made a 1.2M image it didn't like it either.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 01/13/13 01:53 PM

Originally Posted By R. Belmont
Looks like teledisk format isn't back yet after the floppy rewrite. You can run "mess at486 -listmedia" to see what formats are accepted.


I have it here almost done, the main missing part is the global compression. I'm not happy with the code that's currently in there because it is pretty much ununderstandable :-)

OG.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/13/13 04:25 PM

Eagerly awaiting you changes OG. shocked

One of the games i have on original disk is Commando it's copy protected and self booting. Teledisk makes working copies so it's probably a good test when your codes done.

Here's a video on real HW.
http://www.youtube.com/watch?v=8U66rVg_-Sw

Regarding your mention of global compression does that also cover teledisk's normal compression. Which seems to just skip storing empty sectors in the tdo image.
Posted By: Olivier Galibert

Re: PC/XT/AT (inside) WIP topic - 01/13/13 04:28 PM

Originally Posted By Malice
Regarding your mention of global compression does that also cover teledisk's normal compression. Which seems to just skip storing empty sectors in the tdo image.


I'm talking about the global LZSS/Huffman that is active globally when the first two characters are "td" (instead of "TD"). Specifically the adaptative huffman tree is a pain in the ass. The compression at the sector level is trivial.

OG.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/13/13 04:38 PM

Ok in that case it's a good thing i used normal compression when making my images. Good luck on the LZSS/Huffman compression.
Posted By: Curt Coder

Re: PC/XT/AT (inside) WIP topic - 01/15/13 02:13 PM

Originally Posted By Malice
I gave TD02IMD a try it doesn't like copy protected disks. It can't deal with bad sectors or different size sectors.
Even images it could convert MESS didn't recognize i get the following error.


TD02IMD generated IMD images don't work in MESS right now because they have a nonstandard header, which the IMD format code doesn't recognize.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/21/13 10:10 AM

DESQView/X v2.0





Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/21/13 02:11 PM

I found a way to get Windows 2000 to go farther but MESS crashes with the following error:

0023C128: 00E38658 (not found)
502F9000: 012EAA8C (not found)
i386: load_far_pointer16 NYI
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/21/13 02:59 PM

Don't know why it says "not yet implemented" when that's an invalid opcode. Unless it's looking for a int6, it's jumped into the weeds.
Posted By: Firewave

Re: PC/XT/AT (inside) WIP topic - 01/21/13 03:44 PM

I think most of the unimplemented fatalerrors we see with i386 based systems are actually bad opcodes, because something went wrong earlier in the emulation.

Update: I think a good starting point would be looking at the sets in MESS, that show such errors since they are reproducible and happen quite early in the emulation.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 01/21/13 05:15 PM

Sure, that's what I meant by "jumped into the weeds". I think some of the invalid opcode fatal errors should be replaced by logerrors with the curpc (and an int 6 of course). Sometimes, albeit rarely, invalid opcode faults are triggered intentionally like windows 3.1 and ARPL in v86 mode.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/21/13 07:45 PM

While you guy's are figuring out what to do about the error i Thought id try Windows XP's Recovery Console.

Never seen this message before. sick


Needs a Pentium cpu and it's happy


Well it's loading and it's been waiting saying please wait for 20min think i'll let it sit for awhile.


If it starts up i think i'll try Windows PE v1.5 next since it can run on 64MB of ram.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 01/21/13 10:02 PM

Holy shit. The latest Windows OS I would even want to run on my craptop is Windows XP. MESS HAS COME SO FAR! :')
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/22/13 04:42 AM

It just sits there looping through the same code. could some one refresh my memory what was the command in the debugger to change the PC register or any other for that matter?
Posted By: Robbbert

Re: PC/XT/AT (inside) WIP topic - 01/22/13 04:47 AM

pc=blah
ax=blah
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/22/13 04:56 AM

Thanks.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/22/13 05:27 AM

Thought the Windows 2000 Recovery Console might get farther than Windows 2000 setup but it crashes with the same error.



0023C128: 00E38658 (not found)
502F9000: 012EAA8C (not found)
i386: load_far_pointer16 NYI
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/22/13 05:45 AM

I tried Windows PE v1.5 Based on Windows XP SP2 and it crashed with the same error as Windows 2000.



0023C128: 00E38658 (not found)
502F9000: 012EAA8C (not found)
i386: load_far_pointer16 NYI
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/22/13 08:15 AM

In case anyone is wondering the reason for testing windows 2000 and XP recovery environment, or Windows PE. They are a minimal way to test the Windows kernel and HD controller drivers in MESS until LBA support is done. For instance win2k's recovery environment CHD is 6.8MB XP's is 9.3MB. Windows PE comes in at 142MB.
Posted By: LoganB

Re: PC/XT/AT (inside) WIP topic - 01/22/13 08:36 AM

On a similar note, Puppy Linux 5.4 boots with this error:

EDIT: Sorry, Puppy Linux 5.4 requires a PAE capable processor.
Posted By: Firewave

Re: PC/XT/AT (inside) WIP topic - 01/22/13 08:48 AM

Isn't Puppy Linux i586 or i686 by default?

Lucid Puppy is i686.
Posted By: LoganB

Re: PC/XT/AT (inside) WIP topic - 01/22/13 08:55 AM

Originally Posted By Firewave
Isn't Puppy Linux i586 or i686 by default?

Lucid Puppy is i686.

After a quick Google, you are indeed correct. Sorry, I'll try Retro-Precise Puppy tomorrow, as it requires a non-PAE kernal.
Posted By: LoganB

Re: PC/XT/AT (inside) WIP topic - 01/23/13 05:20 AM

And here it is. The drivers it loads don't seem to be compatible with MESS.

Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 01/23/13 04:44 PM

The latest version of Memtest v4.2 causes a bios restart. But v2.0 seems to work fine I'm rather impressed it makes it through a full pass.



It does seem to have one problem MESS seems to hang when you press ESC to reboot.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 01/26/13 04:45 PM

It may be because of ACPI.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 01/26/13 04:48 PM

Nothing we emulate is new enough to have ACPI.
Posted By: Alegend45

Re: PC/XT/AT (inside) WIP topic - 01/26/13 04:53 PM

Yeah, that's probably the problem. Memtest86 is pretty new, so it may require ACPI, but we don't emulate that, so it just hangs.
Posted By: John Elliott

Re: PC/XT/AT (inside) WIP topic - 02/01/13 11:35 PM

I've been sent scans of the programmer's manual for a Wyse 700 graphics card. I've summarised the information here; PM me if you want the actual scans.

Unfortunately, the manual doesn't explain how to select the high-resolution text modes -- it just says to use the supplied TSR, which I haven't got a copy of. Fortunately, it does cover the six high-resolution graphics modes.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/02/13 01:15 AM

Neat! It's great to see documentation for these less-than-standard cards.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/04/13 05:38 AM

Tested out the speed boost given to these drivers the other day and I must say are quite amazing. Windows 95 now idles at about 83% on my machine, (about 55% before) which makes it very usable on the ct486 driver, it's very responsive. It seems MS-DOS has taken a hit though? running around 25% less with EMM386 disabled, but is faster when enabled now as compared to before. Nice job.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/04/13 01:08 PM

Both DOS and Win 3.11 are slower for me after those changes, but I'm glad they helped something smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/04/13 01:46 PM

Originally Posted By MikeAbson
It seems MS-DOS has taken a hit though? running around 25% less with EMM386 disabled, but is faster when enabled now as compared to before.
Didn't notice that big of a hit with dos. I'll have to look over it some more.
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/04/13 06:40 PM

Before the changes I could get Doom to run at about 97%, now it runs around 83%. So not quite 25%, but pretty close. DOS idles at 100% though. I was actually thinking the hit was suppose to be there for one reason or another, but glad to hear it's not.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/04/13 06:50 PM

Originally Posted By MikeAbson
Before the changes I could get Doom to run at about 97%, now it runs around 83%. So not quite 25%, but pretty close. DOS idles at 100% though. I was actually thinking the hit was suppose to be there for one reason or another, but glad to hear it's not.
Well, I load real mode pages into the TLB which is I believe how the real hardware works based on this. That does cause a performance hit but that's bigger than I thought. Only programs that enable paging will see an improvement, Doom must not while emm386 does.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/04/13 06:54 PM

Originally Posted By MikeAbson
Before the changes I could get Doom to run at about 97%, now it runs around 83%. So not quite 25%, but pretty close. DOS idles at 100% though. I was actually thinking the hit was suppose to be there for one reason or another, but glad to hear it's not.

lucky you laugh

I went from 75% to 52% eek (same with Duke 3D)
Posted By: MikeAbson

Re: PC/XT/AT (inside) WIP topic - 02/04/13 11:57 PM

As of r20732 MS-DOS runs normally again, Windows still runs fast as well.

Just quickly, I'm wondering if there is a quick way of getting FIFA International Soccer up and running on anything less than the Pentium driver? The games minimum requirements were a 386, but it always crashes with the following error on the 386 / 486 driver:



I don't have to make any changes when getting it up and running on the 586 driver, it just works.

In DOSBox when selecting the 486 cpu, it crashes completely, but before it does, it displays this last line in log file:



It too works fine when using the pentium_mmx cpu.

If someone wants the 3 floppy disks, I can upload them somewhere temporarily.
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/05/13 02:29 AM

According to the dosbox forums, on the 386 and 486 FIFA plays games with the prefetch queue which we don't emulate. I haven't been able to find out what exactly it does.

Edit:Apparently it uses the prefetch queue to detect the CPU type. The pentium must than work because it uses CPUID instead.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/05/13 02:37 AM

Originally Posted By MikeAbson

If someone wants the 3 floppy disks, I can upload them somewhere temporarily.


That would be nice laugh
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/07/13 09:47 AM

Playable, but lacks music (maybe CD audio, not sure). Issues with full-screen under the S3 driver.




Bug! (Win95 Demo version)
Posted By: Justin

Re: PC/XT/AT (inside) WIP topic - 02/08/13 04:14 AM

Originally Posted By John Elliott
I've been sent scans of the programmer's manual for a Wyse 700 graphics card. I've summarised the information here; PM me if you want the actual scans.


Thanks, I've thrown it up at https://archive.org/details/wy700 for safekeeping. (Use the Read Online link or click through the all files link to download the zip, the auto-generated PDF didn't turn out too well.)
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 02/08/13 12:57 PM

I performed a search for "invalid parent" but nothing came up so I thought it best to ask here.

I'm compressing a raw file using the following command

Code:
chdman createhd -i hd.raw -o hd.chd -f


When I load the .chd image in mess using

Code:
mess64 at486 -ramsize 15728640 -artpath "C:\MESS\artwork" -effect Aperture2x4bg_Aaron -isa2 sblaster_16 -harddisk1 "C:\MESS\hd.chd"


I get the following error

Code:
Device Harddisk load failed: invalid parent


I'm using the latest build of CHDMAN and MESS [r20827] on 64-bit Windows 7.

Has the createhd command been deprecated or am I doing something silly?




Posted By: LoganB

Re: PC/XT/AT (inside) WIP topic - 02/08/13 01:06 PM

It's probably you. When creating a hd chd, the command line should look like this:

Code:
chdman createhd -i hd.raw -o hd.chd -c none

This sets it to no compression, which, IIRC, enables read/write.

BTW, the -f switch isn't needed, unless you're overwriting a file.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/08/13 01:13 PM

Correct. -c none is necessary for HDD images you plan to write to, -f is unnecessary, and the error probably means you have "hd.diff" for a drive with completely different geometry in your diff folder. -c none will eliminate that problem.
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 02/08/13 01:14 PM

Originally Posted By LoganB

BTW, the -f switch isn't needed, unless you're overwriting a file.


Which is most often the case considering I don't always remember to delete the previous file each time conversion takes place.
Posted By: Dr. Spankenstein

Re: PC/XT/AT (inside) WIP topic - 02/08/13 01:15 PM

Just tried it that command line out. Works great! Thank you both for the education, will make a note of it for future use. smile
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/14/13 09:32 AM

Games exits back to desktop when going in-game. (Maybe because it requires a Pentium CPU, and I can't get at586 to boot from HD)






Road Rash PC (Demo version)
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 02/14/13 10:28 AM

you can change at.c to use a Pentium for the at486 or ct486 drivers.

changes the lines

MCFG_CPU_REPLACE("maincpu", I486, 25000000)

to:
MCFG_CPU_REPLACE("maincpu", PENTIUM, 25000000)

Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/14/13 10:45 AM

Well, yeah, I could do that, I did that with the FM Towns to get the Final Fantasy VII config program to run. smile
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/14/13 01:54 PM

Maybe we should clone at486 as at486od, that is a 486 motherboard with a 63Mhz Pentium Overdrive.
Posted By: Haze

Re: PC/XT/AT (inside) WIP topic - 02/14/13 02:05 PM

I think we could do with some decent preset clones with useful configurations, something typical with what would have shipped at various point in history.

right now the scope given with slots is too broad for any decent testing, and the most important slot of all, the CPU one, can't even be changed without recompiling.

would be nice to have a PC driver where I know it will boot with a standard CPU, GFX card, Sound Card, Ram-size HDD, CD-Rom etc. so that you can just get on with testing software, say recreate a period PC, as you'd have found it shipped from manufacturer.

Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/14/13 02:18 PM

That would be an great feature for qmc2: user-defined "favorite configurations" of the slots. And then someone could distribute a PCs.ini that defined specific models.
Posted By: qmc2

Re: PC/XT/AT (inside) WIP topic - 02/14/13 02:26 PM

RB: That's basically already in... what's missing is a way to export/import those (i.e. as some .ini file or whatever). Every device-configuration in QMC2 *includes* the slot-configuration.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 02/14/13 03:24 PM

One thing id recommend only enable two com ports by default. 4 com ports wasn't a standard setup and it causes some of the bios sets to complain.

Common at io boards seemed to be setup as 1 com / 1 LPT, or 1 LPT / 2 com ports.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/14/13 03:32 PM

1 LPT/2 COM was what I remember most real-world clone PCs having up through the Pentium generation.
Posted By: Kaylee

Re: PC/XT/AT (inside) WIP topic - 02/14/13 03:36 PM

I see this works,



even if it's not useful :p
Posted By: RColtrane

Re: PC/XT/AT (inside) WIP topic - 02/14/13 05:14 PM

Ohhh, Johnny Castaway is Always good! laugh
Posted By: Javier Donoso

Re: PC/XT/AT (inside) WIP topic - 02/14/13 06:58 PM

Here are the i430FX datasheets so it can be implemented on MESS:
https://sourceforge.net/p/bochs/feature-requests/_discuss/thread/b1afe206/3779/attachment/i430FX.pdf
https://sourceforge.net/p/bochs/feature-...nt/i430FX_2.pdf
Posted By: AaronGiles

Re: PC/XT/AT (inside) WIP topic - 02/14/13 09:32 PM

Anyone tried hooking up a 3dfx card to the PC emulation yet? Should be able to run DOS Glide games on it, at least, if not Windows stuff.
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 02/14/13 10:56 PM

seems Kale did at one time:

http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=79377&page=33
Posted By: Stiletto

Re: PC/XT/AT (inside) WIP topic - 02/14/13 11:07 PM

Originally Posted By Malice


I figured that was Kale saying "despite not having the 3dfx Voodoo hooked up in this driver at ALL, this binary still does something..."

And the link you want is:
http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=77050#Post77050
Posted By: mahlemiut

Re: PC/XT/AT (inside) WIP topic - 02/14/13 11:44 PM

Switching the CPU type to Pentium only makes it lock up Win95 during fade in, instead of just exiting.

Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 02/15/13 12:25 AM

Back in the 3dfx era there was one or 2 custom MAME builds that would output to a 3dfx card. I think one was GLMAME i don't remember the other. Another one could select either primary or secondary video card in Windows and thus output to a 3dfx card in 2d mode. it was a real treat on Wicked 3d Voodoo 2 cards since they could do custom video modes.
Posted By: Reznor007

Re: PC/XT/AT (inside) WIP topic - 02/15/13 12:30 AM

Wasn't the primary purpose of that to do bilinear stretching to fullscreen before D3D was in baseline?
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/15/13 12:40 AM

Yeah, those were -video d3d before there was -video d3d. Nothing to do with emulating a Voodoo smile
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 02/15/13 01:11 AM

Originally Posted By R. Belmont
Yeah, those were -video d3d before there was -video d3d. Nothing to do with emulating a Voodoo smile


IIRC GLMAME did render the vector games using 3d features.
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/15/13 02:29 AM

Which still has nothing to do with emulating a Voodoo in MESS smile
Posted By: Malice

Re: PC/XT/AT (inside) WIP topic - 02/15/13 02:43 AM

The point i was trying to make is once the 3dfx emulation is hooked up in the PC driver you can exercise specific functionality that may not be tested otherwise. Custom video modes ect.
Posted By: Shideravan

Re: PC/XT/AT (inside) WIP topic - 02/15/13 01:46 PM

I never understood well how to launch these things...
There's a tutorial?
Posted By: Shideravan

Re: PC/XT/AT (inside) WIP topic - 02/15/13 05:46 PM

...Or at less a virtual HD (CHD) image, preformatted, ready to install a new OS?
Posted By: etabeta78

Re: PC/XT/AT (inside) WIP topic - 02/15/13 07:40 PM

I'm pretty sure these instructions

http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=76953#Post76953

are still perfectly fine to create a blank HD for PC drivers

I'm not sure if you have to format it with DOS before attempting to install Windows, though, because I have only tried to install Linux and minor OSes
Posted By: Anna Wu

Re: PC/XT/AT (inside) WIP topic - 02/15/13 11:15 PM

QCHDman can be very helpful to create blank harddisk images.
This tool contains a lot of predefined harddisk parameters for different capacities.
Posted By: Shideravan

Re: PC/XT/AT (inside) WIP topic - 02/16/13 05:59 PM

Ok!
I create the HD.chd that is working perfectly in driver at486 laugh
Obs.: I don't used:
Code:
chdman -createblankhd hhd.chd 1015 16 63

That don't worked, but...
Code:
chdman createhd -c none -chs 1015,16,63 -o teste.chd


That worked very well in new version of chdman...

Well...
I configurate the HD properly and finally it had been recognized laugh



But...
I need a working DOS boot image to run, then I'm using dos622 disks from ibm5170 software-list...
Well...



None of the disks are being recognized for at486 and I can't pass the BOOT diskette phase frown
Ok... What i'm doing wrong and what I have to do now?
:p
Posted By: crazyc

Re: PC/XT/AT (inside) WIP topic - 02/16/13 06:01 PM

Notice it says "Floppy Drive A: None". You've got to set the floppy drives in the BIOS setup.
Posted By: Shideravan

Re: PC/XT/AT (inside) WIP topic - 02/16/13 07:22 PM

Originally Posted By crazyc
Notice it says "Floppy Drive A: None". You've got to set the floppy drives in the BIOS setup.

You're right!
I forget whistle
Thank you!

Well...
It's entering in MS-DOS installation disk...
But after choose install, it reboot the at486 and now it's showing the screen...

"NO ROM BASIC
SYSTEM HALTED"

:p
Posted By: R. Belmont

Re: PC/XT/AT (inside) WIP topic - 02/17/13 02:11 AM

You need to set the BIOS boot order to A: before C:.

What happened is the DOS installer formatted and partitioned the HDD so it appears valid to the BIOS but DOS isn't present on the disk yet to load so it bombs with that message. With the boot order set A: first it'll correctly boot the floppy and continue the installation.
Posted By: solstar82

Re: PC/XT/AT (inside) WIP topic - 02/18/13 01:25 PM

SOME HELP GUYS...i managed to install dos 6.22 on a7486(though all i wanted was to install win 95,but more on that later),and after i type "setup" on the win 95 cd driver,the setup starts and after 5 seconds it says

not enough free extended\xms memory to run setup

now i looked all aorudn the net about the commands to put in autoexec and config.sys(such as emm382,himem .sys etc)but still same error...all that comes out at the beginning is :

"emm382.exe non installed xms not present"

which is obviously a lie since emm386 is installed inside the dos fodler when i installed the