Пример #1
0
void hle_execute(struct hle_t* hle)
{
    if (is_task(hle)) {
        if (!try_fast_task_dispatching(hle))
            normal_task_dispatching(hle);
        rsp_break(hle, SP_STATUS_TASKDONE);
    } else {
        non_task_dispatching(hle);
        rsp_break(hle, 0);
    }
}
Пример #2
0
EXPORT unsigned int CALL DoRspCycles(unsigned int Cycles)
{
    if (is_task()) {
        if (!try_fast_task_dispatching())
            normal_task_dispatching();
        rsp_break(RSP_STATUS_TASKDONE);
    } else {
        non_task_dispatching();
        rsp_break(0);
    }

    return Cycles;
}
Пример #3
0
void CHle::hle_execute(void)
{
    if (is_task())
    {
        if (!try_fast_task_dispatching())
        {
            normal_task_dispatching();
        }
        rsp_break(SP_STATUS_SIG2);
    }
    else
    {
        non_task_dispatching();
        rsp_break(0);
    }
}
Пример #4
0
/**
 * During IPL3 stage of CIC x105 games, the RSP performs some checks and transactions
 * necessary for booting the game.
 *
 * We only implement the needed DMA transactions for booting.
 *
 * Found in Banjo-Tooie, Zelda, Perfect Dark, ...)
 **/
void cicx105_ucode(struct hle_t* hle)
{
    /* memcpy is okay to use because access constrains are met (alignment, size) */
    unsigned int i;
    unsigned char *dst = hle->dram + 0x2fb1f0;
    unsigned char *src = hle->imem + 0x120;

    /* dma_read(0x1120, 0x1e8, 0x1e8) */
    memcpy(hle->imem + 0x120, hle->dram + 0x1e8, 0x1f0);

    /* dma_write(0x1120, 0x2fb1f0, 0xfe817000) */
    for (i = 0; i < 24; ++i) {
        memcpy(dst, src, 8);
        dst += 0xff0;
        src += 0x8;

    }

    rsp_break(hle, 0);
}