PCSX2 Documentation/Introduction to Dynamic Recompilation: Difference between revisions
PCSX2 Documentation/Introduction to Dynamic Recompilation (view source)
Revision as of 19:14, 19 July 2015
, 19 July 2015no 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): | ||
< | <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 |