Question on how emulators work.

Talk about anything and everything not related to this site or the Dreamcast, such as news stories, political discussion, or anything else. If there's not a forum for it, it belongs in here. Also, be warned that personal insults, threats, and spamming will not be tolerated.
Post Reply
crisko
Insane DCEmu
Insane DCEmu
Posts: 140
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Jan 03, 2003 6:55 pm
Location: Guam U.S.A.
Has thanked: 0
Been thanked: 0
Contact:

Question on how emulators work.

Post by crisko »

I think I have an understanding of how they work; An emulator creats a "virtual computer" and performs tasks that pertain to it. Basically tricks the computer into thinking its something that its not? Lamens terms. Anyways, what if, and the only reason I ask is because I just want to know, not that anyone would actually do it, but what if someone loaded, say a SNES emulator, and what if a legit emulator for say, NES, had been released for retail sale, so you had a workable .smc file of an NES emulator. Once the SNES emulator was loaded (whatever it may be), the loaded the NES emulator. How would that work? A computer emulating a computer thats emulating another? Like I said, no one would do it, but what would be goin on technicaly?? Please dont Flame me. Just something I thought of when I was in the restroom.

:flush:
User avatar
Prophet][
DCEmu Mega Fan
DCEmu Mega Fan
Posts: 2984
Joined: Fri May 31, 2002 6:10 am
Location: Adelaide
Has thanked: 0
Been thanked: 0

Post by Prophet][ »

Well, Emulators act like the orginal machine like you said. SO a snes emulator makes, say the Dreamcast, act like the BIOS of a snes making games think it is a snes. It can now run anything a snes could (of course thats if its programed right) So it could indeed run a NES emu (if their were one) As the Dreamcast would be acting like snes which would be acting like a NES. Their is no easy way to explain this, unless you want to get technical, even then it would be hard to understand
User avatar
toastman
Iron Fist of Justice
Iron Fist of Justice
Posts: 4933
Joined: Sat Nov 10, 2001 3:08 am
Location: New Orleans
Has thanked: 0
Been thanked: 0
Contact:

Post by toastman »

It's not as uncommon as you think either.
Linux -> running Wine -> running SNES9x
or better yet :D
Linux -> running Wine -> running Visual Boy Advance -> running PocketNES
No signature.
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

Why not go mad, and do something insane like:
Windows -> running VMWare -> running Linux -> running Wine -> running VBA -> running PocketNES.

An emulator basically takes the program code, and interprets what a real machine would do, and then does it. So emulators work within emulators.
crisko
Insane DCEmu
Insane DCEmu
Posts: 140
Joined: Fri Jan 03, 2003 6:55 pm
Location: Guam U.S.A.
Has thanked: 0
Been thanked: 0
Contact:

Post by crisko »

Prophet, please do get technical. Even if I cant totally grasp it, its something that I would find intresting, toast and black..if you had the time, and would not mind going into more detail that would be great!!! Thnx for your replies thus far!!
|darc|
DCEmu Webmaster
DCEmu Webmaster
Posts: 16378
Joined: Wed Mar 14, 2001 6:00 pm
Location: New Orleans, LA
Has thanked: 109 times
Been thanked: 91 times
Contact:

Post by |darc| »

Basically, when the SNES game tells the processor to do a certain command, the emulator interprets the command and 'translates' it to the processor the emulator is running on.

About your question with the NES on SNES on an emulator, it's possible. PocketNES is a NES emulator for Game Boy Advance. You select an NES ROM, and it makes a new file with both the NES emulator and the NES ROM inside the file, but it is a gba file. When you load that file up into a GBA emulator, it plays just like an NES game would, making it an NES emulator on a GBA emulator on a PC.
It's thinking...
crisko
Insane DCEmu
Insane DCEmu
Posts: 140
Joined: Fri Jan 03, 2003 6:55 pm
Location: Guam U.S.A.
Has thanked: 0
Been thanked: 0
Contact:

Post by crisko »

You guys give me a warm fuzzy feeling inside..or is that the crown and coke? Hehehe. Its amazing...all this, and its being done on a voluntary basis by dedicated individuals.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5663
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

BlackAura wrote:Why not go mad, and do something insane like:
Windows -> running VMWare -> running Linux -> running Wine -> running VBA -> running PocketNES
I can do better:
Windows -> running basilisk-II -> running bochs -> running Windows -> running VMWare -> running Linux -> Running basilisk-II -> running bochs -> running Linux -> Running plex86 -> running Windows -> running bochs -> Runinning Linux -> running Wine -> running VBA -> Running PocketNES
crisko
Insane DCEmu
Insane DCEmu
Posts: 140
Joined: Fri Jan 03, 2003 6:55 pm
Location: Guam U.S.A.
Has thanked: 0
Been thanked: 0
Contact:

Post by crisko »

Wow. When my Brains stop leaking out of my ears....well, wow. What are the specs of the PC running that? I can only imagine what Processor is going through. In situations like these I wish I knew more about programing..you guys know whats going on inside..I dont. I mean, I would love to know the tasks and requests being performed by the emulators/harware, in laymens terms.
Speeddemon
Mental DCEmu
Mental DCEmu
Posts: 336
Joined: Tue Feb 19, 2002 6:47 pm
Location: Toronto CANADA
Has thanked: 0
Been thanked: 0
Contact:

Post by Speeddemon »

EEEK EMULATOR PARADOXES
P|-|33r |\/|3 B147C|-|!!!
404NotFound
DCEmu Ex-Mod
DCEmu Ex-Mod
Posts: 4970
Joined: Thu Nov 29, 2001 3:40 pm
Location: The Canadian-Mexican border.
Has thanked: 0
Been thanked: 0

Post by 404NotFound »

BlackAura wrote:Why not go mad, and do something insane like:
Windows -> running VMWare -> running Linux -> running Wine -> running VBA -> running PocketNES.

An emulator basically takes the program code, and interprets what a real machine would do, and then does it. So emulators work within emulators.
On slashdot some people were running Wine in Cygwin, which was running another instance of Wine.. etc

Or it was something like that which had to do with Wine.. maybe it was Cygwin in Wine, which was running another instance of Wine...

Anyway, they were running 8 instances of Wine O_o
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

Mmm... Recursive Emulation.
crisko wrote:You guys give me a warm fuzzy feeling inside..or is that the crown and coke? Hehehe. Its amazing...all this, and its being done on a voluntary basis by dedicated individuals.
I know - it's good, isn't it?
perry
Tha DCEmu Pimp Daddy
Tha DCEmu Pimp Daddy
Posts: 5492
Joined: Sun Dec 09, 2001 4:29 pm
Location: Goodison Park
Has thanked: 0
Been thanked: 0

Post by perry »

Yeah but when you emulate sometihng which emulate's sometihng else...It's gonna take up more processing power. 0_o What the hell would you do with eight instance's of WINE ?
In the words of Q-Tip : Looking for vibes or positivity, not negativity / 'Cause we gotta strive for longevity by online gaming
crisko
Insane DCEmu
Insane DCEmu
Posts: 140
Joined: Fri Jan 03, 2003 6:55 pm
Location: Guam U.S.A.
Has thanked: 0
Been thanked: 0
Contact:

Post by crisko »

perry2175 wrote:Yeah but when you emulate sometihng which emulate's sometihng else...It's gonna take up more processing power. 0_o What the hell would you do with eight instance's of WINE ?
Hopefully she'll be drunk.:twisted:

On a serious note; if you were to compare the specs of the DC to a computer, at what level would the DC be at?? I want to know before I make my next statement...so I dont sound like to big of a fool. But hey, we all need our class clowns!!!



:joystick:
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Post by BlackAura »

It'll slow down a lot. Cygwin tends to run stuff much slower than Linux, so that alone would make it run at about 1/8th speed. Take Wine into account: Press key... wait... more wait... character appears on screen.

The DC, numerically, is equivalent to a P2-200MHz with 16MB of RAM and a very, very fast graphics card (compared to the CPU). For 3d games, it's more like a 300/350MHz CPU, because Intel (and clones) CPUs are really bad at floating point math, which is needed for 3d games, and SH-4s are comparatively brilliant. And the hardware was designed for games, of course.

For emulators, it's not much faster than a P2-200Mhz. That's not based on any measurements or anything.
Post Reply