sys_time_get_current_time fixed, CALL_FUNC draft

This commit is contained in:
Nekotekina 2015-07-06 02:21:15 +03:00
parent 22e1da5e76
commit 83321c5be7
46 changed files with 385 additions and 351 deletions

View file

@ -2261,8 +2261,8 @@ void ppu_interpreter::MFSPR(PPUThread& CPU, ppu_opcode_t op)
case 0x100: CPU.GPR[op.rd] = CPU.VRSAVE; return;
case 0x103: CPU.GPR[op.rd] = CPU.SPRG[3]; return;
case 0x10C: CPU.TB = get_time(); CPU.GPR[op.rd] = CPU.TB; return;
case 0x10D: CPU.TB = get_time(); CPU.GPR[op.rd] = CPU.TB >> 32; return;
case 0x10C: CPU.TB = get_timebased_time(); CPU.GPR[op.rd] = CPU.TB; return;
case 0x10D: CPU.TB = get_timebased_time(); CPU.GPR[op.rd] = CPU.TB >> 32; return;
case 0x110:
case 0x111:
@ -2303,7 +2303,7 @@ void ppu_interpreter::MFTB(PPUThread& CPU, ppu_opcode_t op)
{
const u32 n = (op.spr >> 5) | ((op.spr & 0x1f) << 5);
CPU.TB = get_time();
CPU.TB = get_timebased_time();
switch (n)
{
case 0x10C: CPU.GPR[op.rd] = CPU.TB; break;