Emulation

MintyDragon

Active Member
OP
Newcomer
Joined
Jul 28, 2014
Messages
31
Trophies
0
Age
27
XP
89
Country
Why in emulateion do you only have interpert and dyn recompiler. would it not be possable to read the whole game and convert it to the binary format needed or at least a intermate langauge for the emulator to use.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
Theoretically you probably could do something like that, especially if you were willing to help it along on a game by game basis. Practically you want to look up something called the halting problem. There are some great advancements happening (decompilation of C is surprisingly useful these days) but you are still going to run into the halting problem.
 
  • Like
Reactions: Margen67

CTurt

Well-Known Member
Member
Joined
May 3, 2015
Messages
73
Trophies
0
XP
317
Country
This process is called static recompilation and is possible in some cases. There is a good article about doing it with NES games here. There are many problems with this approach though, if code modifies itself for example (it is not uncommon for binaries to be decompressed at runtime).

From the conclusion of the article:
After completing this project, I believe that static recompilation does not have a practical application for video game emulation. It is thwarted by the inability to completely disassemble a game without executing it as well as the fact that multiple systems are executing in parallel, possibly causing interrupts in the game code. There is a constant struggle between correctness and optimized code. Nearly all optimizations must be tossed out the window in the interest of correctness. Even more compromises would have to be made to start supporting advanced emulator features such as saving state or rewinding.
 

MintyDragon

Active Member
OP
Newcomer
Joined
Jul 28, 2014
Messages
31
Trophies
0
Age
27
XP
89
Country
So what about intermate langague then. this would still be modifyable but still easyer to read than mips assembly but faster than recompileion
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    ZeroT21 @ ZeroT21: :lol: