PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Windows 95/98 on your PPC :)

No, this is not another *what if* topic, this is a topic to show you the real deal, already running (not that fast though) and already proven to be real, by me :).

If you don't believe it, don't click this link to view the post I wrote over at PDAi.org a couple of seconds ago, and please do not look at the images either :).

(sorry for the cross-linking, but I thought it would be better then to copy-paste the full text :)).

Before you start saying that it's a hoax, please note that I have tested it, installed windows and all that stuff, and as you can see it's running on my Asus A620BT (see the photo) WITHOUT overclocking and WITHOUT optimizations in the program itself, imagine what it can do with those 2 options :D.

So what do ya think of this?
Is it time for the developers to start optimizing this port to make it workable? :D
I see a download link on the guy's page? How is this not available?
Blade Runner · 22 May 2004, 02:23 UTC
Omg wow.
How did you do that?
I'm really surprised no one has ported it sooner. I never tested Windows on the port I did because I did not have a large enough storage card at the time. I did run a few different versions of DOS (FreeDOS and MS DOS) as well as various DOS apps and games (like RailRoad Tycoon).

The port I did is of such an old version of Bochs that it would not be useful. I'm sure the source base has changed to such a point that it would basically have to be ported again from scratch.

All computers are just fancy Turing Machines. In other words, at a low level any computer can do anything any other computer can do, given enough memory and enough time. Thus any computer, given the right software (emulator), can emulate any other computer, memory allowing.

Thus the only time I am truly impressed to see a Pocket PC emulating something is when it can emulate it quickly. Two such emulators that come to mind are PicoDrive and FPSEce.

The two big issues I ran into with a Bochs port was a decent input system (IE onscreen virtual keyboard) that would work with all the various VGA video modes (both text and graphics modes), and the fact that Bochs used an HDD image. I don't know if the newer versions of Bochs can simply mount a host directory as a virtual HDD. If not then you still have the problem of not being able to access the Bochs x86 filesystem from the Pocket PC filesystem and vice versa.

Dan East
The OS is gonna take up a lot of CF space....how large is win95 that you used? Also there is a Win98 patch thing I think called Win98 Lite that only installs the bare minimum it needs(if it isn't already), so maybe it will run faster. Also if Windows can finally be emulated maybe there is hope for directx on the PPC for more gfx intensive games or emus such as psx or even n64. If directx could run without loading the entire Win9x system it'd probably run even faster....but this is all speculation. I hope someone can optimize this =) plz!
HA! TAKE THAT POCKET DOS!


This is incredible. I am definitely going to find all my old DOS games now and see what I can run.
RChickenMan · 22 May 2004, 03:43 UTC
Pretty neat. From what you described, it's mostly a novelty as of now, right? Can't really run anything useful? Like Dan said, any computer can emulate other kinds of computers, for the most part, but not necessarily to the point that it's useful.
I don't know if some of you check out the emulation of things like DreamCast, PS2 an Xbox, but I can tell you that when the guys start creating an emulator nothing runs at a decent speed, that's when people start making it faster (aka optimizing, rewriting some parts, I don't know it all :)). you can't expect an emulator who hasn't even been optimized yet to fully operate. I look at this on the bright side, somebody started the port, it works, now it's up to those who believe in this project and think they can get it faster to MAKE it faster.

Info:
Windows 95 fit's on a 160mb HD Image (plus had some extra free space on it).
Windows 98 fit's on a 240mb HD Image (with like 20mb free :P).
You could try something like 98lite to get the images smaller.

http://www.litepc.com
Wow 16mb with W98 :P.
If I can find a trial or something I'll check :).

Thanks for the link!

Anyone else tried Bochs yet? (on the PPC I mean)
SmokingFish · 22 May 2004, 12:06 UTC
i tried ^^
i only tried dosbox , and hey, it seems to work great.

the only problem is that inputs are impossible =( the virtual keyboard is way too small in 640*480 and it only responds every 3-4 clicks...

but i managed to write "dir" and the directory was there instantly , so i think its emulating already as fast as a ~16-33 mhz 286/386 (on my old 16 mhz laptop it takes a few ms to build the directory listing)

so..please^^ someone optimize this emus ...and make a nice frontend too XD
The developer stated that there was a bug with the keyboard (if you press a button, the next time it won't work anymore), but he solved it and I think there's going to be an update not to far away :).
I tried bochs and dosbox. Bochs just goes through a whole boot list then shsuts off. Dosbox loads up great but I can't do anything because there is no way to input anything.
Does the version of Bochs this port is based off of require drive images?

Dan East
Yes it still is based of disk-images.
But I think that's just a really easy way, since I can install the OS on my PC using bochs, copy it over to my PPC and then run it :). It's only a bit harder to transfer files on it, but by making a CD image you can solve that too :D.
There's an old tutorial that Mzguy did on how to make a disk image for windows version here:

http://www.multi.fi/~sgronroo/bochs/bochstut.htm

Miracle, since you seem to me mr. tutorial guy for PSX->PPC game ripping, maybe you'll do one for Bochs PPC next? ;)
I was thinking about it yes :).
But since I do not know wich OS is best that is considered 'usable' speed-wise etc. etc. and since I don't know if developers will continue working on this (the mouse surely is a big problem for starters :)), I do not know if many people will make use of my guide :).

Anyway, anyone who is interested in a guide by me, please post it here, then I'll see what I can do :).
As soon as I can get my PSX adapter to market I will produce a PS2 keyboard and mouse adapter. I've already done some preliminary work on that, and it is actually easier to create the embedded software for that adapter than for the PSX controllers.

Dan East
That sounds great, but I can't see myself carrying a PS2 mouse+keyboard around :).

Dan, is there any way to assign the F12 key to one of my Asus' hardware buttons?
SmokingFish · 22 May 2004, 18:37 UTC
thx miracle ;)

here , i got win3.11 (with dos6.22) running.

it boots fairly fast (about 10-20 sek until windows is completely loaded) and windows come up fast too...but my biggest problem is that absolutely no input is possible...i cant use the virtual keyboard and i cant use mouseimput...but hey..the startscreen looks nice anyway XD
Attachments:
1.PNG
No problemo :).

I hope that somebody who has like 30 minutes free and knows how to program is able to:

1) Make the F12 button to activate the mouse something else (since PPC's don't have that button)
2) Make the mouse act like it should (meanin: tab on an area to click there, like a real touch screen)

Then if that's working we can start taking about speeding things up :).
SmokingFish · 22 May 2004, 19:29 UTC
[...]

3) standart screen resolution, fullscreen (landscape) , scale to fit screen
4) virtualkeyboard
5) complete toolbar (loading diskimages at runtime etc)

[...]
Full-screen, scale to fit should look really awesome :P.
That reminds me of a photo I saw a while back of an Linux-based PPC (what's it called again?) that was booting Windows 98, full screen, running bochs :).
woooooow, niiiiiice

But I dont think we will be seeing any decent speeds for a LOOOOONG time, IE until 1ghz+ PocketPCs

I mean, running Virtual PC on my 700mhz G3 iBook doesnt run that fast(fast enough though under OS9)
Well, I'm happy to announce that his has made front page news at Slashdot. It's not often you see PocketPC news there, so check it out while you can.
SmokingFish · 22 May 2004, 20:29 UTC
its not slow at all...i cant test any games at the moment because inputs arent working , but the os itself loads fairly fast.

i think win3.11 would be really useable with the currentversion, you can guess how fast the os operates by looking at the speed the windows need to showup after booting and i cant tell a big difference between ppc and pc version of bochs...hell i want mouseinput now XD.
Mechcommander · 22 May 2004, 20:31 UTC
Yeah, that was me, the guest. Seems my computer forgot that cookies exist.
David, you might want to take down that story soon on PocketGamer. It may be subject to Slashdoting.
SmokingFish wrote: you can guess how fast the os operates by looking at the speed the windows need to showup after booting and i cant tell a big difference between ppc and pc version of bochs...hell i want mouseinput now XD.



YEEAAAAAAAH RIIIIIIIIGHHHHHTTTTTT

Windows 2000 takes just as long to boot up on my ibook under VirtualPC as it does on my 2.53 ghz PIV PC. Thats about 20secs for you. But the actual speed inside the OS is rather slow under my ibook, I dont have enough RAM(only 256mb), Games are impossible to play so dont expect games on teh pocketpc with this, especially since Bochs is not as optimized as Virtual PC is.
Mechcommander, I send a message personally to David right after I posted the topic over at PDAi.org, so he doesn't have to remove anything at all.

And in my experience Virtual PC in overall is pretty slow, but that's just me...

Oh and sponge, thanks for the link I ment that one yes :).
Too bad I couldn't get the W98 splash screen to show up, for some weird reason...

btw, I succesfully installed Windows 98 using 98lite with a little 80mb!
I didn't had a chance to test it on my PPC yet, but it's working great on my PC (using bochs). I'll keep you guys posted.
Miracle wrote:That sounds great, but I can't see myself carrying a PS2 mouse+keyboard around :).

Dan, is there any way to assign the F12 key to one of my Asus' hardware buttons?


Usually you can find a PS/2 keyboard nearby that can be, um, borrowed for a bit when necessary. :)

Not without writing a custom app, and if one was going to go to that trouble then it should just be implemented within Bochs in the first place.

Considering this port doesn't have proper input, it sounds as if is not much further a long than the port I worked on. It would be extremely easy to modify the video driver to render 640x480 at 320x240 (just add 2x2 pixels together and shift right by 2 for instant bilinear filtering - since the ratio is fixed at 2:1 it can be implemented very fast compared to bilinear filtering that will work with any scalar). Thus it would look the same without having to use 3rd party software, and it would render faster (than using nyditot).

I implemented the CGA driver at 320x240 native, and I implemented a custom VGA text mode using tiny fonts so it would run 240x320 and still show 80 character text.

If I had any time to spare (hah hah, most ridiculous thing I've said in a long time) I could see about transferring some of my earlier bochs work to this port.

Dan East
How about....Sunday? :roll:

I'd love to not having to use Nyditot for this, and hopefully I can get more then 16 colors (!) then :P (for some reason, bochs wont let me select a higher color range like 256 colors...)
Bochs won't let you, or Windows won't let you?

Dan East
Make that windows :).
But it could be because I just installed Windows 98 using 98lite, and for some reason I can't get all my HD images (except for the 98lite one) to work... I think I am going to put all my files back again (I'm talking about the PC version right now) and try it again :).
When porting Bochs, the video driver has to be ported specifically for the target platform. There are dozens of combinations VGA video modes (various resolutions, color depths, and graphics or text). If he only implemented say 640x480x4 (16 color) then that is all Windows will let you use.

I implemented a CGA mode and an 80 character text mode. It would take a decent amount of work to implement all those different modes, especially if you factor in multiple output resolutions and orientations. For example, say you have an 80 character text mode that can render to portrait or landscape, depending on the users choice. Or with 640x480 you could have a mode that filters it down to 320x240, or you can render to 640x480 like it does now for the newer devices that actually have a 640x480 panel.

Dan East
Most of us don't have the latest devices, and still operate using 320x240 so that should be a start, don't ya think? Look at the Xbox emulation scene, now there's a Xbox emulator that can fully run Turok Evolution, meaning they targetted a specific game first, before going to the rest. I think that that's the best way to do it :).

So 320x240 landscape (256+ colors to be specific) should be good enough for most, if not all devices out there. Ofcourse the 5 people running at 640x480 have to wait a bit longer.
Well, the best mode to support would be 640x480x24, then filter it to down 320x240x16. By using 24 bit color the color components would already be separated, and the math to average the colors together would produce 16 bit RGB 565 ready for direct blitting out to GAPI.

Of course games completely take over the display, and some require 24 bit color depth, and others require 16 bit. So both would have to be implemented for maximum compatibility, etc.

Dan East
Would that be hard and/or a long job to do?
Can someone make a list of the files you need to extract from bochs zip file? I have all these files that I know I probably don't need for the ppc port to work.
Miracle wrote:Would that be hard and/or a long job to do?


No. The input would be a much tougher issue to address. About the best thing I came up with (idea-wise) was a full-screen keyboard that is blended (say with 50% transparency) over the screen. You could use your thumbs or stylus to type on it. Jacco created such a keyboard once. Since it would be overlaid, the resolution that the video driver is running in would have no affect on the keyboard (again, you wouldn't be using nyditot, so the Pocket PC would be running at the normal 240x320). Also, since the keyboard would be full screen, there would be plenty of room for all the function keys, etc. To toggle the keyboard on and off I figured on just using a hardware key.

Dan East
Miracle wrote:Look at the Xbox emulation scene, now there's a Xbox emulator that can fully run Turok Evolution, meaning they targetted a specific game first, before going to the rest. I think that that's the best way to do it :).

I think the starting game shoudl be Red Alert, because I had an awesome time playing that game in DOS/Win95 :P
STARCRAFT.
Chad wrote:STARCRAFT.


AT 2 FRAMES PER SECOND. :)
SmokingFish wrote:thx miracle ;)

here , i got win3.11 (with dos6.22) running.

it boots fairly fast (about 10-20 sek until windows is completely loaded) and windows come up fast too...but my biggest problem is that absolutely no input is possible...i cant use the virtual keyboard and i cant use mouseimput...but hey..the startscreen looks nice anyway XD


Haha, that PPC background you have, you dident happen to copy that off an internet poster advertisement did you? because if you did, I have the same background and did the exact same thing... I find that quite funny.
Chad wrote:STARCRAFT.



Oh hell no! Civilization II!!!!!
Blade Runner · 24 May 2004, 00:06 UTC
Alexander":1jlh56nh]

YES AND WHAT?, WHOOO!!
miracle@work · 24 May 2004, 13:09 UTC
Well I tested a couple of games using DosBox, and if you head to the PDAi.org post (click me!), you can see some screenshots.

I tested:
- Duke Nukem 2 (booted & ran pretty well, ingame unknown)
- Duke Nukem 3D (booted a bit slow, crashed when menu was about to appear)
- Settlers 1 (booted & ran fine, again, ingame unknown)

since DosBox has that input bug, I couldn't load the games to get ingame, but Mamaich send me a message saying that he updated DosBox with a couple of fixes and new features! (again, check out what I wrote over at PDAi.org).

I'm getting a CD-rom with a lot of old DOS-games of a friend of mine, so as soon as I get it (and get home, I'm at my work atm :P) I'll go test them and make/post screenshots :).

Cheers,

Miracle@work
Blade Runner · 24 May 2004, 14:37 UTC
So it doesn't support 3D you think?
Could someone try Starcraft?
Starcraft isn't 3D. There's no reason, besides BOCHS bugs, that it couldn't run Quake, Q2, etc, as they ALL have software rasterizers.
miracle@work · 25 May 2004, 06:59 UTC
Wolenstein 3D Works :). (check out my PDAi.org post for screenshots)
The Destroyer · 05 Feb 2006, 18:32 UTC
The link from the first post doesn't work. But it is interesting to know what was written there. Please tell what was the idea or give alternative link to that information.