Feedback on x86 emulator
I've done a lot of research on this, I would really like to know if anyone is interested.
It would actually be possible to run Win95/98 on a PPC if someone ported an 286 or higher x86 emulator. There is an open source project called Bochs x86 emulator which already can run Win95/98 inside of it; and it already compiles under Visual C++ for win32 based machines. If someone were to port this, than this would open up a huge realm of apps and OSes (and games!) for the PPC.
If anyone is interested they can visit the main site at
http://www.bochs.com/
oh here's a quote:
"The program bochs is a highly portable open source x86 PC emulator written in C++, and runs on most popular platforms. It includes emulation of the Intel x86 CPU, common IO devices, and a custom BIOS. Currently, bochs can be compiled to emulate a 386, 486 or Pentium CPU. Bochs is capable of running most Operating Systems inside the emulation including Linux, Windows'95, DOS, and recently Windows NT 4"
Now my question is, does anyone think this is possible to port to the PPC, obviously. I know it would not be simple, but provided that the code is already written in C++ it seems probable to me. I would really like any (and every)programmers feedback if possible. I really want this to happen. And if it takes me having to announce that I'll pay the person who successfuly ports it 200 bucks, I'll do that. Thank you.
What's the point? The kind of programs you could run on a 286 wouldn't be worth the trouble, surely...
First of all Paul, read the entire post, this thing can emulate a 286 386 486 and pentium cpu.... Did you not read the whole thing, it's capable of running win95 etc. yeah those programs sucked... You obviously weren't around during the days of the Lucasarts adventures or .. um Wolfenstein.. or Commanche, or the thousands of other games which were playable on the 286+
Oh, and if anyone is interested in downloading/looking at the source code here's the ftp link:
ftp://ftp.bochs.com
:)
WINE is open source too.. it emulates the Windows API's.
But it's for linux..
Wine Is Not and Emulater (WINE).
www.winehq.com
Of course I read the entire post. So you're saying a PPC can run Win95 on the emu? What could we run anyways? As for those DOS games, its still a waste of time. Yes I was around for those games but they'd stink on a PPC because of the stylus input method - you really need a mouse to enjoy them, or at least some other method.
I actually used "Maniac Mansion" on PocketDOS some months back. It stank. The colours were rubbish (ega i think) and the animation was amazingly slow. But no-one's particularly happy with PocketDOS anyway.Last modification: Paul - 04/20/01 at 03:56:39
Okay, so the site says:
"Source code for bochs is available by anonymous FTP."
Uh, so what's the address?
Dan east
Yes pocketdos does stink. It only emulates up to an 80086 maybe an 80186, which is completely worthless (and it does it extremely slow). And why would a mouse be better than a stylus? That's silly.
Oh and Dan, I posted the address in my second post.
here it is again:
ftp://ftp.bochs.com
That was too dang obvious.

Does anyone know the amount of HDD space required for a minimal Windows 3.1 install? Same for Windows 95?
Dan East
I don't know for sure, but I remember it being extremely small (consideing I had it on my huge 30 MB harddrive on my 486...) I'm guessing not very big.

Anyone feel like donating a Microdrive?

Dan East
Sure, how long do you need it for?
No, really, I'm serious. I can send it tommorrow by FedEX if you want. If this will help you get the prog ported, by all means, I'm willing to sacrifice my microdrive for awhile.

Thanks for the offer!

I will see how things go first. If I make any serious progress I'll need something more than my 16 MB CF card to test run Windows. It only would seem fair that the person who ported the emulator would get to be the first to see Windows 95/98 boot up on a Pocket PC.

You should've seen my face when I first saw the Quake Console on my iPaq. You wanna talk about the biggest stupid grin...

Dan East
Yeah, I can imagine the grin quite well.
Actually, I'm more interested in lugging around all my old DOS games. Right now they don't have a home since my SoundBlaster Live! doesn't support true FM synthesis. I was considering building up and old Pentium computer to store the games on permanently, but this is more intriguing.
Ooh, wait . . . a soundcard emulator would need to be made seperately. Thankfully I've been looking in to software AM/FM synthesis. Now if I could just find an old resource on programming for SB cards, I could scratch out a plan for emulation. (Um, doing it that way is legal, right?)
Dan- if you ever need it, just ask. Keep me posted.
Sonic- Actually, one way to go about that.. many old Dos games also supported the Roland (sound canvas I think.. doesn't matter) which was basically general midi... if you could figure out some way to link the roland files to a midi player for the PPC that might work... hmmm... the legality of it, as long as you're not hacking and disassembling other programs to see how they programmed for the Sound Blaster, you should be fine. If you find an old resource on how to program for an SB and can figure it out from there, it's completely legal.
well u wouldn't really need to emu windows 3.1 just emu dos. Dos is the important part i believe because mostly everything you would use the emulator for is playing dos games, but i believe even if you got the emu working it'd be quite complicated to use the games. Somebody , dan, would have to probably map a keyboard full time, then maybe make it so in game u could bind ctrl, enter, space, and others to the game keys

I'd still want a mouse. Sorry Jaybot but I'd hate to play monkey island or something with a damn stylus...
sux for u, i don't think i'll need a mouse playin wolfenstien 3d, hehe, i wonder how quake would play on the emu. that'd be funny if it ran faster but i doubt it seriously.
you wouldn't really have to bind ctrl etc to hardware keys, you could easily implement an different onscreen keyboard such as the one in PocketDos, and for some games, such as an action game like wolf3d, it would be easy to implement a key mapping utility, such as palmkeys
http://www.conduits.com/ce/apps/keys.asp . Paul, why? Do you like having to frag the stupid mouse cursor all over the place? With a stylus all you ever have to do is tap the screen. I hate using a mouse, in fact I sometimes catch myself trying to tap my monitor screen because it's so much easier.. but hey, if you like doing more work, that's your perogative

No i just like being able to 'hover' over things
you can still hover, because the mouse cursor will still be on screen (and would follow all stylus movements), all you have to do is tap anywhere on the screen and then slide the stylus to the object you would like to hover over. This works in MM on PocketDos and Monkey Island 1 and Loom (although the mouse input is still screwy with Monkey Island and Loom), yes I took the time to painstakingly wait 5-10 minutes just to make it past the title screens and intros in those games, I was curious.

Well in that case I have no problem with it
i'm glad we have your approval

Well, I know how highly you value my opinion, Chuck

right up there with billy in north carolina who doesn't know what a computer is

Don't make me get Chris on you!
This is off topic but, Paul! check the Pocketgamer site! If you didn´t see it you will be surprised...
Yeah i did, about 10 minutes after you. Maybe I'll get some hits now

ya i saw that too. paul your FAMOUS!!!!!!! OMG can i have YOUR AUTOGRAPH!!!
Are any of you familiar with Bochs? I mean, have you used it in a linux box, or in Windows, Mac, etc? I can find little documentation about it. Specifically, how to move files into and out of a hard drive image file. One of the docs make mention of using a command line argument to copy files, but I can find nothing else. There are several documentation files which somehow manage to skirt around anything of real importance directly related to using Bochs.
It looks like this is going to work on Pocket PC. The problem is that this emulator, unlike others (UAE specifically), only supports drive images. This is a proprietary large file on your Pocket PC that represents the hard drive or floppy that the emulator accesses. Other emulators (UAE) allow you to just choose a directory, which then is accessed as the harddrive in emulation. That allows you to very easily get files in and out of the emulation, and not require the up-front allocation of the amount of space the hard drive will consume. So some other technique would have to be rigged up to install software in the emulation environment. In my case I could do this on my laptop and copy it directly onto the CF card, which is probably not an option for most people.
So, if anyone has experience with this emulator, or can dredge up a real FAQ and docs, please let me know!
Dan East
I need a DOS-based benchmark program. Specifically, one that will calculate the mhz and MIPS acheived by the machine.
Thanks!
Dan East
Okay, I found a precompiled version of Win32 Bochs. It came with "mtools" which can be used to manage the drive images. Anyone whose serious about using this emulator on their Pocket PC will need to have it running on their desktop machine as well. I downloaded it from:
ftp://ftp.v.nu/Bochs/BochsWin32-991114a.zip
This version is not the most recent. The Pocket PC version will be based on newer source. If anyone finds the newer win32 version (2000-0325a) please let me know.
Yeah, I know. Emulating a Pentium machine on your Pentium machine doesn't accomplish much. But it will be much easier to install and test apps / games on your PC. I doubt any of you have a floppy drive attached to your Pocket PC.

Dan East
sounds good, but is it feasible, i mean are we gonna get good speed, i can deal with the imager thing, thats cool. It'll give me somethin to make a site for, i can release games already in the image format but if its not gonna run a good speed then i'll be depressed

Does anyone know of a util to dump the contents of a floppy into a single raw data file on your HDD? It would be particularly useful if it were like XCopy on the Amiga, where you could "nibble copy" a floppy and avoid any copy protection that used a non-standard FAT filesystem for copy protection.
Dan East
i know they are out, but i wouldn't know where to look, they used to use them for games on apple and whatnot for ripping them

Sorry I haven't been around for awhile, I've actually been doing productive things for a change, I'll see what I kind of info I can dredge up tommorrow and post it here.
I've got Bochs figured out and working, so I don't need any more docs. The main things I need at this point are:
A way of dumping an entire floppy to a raw image file.
A good DOS-based benchmark program.
Also, if you guys have some test programs (games, etc) to try, let me know.
Thanks!
Dan East
Here's a few very preliminary screenshots off my iPaq.
Booting Pragma Linux:

Booting FreeDOS:

Another FreeDOS shot:

Dan East
Last modification: Dan East - 04/25/01 at 09:34:47
Is that Linux one emulating a Pentium?
No, it's my Ipaq emulating a Pentium, which is running Linux built for x86 processors.
Dan East
Yeah thats what i meant
Sure it is...
well i looked at the pic and noticed it said 'pentium' so i just wanted to check
test commander keen 4, its shareware and its a good benchmarking game, see if it runs playable

Benchmarking game my arse! Try Terminal Velocity or Need for speed.
From what I understand, you should be able to dump a raw disk image using the mtools program.... um I think it was here:
The mcat command is used to copy an entire disk image from or to the floppy device. It uses the following syntax:
mcat [-w] drive:
Mcat performs the same task as the unix cat command. It is included into the mtools package, since cat cannot access remote floppy devices offered by the mtools floppy daemon. Now it is possible to create boot floppies remotely.
The default operation is reading. The output is written to stdout.
If the -w option is specified, mcat reads a disk-image from stdin and writes it to the given device. Use this carefully! Because of the lowlevel nature of this command, it will happily destroy any data written before on the disk without warning!"
Also, I have the file bochs-2000_0325a.tar.gz, I don't know if that's what you were looking for or not.
Here's some DOS becnhmark programs:
http://www.sysopt.com/3dbench.html
http://www.sysopt.com/pub/busperf.zip
http://www.sysopt.com/cachk4.html
http://www.sysopt.com/cbench.html
ftp://oak.oakland.edu/SimTel/msdos/sysinfo/ctest259.zip
ftp://ftp.zdnet.com/pub/zdbop/pcbench/pcben.exe
http://www.sysopt.com/pub/vidspd40.zip
http://www.holin.com/
a hardware detection utility
http://www.hwinfo.com/
AS for a game to be tested, how about any of the old Lucasarts games, e.g Monkey Island1 and 2 (Lechucks Revenge), Loom, Indiana Jones and the Fate of Atlantis/Last Crusade, Sam n' Max; any old Sierra games, Leisure Suit Larry series, Kings Quest series, etc.... let me see.....
here's a <cough> abandonware site if you need it:
http://granavenida.com/cyberia/total.htm
Just in case (I have no idea hwat this will do),here's a 3k mouse driver:
http://www.vein.hu/~nagyd/
and a hardware detection utility
http://www.hwinfo.com/
holy shit, i had no idea this was going on here. Keep that work up Dan!!
Last modification: CARPEDIEM - 04/28/01 at 19:48:53
meat ew!!!!!
Dan, if you cut back on the PQ releases for a while to work on this we won't mind a bit. I'd really enjoy an x86 emulator that ran at even half the speed of the PPC. Wouldn't it be easier to just have a DOS emulator though? So I don't have to find old DOS disks?
Moose, DOS is just an OS (hence the name Disk OS) and isn't really the thing to be emulated, the machine that the OS runs on (e.g. 286, 386, pentium) is what's being emulated. Much like when emulating a console system like the SNES, you don't emulate each game (even though it may seem like it some times....), just the system it runs on.
And don't worry about looking for DOS disks, the Bosch emulator is usually already bundled with a version of DOS called FreeDOS which is completely free (and pretty small). I believe this is the same DOS that PocketDos uses. The difference being that PocketDos only emulates up to a 80086 or an 80186, which is pretty worthless because the most advanced game you can play on it is like Leisure Suit Larry 1.
Before people start expecting too much, let me warn you that it is slow. I don't think any real-time, action type game will be playable in it (on a 206 mhz iPaq).
On the other hand, you should be able to run Windows 95 / 98 / Me / whatever, and even Windows NT in this emulator. Of course you would need a lot of storage space for the virtual HDD, and it would run slow, but it will work.
This would be the ultimate slap in the face for Palm users. You could install Windows 95 in the Bochs emulator, then install the free Palm development tools. You could then write full-blown Palm applications on your Pocket PC. Talk about insulting. You could write big-Windows software in Visual C++. I think you could free enough memory for the emulator to run VC++. You could also install eVC++ / eVB, and write real Pocket PC apps on your Pocket PC. Again, it would be slow, but it would work.
Dan East
What do you mean by 'slow'? How many hours between the click and the response?
Dan - I assume you got the disk dump thing sorted? (There was a util in the win32 zip you mentioned called Dskimg.exe which dows exactly what you wanted

)
Anyway, is there a compiled version (even in pre-pre-beta-alpha stage) for the iPAQ which we could download and play with? The win32 version runs fine with an image of a WinMe bootdisk under windows 2000.
Cheers!
Steve
Man, this just keeps sounding better and better

Dan can you get Bochs running win95 on your CE Emulator? I don't know if you have the room on your iPAQ or not. It'd be really cool to see a shot of win9x/NT runnin'.
For ultimate shot props, it should be running winquake in a window, or better yet another emu (emu inside an emu). That is ofcourse if the shot doesn't take a year to setup.
If possible, it'd make a neat screenshot contest
I'm just trying to think about this 'running win9x in an emulator' thing. What drivers are you going to put onto the win9x install? Graphics/Sound/mainboard and so on.
I think first things first, see if the DOS benchmark programs run fine, and if they do , try out some DOS games (like commander keen etc). Then try moving to Windows 3.1. I know that win3.1 will fit into 5-6Mb of Disk space - not win3.11, that takes 15Mb+ for some reason.
Just seeing windows 3.1 running on the iPAQ would be very cool!

Jaybot, thanks for clarifying that. Because, you know, I wasn't sure what DOS stood for and that it was an OS and all.~
I was talking about something simpler, like PocketDOS but faster.
exactly, i dono't want huge options, just a speedy 386 or somethin

Moose, go back and read your post and you'll see why I responded that way. sorry if i insulted your intelligence~
So you want something more simple but faster and with less options....?
sounds like an advertisment for a palm.

oh, and Dan, my offer still stands on the microdrive.... and the money.

LOL, good one about the Palms Jaybot.
i know.

wait, i just had an idea! (imagine that.)
but before i waste my breath..er fingers, does anyone know on average how many PPC (or PC programmers who want to be) programmers come through this board, or even this section of the board. i know has to be a generalized number, because peoples ip addresses dont say 'programmer' on them but still, even i good guess will do.
hmmm.. maybe if i started a thread asking how man..... nah.
I'm sure more than 25% of the people want to be programmers on this board. And 10-20% ARE programmers in this board. So that's around 40%
okay, I'm going to start a new thread then.
i hate starting new threads....
but i hate long threads that go off topic too...

Any progress? If not, that's fine, I'm just a bit excited.

Oh, and if you need someone to beta test, I'm always up for it!

No news? (is good news? I hope!)
Okay, I finally just figured out how to use win Bochs and I have the disk image all ready, now all I need is the PPC version and I'm ready to go. Dan?
ya i'm still waiting for this to be commented on, dan when will this be released and can u give me an estimiate on speed. I mean could u run wolfienstien playable?
It will be a little while before it's released (a couple weeks). I seriously doubt any games such as that would be playable.
Dan East
cool, maybe i can play.. no nevermind
Well... It's been a couple of weeks...
What's up? How's the emulator?
This is sooo cool!
If this runs W95, I will go around in a daze for at least a week and sleep on accident, if at all, staring at my screen and drooling.
Riiight.
I think that I finally get 2 stars! ...Oh yeah, that's right. No one cares anymore.
ya i'm waiting i wanna test it out.
DAN WHERE ARE YOU?!
Leave dan alone, he's a very popular man. And he has a family and such. I think he was gone for a few days.
:'( our dan is all grown up
LOL.
We don't need Dan. I'm a Developer now!
<------ ;D ;D ;D
since when? this stinks.
Ya, I also could crank up my number of posts to infinite. And I could find out all of your passwords. And I could fix that New bug. And I could hijack the site. And I could ban Dan East. And I could-
But I promised Matt I wouldn't do any of the above, or more. Just work on my website.
what site? what game are you making?
I'm heading up the Developing section of PocketMatrix, adding tutorials as I learn it myself. I'm thinking it will go along pretty well. A former-newbie (as of 5 minutes ago) writing an article for newbies will probably be very helpful. Although I always downplay my teaching abilities (or lack thereof). But atleast the Developer section will be filling up soon.
Paul, PM me if you want to see the current design. I don't want to post it because it's apparently not perfect (Matt ):( )
that sounds great, i look forward to your first article.
Don't expect one soon... But the new site design should bring my first tutorial as well (well, as long as it's about a week or two away).
And the first games I'm going to make will be something like Tic Tac Toe (along with an easy tutorial) or Pong (dedicated to Dr. Phat).
maybe carpediem and fred could do a thing on simple beginner voxel engines
Is there such a thing?
Anyone can contribute who wants to. Maybe Dan would like to fill us all in on Floating point to Integer conversion and some 3D Graphics calculation. But all I know at this point about programming is that I'm heading that section (And I know how to make a window, a file system, other basic stuff).
Plus we wouldn't want to slow down their work.
I'll contribute. But I don't know what I could contribute. Heh.
JJB:
If you say your game is Poccer with content, why not have that as a little gaming tutorial?
That would be pretty sweet

LOL.
I did say that didn't I. Ok, my project is not as bad as Poccer or Poccer with content. I have to give myself some credit now.

But a Poccer with Content tutorial would help put that little business out of business. Or at least set them back $11.95 times .....Zero???
You could just do a tutorial of your battle system, or navigation system, or AI, or something like that. Entire game faqs aren't the great unless it's something like Pong (I'm doing it, dedicating it to Phat... as soon as I learn how to CreatWindow()~)
I prefer CreateWindowEx()
It makes it sound like it's divorced.
dont tell me... you used to be a comedien, right?
That wasn't a joke.
I'm serious.
I will admit something. I didn't actually try out Poccer until about 15 minutes ago. What is my opinion? That game sucks some serious arse. I mean..."Hello World" was just as fun.
guys i made poccer!!!!~!
or the alpha version of pong (no balls)
guys i made poccer!!!!~!
I knew it!
Did you make ElfBowling too?
like you?
Ya know, they [Chick] could have at least taken the 5 seconds to match the bgcolor of the window to the bgcolor of the Soccer player. They are not even the same green! I mean, if they're not gonna use transparency.
Last modification: JongJungBu - 06/26/01 at 13:47:42
yeah that stuck out most for me
It's fairly easy to use a mask with the BitBlt routine. It's not worth $11.95 though. Thats an idea for a tutorial. But if you use GAPI, then of course you would do it differently.
okay okay, stop publicising it, man
Okay. OnTopic: What's the latest news on the x86 emulator. I suspect if Bochs goes as slow as Dan says on a PPC, then a BasiliskII port might be just as bad.
Eh, is this project down, or...
Dan's super busy right now, and he has a life, and no one is paying him. So saying that this project is dead only after a few months of not hearing much is kinda weak. I imagine Dan also has many other projects on his hands and this one (while it seems the most important to you or I) it isn't exactly whath the rest of the world (including Dan) wants right now.. so I imagine it's not on the top of his To Do list. Otherwise he would have responded to someone's 'is this dead?' post about 4 pages ago. Leave him alone and pray. And hopefully Dan will come out someday.
As others have said, I am very busy, and spending many hours writing software for tens of thousands of people to enjoy for FREE is not a high priority. My real business comes first (writing medical software), then my secret commercial project, then PQ, Bochs, UAE for Pocket PC, etc.
I do have Bochs "ported" and working. At this time I only have VGA text mode supported. As stated earlier in this thread I have done benchmarks with Bochs running on my iPaq, and it is extremely slow. Gaming is pretty much out of the question, but it will be very useful for other types of apps, even Windows 95, etc. At this point there are two major things holding it up:
1 - I need to create some sort of custom SIP that works with GAPI, where I can rotate the SIP for landscape mode. The SIP will also have to be draggable, so you can move it around to see all areas of the screen. A future enhancement I have in mind for PQ will be a very flexible map / skin system flexible enough for SIP type use. I would most likely use that same library for both projects.
2 - I need to finish the graphical VGA support.
Some other issues / comments:
I got the same benchmark results in Bochs when it was running on my 206 mhz iPaq as when running on my 300 mhz PII laptop. I don't know what's up with that.
Bochs uses a hard drive image file. That is just a large file (as large as you want the virtual HDD to be). You have to use a suite of finicky, poorly documented DOS-based utils to move files to / from those HDD image files. In fact, the documentation was so bad and obscure that I had to look at the source code for those tools to understand how they were to be used. Other emulators, such as UAE, allow you to simply specify a folder on your device which will then be used as the root directory of a HDD. That is certainly the best solution, because you can then access the same set of files directly from your Pocket PC as well as within the emulator. I don't know what amount of work would be required for that type of support, but I feel it would be necessary for Bochs to really be useful on a Pocket PC.
I strongly suggest that those interested in this project download the Windows version of Bochs and run it on their Windows PC. Yeah, I know, running a Pentium emu on your Pentium machine seems like a waste of electrons, but your hardware can't care. I have tried a few older, DOS-based games in the Windows version of Bochs, and they caused it to crash. What I would like to see is someone setup Bochs and run Windows and various other games and large apps, just to see what the quality of Bochs is really like, and what type of game compatibility we'll see. You could then just copy your HDD image file over to your Micro Drive and use it with Pocket Bochs when it is ready.
Dan East
Sorry if I sounded demanding or something, it's just kinda interesting with a x86 emu. I understand that Dan can't give this a top priority when he isn't getting paid for it.
Interesting ideas, Dan. I would try what you say myself with Bochs but at the moment I'm packing up to fly across the country for a few days. Darn it. But if no one does anything by the time I get back, I will mess with it. I do useless stuff like that all the time.

Dan:
I've dled Bochs win32 version and am gonna do some testing with win95 on it. I do not have a PocketPC (yet at least), but I can try to test some games and apps on it.
Hmm, I need a util that can write to .img disk images...
Ok a question, how do I assign a drive letter to a directory on a HD??
The Win32 Bochs I downloaded (BochsWin32-991114a.zip) came with the various tools, such as makeimg.exe and mtools.exe.
Dan East
I don't quite understand your last question. If you are trying to make a directory on your real computer become a virtual drive in the emulator, then you can't. Bochs only uses drive images.

Dan East
Yea with my version came one tool for making empty images, but I need to make a img of the win95 cd (which I have in a dir on my HD) and mtools seems to be kinda complicated, but I've found a tool that can write a HD or some other drive to a iso, img... and that's why I need to assign a drive letter to a dir...
o you want to mount and iso, there are programs for that. Look around, i think its kind of a warez thing thou. So you might have to check like astalavista.com and stuff. I used to mount my iso's before i had a burner. But i deleted the program i used
No that's not what I mean. I need to assign a drive letter to a dir so the tool can write the "fake"drive to a img file, which I could then use in bochs.
Forget the question, it wouldn't work.
Darn any hints on how to put the win cd in a img file???
Have you tried using MCOPYDIR.BAT? CD into your CD and try it there.
Dan East
Eh mcopydir.bat?? Where did you download your version?
I don't remember. At one time I was searching all over the place for Bochs docs / tools, so I don't remember where I got it from. Here's the contents of the BAT file:
[fixed]
@REM MCOPYDIR source destination
@REM source = directory to copy
@REM destination = directory in image file to which source should be copied
@ECHO Changing to image file directory %2
@mtools -c mcd %2
@ECHO Making image file directory %1
@mtools -c mmd %1
@ECHO Copying files in local directory %1 to image file directory %2\%1
@for %%f in (%1\*.*) do mtools -c mcopy %%f %2
@ECHO Done! Directory listing in new directory on image file is as follows:
@mtools -c mdir %2\%1
[/fixed]
Dan East
Grrr, the bat file didn't make things better, guess I'll wait til I get my CD-burner and the try to get the CD-drivers to work...eventually...maybe not...or I try to get a better tool to make img files...or I try to learn mtools ;D
Woo, right now I'm installing win95 in Bochs(win32)

Phew, after far over an hour of installing win95,
http://www.multi.fi/~sgronroo/pics/bochs.jpg is the result.
It's quite slow on my P3 800, 128Mb RAM (I let bochs emulate 32 megs). Wonder how slow it would be on a PPC then

I set it up on a 200Mb disk image, but the install size (normal install) is 79 megs, so I assume it will fit nicely on a CF memcard.
Mzguy, it would really help out many people in the future (and the very curious ones now) if you could write up a quick how-to on setting up bochs with the disk image and all.

Ok, I'll write it sometime after work today
The first version of my Win95 in Bochs tutorial is up at
http://www.multi.fi/~sgronroo/bochs/bochstut.htm.
...and I know, it's messy ;D
Very nice! Wow, that was fast.

Oh ya, made it as soon as I could

...and if someone tries it out in win9x/ME, let me know if the physical drive access work, so I can write it there too.
http://www.multi.fi/~sgronroo/bochs/palm.jpgI guess this is what you'd like to do with the x86 emu ;D
It took several minutes before the Palm emulator popped up and even longer before I could do something with it

, and that's on a desktop PC, so I guess you won't find much use in this on the PPC.
lol.. well i dont think anyone honestly wanted to run any palm emulators inside of windows95 in an x86 emulator.. well maybe. but i guess that the palm emulator for pocketpc being developed by pdafantast will conquer that one. whats funny is that you could develop games (albeit slowly) for the palm or ppc on your ppc....
I love you Dan! Dan is the Man!
When are you going to release a public alpha or beta version? I don't want to bug you, but... Yeah, actually I do kinda want to bug you. I'm just curious as to whether progress is being done or not. I mean, people here have done all this work with Bochs just because you've asked them to.
What I am trying to say is that some people here would bend over backwards for you because you are just too cool. They love people who port stuff like Quake and an x86 emulator. We're just dieing to see this released.
But, I don't want to be mean or whiney or annoying. I just think this is the coolest thing. How about some info?
\\\\\\\Bump///////
Still looking for a good disk image program anyone... I reccomend winimage. Its an excellent windows based-based proggie that's easy to use and quite powerful. Don't know why nobody's come across it yet, as its been around for quite some time...
http://www.winimage.com/
A few things:
Jaybot, I tried downloading that benchmark software, but their FTP server only allows 4 anonymous connects at a time, so I haven't been able to download it.
dthomas1950, if you have a basic benchmark program then please send it to
dan@naxs.com.
I've got partial VGA graphic support going. Actually it works completely, but will not fit on a 240x320 Pocket PC display. What I'm asking for is someone to find / compile a list of the resolutions of the VGA graphic modes. I will have to scale the display according to what VGA mode is used. There are VGA modes that will fit on a landscape Pocket PC display at a 1:1 pixel ratio. Others will require a sub-pixel technique to "increase" the resolution of the display, just as JSLandscape does. If anyone has an algorithm to increase the effective resolution using sub-pixels, please send it along (Mark Rejhon?) (480x320 and 640x480).
Thanks!!
Dan East
From comp.sys.ibm.pc.hardware.video FAQ...
The VGA modes are:
Mode Type Resolution Chars Colors
(Hex)
0,1 text 360x400 40x25 16
2,3 text 720x400 80x25 16
4,5 gfx 320x200 40x25 4
6 gfx 640x200 80x25 2
7 text 720x400 80x25 mono
D gfx 320x200 40x25 16
E gfx 640x200 80x25 16
F gfx 640x350 80x25 mono
10 gfx 640x350 80x25 16
11 gfx 640x480 80x30 2
12 gfx 640x480 80x30 16
13 gfx 320x200 40x25 256
*******/\/\/\/\/\/B-U-M-P\/\/\/\/\/\*******
It's completely unecessary to BUMP something that's already on the first page; and hasnt left the front page since the threads conception.
Good point, maybe more people should read it! Here, I'll /\BUMP/\ it for ya!

Hey Dan,
did you get the SI benchmark prog I sent you? What scores did ya get?
I got it, and have tried it, but I need to modify the key mappings. Arrows keys don't work in Pocket Bochs at the moment, and I can't get an actual benchmark without navigating with them. The software seems to run fine under Bochs so far.
Dan East
Hi,
I'm quite interested in the Bochs port for Windows CE, as I have some x86 programs that don't work under PocketDOS.
However, the Bochs CPU emulation would have to be dramatically optimised if it was going to be of any use on a Pocket PC.
I've benchmarked the Win32 version of PocketDOS against the Win32 version of Bochs on several Pentium II and Pentium III machines and have found PocketDOS to be 5-15x faster than Bochs.
I used several benchmark programs I got from Simtel. One of the benchmarks measures MIPS:
Bochs-1.2.1 = 1.09 MIPS
PocketDOS 1.03 (Win32) = 11.57 MIPS
PocketDOS 1.03 (WinCE) = 2.74 MIPS
This was run on a 1Ghz Pentium III (Win32) and a 206Mhz Compaq iPaq (WinCE).
Jack
I think Bochs runs at 1MIPS by default and that by using this: "ips: 1000000" command in the bochsrc file you can set the emulated IPS.
Read more about this in the included bochsrc-sample.txt file.
My guess is that by rising the IPS you can get better benchmark results.
OLD!
Guess you're going to have to get the arrow keys working sooner or later, but you can get to the benchmark without using the arrow keys.
Load SI using the switch /DEMO:
SI /DEMO
When it loads, just hit the Next button and it should do the CPU benchmark.
Hi,
RTFM! Ok, I've played around with the IPS setting and have found that a value of 4000000 is about right for a 1Ghz PIII machine. However, as Bochs is obviously not synchronising its clock with a real-time clock, any benchmark run under Bochs is going to be meaningless...
Time to do some real-world tests...
Jack
Hi,
After doing some more testing (with a stopwatch), I've found that the Win32 version of Bochs runs at about 1/3 to 1/2 the speed of the Win32 version of PocketDOS.
On an iPaq, PocketDOS runs at about the same speed as a 20Mhz 80286 or a 10Mhz 80386. This indicates that Bochs might run at the same speed as a 7-10Mhz 80286 or a 3-5Mhz 80386 on an iPaq...
Jack
Nick, it looks like SI performs some low-level floppy access that the FreeDos BIOS doesn't like. SI exits after it starts up with an "Unknown A: Command" error. After that, the OS is screwed, and the C: drive can't even be accessed. I noticed when I run SI on my laptop with W2k, the floppy grinds for a few seconds when it starts up, even though no disk is in the drive. So, SI must do some funky floppy stuff when it starts up.
Dan East
I guess it's about time for another teaser.

Unfortunately, the game locks up at this screen.

Dan East
I can't wait. I want it now. Please? Pretty please?
Dan, you're posting offtopic. Please keep your artworks off the board, you're confusing me.
Na, seriously, GREAT JOB! Woohoo! You're da man!!!
Good luck!
-Shape
wow this would be great, we could finally use a Quake editor right on the PPC with this.
Dan any updates on this? I know your busy and obviously have real life things to contend with but any update even if its nothing new or the project is dead would be good to hear. Also thanks for taking the time to look into this,, it would be very cool and something Id gladly be willing to pay for.
My commercial project will be ready to release very soon. Hopefully after that I can find some time for the emulator and PQ. I will release the source to the emulator when the first beta is released, so perhaps some of the other programmers that frequent this site can contribute as well.
Dan East
sounds great dan, thanks.
ummm... Bump?
I've spoken with another developer, and I'm planning on releasing an Alpha binary of Bochs as-is, along with the source, within 2 weeks. I hope that progress can be made on this project as a joint venture, as I don't have time to devote to it currently.
There are only 2 real issues with my port of Bochs at the moment:
1) A custom SIP is needed that can work in portrait as well as landscape mode. I'm thinking of using a full-screen, alpha-blended keyboard basically like Jacco's innovation as seen in Alice.
2) Currently I'm simply using a Device Context for screen drawing, as opposed to direct screen access (GAPI). Also, only a couple VGA modes are supported. All vga modes need to be implemented, including a sub-pixel or scrolling display for resolutions greater than 320x240.
Dan East
I wonder if my E-125 will be able to run QBASIC Nibbles or Gorillas

Wow this will be neat. Will there be enough documentation to for users to figure out how to get win95 working in it? I really wanna try getting evc++ on my ppc even though it will be slow.
I was just wondering will sound work in the emulator, if not will it someday?
The biggest problem with Bochs is that it uses Disk Images to represent hard disk drives, floppies, etc. So, you have to create a disk image of a certain size (so many sectors, heads, cylinders, etc). Then you have to use another program to move real files into / out of that image. So on your Pocket PC or Storage Card you have this big fat file (exactly the size you want the HDD to be) that you can't get stuff into / out of. You would have to move the file back to your PC to do that.
Dan East
So does that mean if i open QB or eVC++ i wouldnt be able to save any work on my ppc?
No, you can save, etc. My point is that as-is you would have two different worlds on your Pocket PC: the virtual HDD, and all the rest of the real files on your Pocket PC. There will be no way to connect the two together at first.
Dan East
Oh ok, i understand what your saying now. I dont really find that as to big of a problem althought that would mean you would have to run a ppc emu on your ppc to test out cv++ programs, if that wouldnt just be way to slow.
I can't wait! (I mean that in an excited way, but not violently so.)
Someone was already nice enough to put a tutorial up in this very thread on how to get win95 working in bochs. Thanks Mzguy!
http://www.multi.fi/~sgronroo/bochs/bochstut.htm
wow thats awesome I can't wait for the alpha. So Dan will it run dos programs too under windows, like win 95?
OOh thats bad. now i need to get a microdrive, darn.
There are only 2 real issues with my port of Bochs at the moment:
1) A custom SIP is needed that can work in portrait as well as landscape mode. I'm thinking of using a full-screen, alpha-blended keyboard basically like Jacco's innovation as seen in Alice.
2) Currently I'm simply using a Device Context for screen drawing, as opposed to direct screen access (GAPI). Also, only a couple VGA modes are supported. All vga modes need to be implemented, including a sub-pixel or scrolling display for resolutions greater than 320x240.
Dan East
Dan,
let me know if i can help you in some way. I've already coded various emulators for the PocketPC. I would be very happy to partecipate to the project and give a contribute for compliting the work.
Cheers,
Domenico
semi-related to this topic. I can't remember where I saw this (may have been pocketgamer.org) but there is an emu of PC9801 (Japanese 286 based PC) if your desperate for some 86x emu its at
http://www.iiiiii.net/yk/freesoft/pda.html I think you also need
http://www.yui.ne.jp/np2/np2win/index.html as well as this is the PC based emu (that can create images etc. for the PocketPC emu).
I've not tested it as it's not something I'm desperate for.
Chris
I think Dan saidhes releasing the alpha in the next week or so, but Ill give this one a looksie too.
Im just curious though if wolf is unplayable, how long will win95 take to start? like an hour? that would suck.
chris i downloaded this japanese emu and the PC version too. Do you know how to set this thing up at all, as there is no english documentation.
ok i figured how to make a hard drive image and a disk image using the PC version of the emu but now how do I put stuff on that hard drive image? There doesnt seem to be anyway to do this. Any ideas?
Sorry, as I mentioned I didn't check it out

If there are online (Japanese) docs (I didn't check), you could run it through babelfish.altavista.com as they do a Japanese->English translation.
Good luck.
Chris
So... Let's hear from the other developer! Dan's friend, where are you? Hello? Are you there? Are you as cool as Dan? Do you like to eat muffins?
Where are you! I need this program!!! At least tell us if you arn't making it anymore. Thanks
This is just a prediction, but I don't think there's any way win95 will run at a useable speed, even just clicking the start-menu or running notepad. At least, not on my Casio @ 150mhz. I just don't think there's enough power in a PPC right now to *emulate* a 386 fast enough to run win95. Maybe windows 3.1.
If all else fails, use DOS Shell. anyone remember that one?

I would not mind DOS on my PPC with 486 emulation minus all the Windows material. I have a lotta DOS games that just don't run well or run at all in a DOS shell.

i dont think esw meant A do shell, i think he was referring to that old DOS prog called Dosshell. I loved dosshell.... anyway i got that japanese emu to work, pretty simple, I even pulled up the options screen, where you set all the drives to disk images (after the emu loads if you wait awhile it normally comes up, if not try clicking around on the screen; thats where you go to put disk images, make sure you put the disk image in my documents). The only problem I aave is that I still have no working desktop comp, so I cant make any images
I've been following this thread with great interest. If you're reading this, Dan, do you have any idea about these 2 questions:
- How likely is it that sound emulation (SB 8-bit, Adlib/MIDI) will be implemented?
- Any estimate as to what real-life PC speed this will be able to emulate? Like a 386/33?
I'm dying to see if a game like X-COM would be able to run on a PPC... that would be uber cool

The sound emulation is not in place at this time. The problem is that the emulator will run at a very small percent of the speed of the real hardware. Thus the PC software running in the emulator is so slow it cannot supply sound data fast enough for a continuous sound.
Dan East
How'd you get the thing to work, jaybot? I gave it regular disk images, and it didnt seem to do much... what are the files that I need to get that to work besides the emulator? (the disk images are on the microdrive's my documents folder). That, and for some reason, the keyboard's not popping up correctly (just lines on the left side of my ipaq), but I can enter disk images in.
youll need the PC98 roms pack from here:
http://www.x68kpile.com/main.phtml?viewcontent=emusthen put it in the same directory as the emu.
still shows lines on the left hand of the screen- could pocketpc 2002, or gx.dll have anything to do with this?
Ah. Just translated the page the emul is on, and the line bug was due to their software, the new version that they put out has fixed the ipaq problems that are observed.
Yeah but once the disk images are on your PPC how do you get it to the stage where it is a dosshel so you can run programs from it, and where do the programs you want to run have to go? for example wolf3d (not that it would run great, just giving an example of what im asking)
what is dosshel and what exactly can it do?
its the explorer-style prog for dos. unless theres another meaning for it...
aah, yeah...
Dan said:The problem is that the emulator will run at a very small percent of the speed of the real hardware. Thus the PC software running in the emulator is so slow it cannot supply sound data fast enough for a continuous sound.
Hi Dan,
Does this mean that the emulator will never be fast enough on current 206MHz PPCs to support continuous sound? If that is the case, do you think that this problem will be resolved until we see the advent of XScale-equipped PPCs? Thanks.
Matt Riker
Back on that pc-98 emu, it looks like it requires an os that is pc-9801 compatible (i.e. NEC MS-DOS 5.0A, NEC MSDOS 3.3D, EPSON DOS, IBM JDOS/V, etc.). If anything, it might be good to get bootdisks of these for that emul as the conventional MSDOS will not work, if you want it to work.
I can only speculate about the sound performance. It would be dependant on the software running in the emulator, and the exact method in which it access the emulated hardware.
We'll see how that goes once we get the basics taken care of.
Dan East
dan, any idea on an alpha release date?
Any more progress on the PC-98, davinci?
nah, I dont have my MS DOS disks and I have no clue how to get an OS on there, so its usless so far.
youre gonna have to search for a NEC version of MS DOS, a US version wont work. All you need is the disk image of that and whatever else you want in there and then you double click on the screen and make that the harddrive, pretty simple actually.
Okay but then how do I load programs, like Wolf for instance. I need to get the PC emu to recognize something as a dos directory but how do I do that?
um, you don't know how to load something in DOS? If you make a disk image with NEC MSDOS 5 or similar, and you also have wolfenstein on the image (and you set it to the hardrive in the emu), then once the emu starts up, you should get a C:\> prompt. if you dont know how to type cd\wolf3d and enter, then wolf3d from there; I don't know how much more help I can give.

ya how do you put wolfie on the image though?