PCSX2 Documentation/Introduction to Dynamic Recompilation: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:
Lets assume the processor we are emulating is a made-up chip I'll call SL3 (super lame 3), and has only these 3 instructions (and each instruction has fixed width of 4 bytes):
Lets assume the processor we are emulating is a made-up chip I'll call SL3 (super lame 3), and has only these 3 instructions (and each instruction has fixed width of 4 bytes):


<code lang="asm">
<source lang="asm">
MOV dest_reg, src1_reg // Move source register to destination register
MOV dest_reg, src1_reg // Move source register to destination register
ADD dest_reg, src1_reg, src2_reg // Add source1 and source2 registers, and store the result in destination register
ADD dest_reg, src1_reg, src2_reg // Add source1 and source2 registers, and store the result in destination register
ninja
782

edits