12-29-2010, 02:17 AM
This probably should have been in the developer forum but I couldn't create a new thread in that forum for some reason :\
Anyways, Im a newbie programmer but I had couple questions about PCSX2. The first question is how does the coding for EE/VU emulation work in general? Does Sony provide the authors with a list of instructions that they have to emulate for each of the units? How do they figure out what the instructions are that they have to emulate for the PS2?
From what I've read in the blogs about dynamic recompilation, PCSX2 translates a block of PS2 instructions into x86 instructions. Im guessing PCSX2 uses C++, so how do you get C++ to generate code during run-time and run it? I don't get how you can create code to run dynamically and then run it.
Thanks a lot if you guys answer it =) I'd really like to get more experience programming and it'd be really awesome if I could contribute to PCSX!
Anyways, Im a newbie programmer but I had couple questions about PCSX2. The first question is how does the coding for EE/VU emulation work in general? Does Sony provide the authors with a list of instructions that they have to emulate for each of the units? How do they figure out what the instructions are that they have to emulate for the PS2?
From what I've read in the blogs about dynamic recompilation, PCSX2 translates a block of PS2 instructions into x86 instructions. Im guessing PCSX2 uses C++, so how do you get C++ to generate code during run-time and run it? I don't get how you can create code to run dynamically and then run it.
Thanks a lot if you guys answer it =) I'd really like to get more experience programming and it'd be really awesome if I could contribute to PCSX!