Yes, it’s that PCem. And yes BASIC.
From the post on the freebasic.net/forum.
Some time ago I raised a challenge: make a PC emulator 80486 in Basic !!!
To achieve this, I used a very old version of PCEM, with the help of “FreeBasic”, starting from PCEM-V4.1, about six months ago, I managed to make it work, in 80286 mode only. Then I went little by little adding functionalities of the following versions, until arriving at the V8 (not completely, but if great part). Due to the complexity and lack of speed in BASIC, I have only converted the modules that have interested me the most, eliminating many unnecessary ones, so I have managed to reach an 80486-DX2-66mhz with FPU, 16mb of RAM and VGA TSENG of 2mb.
I have removed many non-necessary modules, such as the sound (it does not have any sound), the LPT port, the PS2 port, the FDC unit and more.
It has many faults, but in general they work VERY well, and it is capable of running “WINDOWS 3.11”, “Deluxe Paint”, “Wolfstein 3D” and many other programs.Â
It can reach a resolution of 800×600 to 16 colors, but it moves better in 640×480 16 colors.
The keyboard fails, all the keys do not work, and neither EMM386.EXE nor EXPANDED memory can be used, because it fails and becomes very slow.
It works in both protected mode and real mode, but when entering protected mode, the PC becomes slow.
It’s slow, but yes, it runs!
It only has one config hard coded, as jepalza ported enough of it for this one config. Oddly enough it’s my least favorite the ‘winbios’ 486.
I have to say this is pretty cool!
As always, here is my mirror (usual 404 page reading required) here: PCEM_FB486.rar
nice, but your freebasic code is terrible….
not used -gen gcc to optimize it (not doing that would be almost equivalent of compiling with -O0 in C)
using “dim shared” instead of the faster “static shared” for global fixed size arrays… using “select case as const” with just 3 options (thats slow even with -gen gcc) using one line functions instead of macros, using loops instead of memset to set byte arrays, settings byte arrays byte by byte instead of int by int, for a project of this magnitude using “screen” instead of “screenres” make it feel you are coding for qbasic, not using “=any” on local variables that dont need to be initialized to 0 (all of them since this was converted from c), not using freebasic pointers, etc…
Which makes it doubly surprising that it works as well as it does. Also, you make it sound like this is neozeed’s code. It isn’t, and I doubt that the person who did write the code will see you comments here.
> your freebasic code
It’s not mine. It’s written by jepalza.
You should follow it up on his post:
https://www.freebasic.net/forum/viewtopic.php?f=8&p=258396#p258396
oops, you are right… so damn used to write that way… 🙁
That’s pretty awesome. I wrote a FreeBASIC 80186 PC emulator in 2011 that worked really well. It ran most old games, Windows 3.0 and MINIX, etc. A few years later, I ported it to VB6 for fun.
It took 8 years, but I’ve been officially beaten now with a 486 emulator. Good work! 🙂
I’ll have to get back to work and see if I can reclaim the crown somehow. Competition breeds progress!
PCEM 286 可能有BUG,286 gate descriptors type 是 4-7,但是PCEM 支持大于8的descriptors type
What is that Bios for PCem named? American Megatrends with that bios with mouse? Cheers!
What is that Bios rom for PCem named? American Megatrends with that bios with mouse? Cheers!
Winbios?