![]() |
![]() |
![]() |
![]() |
![]() |
Make "Slave of the VU" work.
Posted on 2006-03-03 00:00:00 |
Implemented VU lower instructions XTOP, ILW, IADDIU, LQ, SQI, LQI and IADD.
Implemented VU upper instructions MULAbc, MADDAbc, MADDbc and ADD. Those were just a matter of isolating the current implementation for these instructions from the COP2 implementation in a shared module and calling the functions. I found a solution for the branching problem too. Instead of having the actual branching instructions trigger the branch checking code, I'll check if there's a branch instruction 8 instructions prior to the one currently being compiled and trigger the branch checking code if one is found. I also added a quick and dirty RLE compression scheme for saved states. Any other method would probably way more efficient, but the RLE compression will be fine for the moment as it always generates files smaller than the actual size of the states. Tomorrow, I'll continue implementing the instructions in the VU. |