Allegro.cc - Online Community

Allegro.cc Forums » Game Design & Concepts » Emulator of 486 in 2 days

This thread is locked; no one can reply to it. rss feed Print
Emulator of 486 in 2 days
RmBeer2
Member #16,660
April 2017
avatar

After programming for 1+1/2 days and fixed compilation errors for the rest of the second day. I am done with the Emulator, it seems to work perfectly and I am happy with the result. There seems to be no execution error at first time except for sending registers to the interruption that was also fixed:

{"name":"zEDl.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/9\/792282c0f1582f0175022e717e0632f2.png","w":492,"h":238,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/9\/792282c0f1582f0175022e717e0632f2"}zEDl.png
{"name":"zEDU.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/c\/cc49a122f124c0d42b92a719a0ab9c3b.png","w":669,"h":232,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/c\/cc49a122f124c0d42b92a719a0ab9c3b"}zEDU.png

I show a portion of the most relevant code and the result of the execution.
What it does is first prepare the entire environment, so the text is at address 0x1000 and executes an Interrupt to print the text.

The emulator is completely an interpreter of bytecodes of X86 instructions in 32 bits, it does nothing more than execute instructions at the maximum speed of the machine. It stops the Interruptions, the Ports, and the zones of memories simulating a direct access to the Hardware.

I am still completing the hardware simulations and complementing my personal server.

🌈🌈🌈 🌟 BlackRook WebSite (Only valid from my installer) 🌟 C/C++ 🌟 GNU/Linux 🌟 IceCream/Cornet 🌟 🌈🌈🌈

Rm Beer for Emperor 2021! Rm Beer for Ruinous Slave Drained 2022! Rm Beer for Traveler From The Future Warning Not To Enter In 2023! Rm Beer are building a travel machine for Go Back from 2023! Rm Beer in an apocalyptic world burning hordes of Zombies in 2024!

GullRaDriel
Member #3,861
September 2003
avatar

What is the need behind this ?

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Elias
Member #358
May 2000

To learn and to have fun!

--
"Either help out or stop whining" - Evert

jmasterx
Member #11,410
October 2009

Can you install Windows 95 on it?

Chris Katko
Member #1,881
January 2002
avatar

What's the need for a sunrise?

-----sig:
β€œPrograms should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

RmBeer2
Member #16,660
April 2017
avatar

What is the need to play?

🌈🌈🌈 🌟 BlackRook WebSite (Only valid from my installer) 🌟 C/C++ 🌟 GNU/Linux 🌟 IceCream/Cornet 🌟 🌈🌈🌈

Rm Beer for Emperor 2021! Rm Beer for Ruinous Slave Drained 2022! Rm Beer for Traveler From The Future Warning Not To Enter In 2023! Rm Beer are building a travel machine for Go Back from 2023! Rm Beer in an apocalyptic world burning hordes of Zombies in 2024!

Bob Keane
Member #7,342
June 2006

The world can use as many emulators as it can get. Good luck RmBeer2.

{"name":"612193","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/8\/1809e3307dace657fec53e1201b2fa07.png","w":254,"h":490,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/8\/1809e3307dace657fec53e1201b2fa07"}612193

And are you going to add sound like the drives running?

Quote PCem:

Sebiohazard wrote: ↑
Wed 13 Nov, 2019 9:07 pm
2. In the future will it be possible to emulate the sound of floppy drives (as for WinUAE) and the sound of HDD :) ?

Thanks best regards !

Leilei made a patch available here : viewtopic.php?f=4&t=3205 but it is not merged and I didn't test it.
Regards.

PCem

By reading this sig, I, the reader, agree to render my soul to Bob Keane. I, the reader, understand this is a legally binding contract and freely render my soul.
"Love thy neighbor as much as you love yourself means be nice to the people next door. Everyone else can go to hell. Missy Cooper.
The advantage to learning something on your own is that there is no one there to tell you something can't be done.

Go to: