X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-rsp-hle%2Fsrc%2Fcicx105.c;h=49a799b6fb56b168937ff351482c255ea576b859;hb=0a8a0368662b34eac6f2f01d708415e81b81bd88;hp=1e890569159d7c579699041b9d06e4ee9f707e0a;hpb=d9e74a6f3c9f96acfb0d64f4bda43f9b9c14984e;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-rsp-hle/src/cicx105.c b/source/mupen64plus-rsp-hle/src/cicx105.c old mode 100644 new mode 100755 index 1e89056..49a799b --- a/source/mupen64plus-rsp-hle/src/cicx105.c +++ b/source/mupen64plus-rsp-hle/src/cicx105.c @@ -23,33 +23,33 @@ #include +#include "m64p_plugin.h" #include "hle.h" +#include "cicx105.h" /** * 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() +void cicx105_ucode(void) { - // memcpy is okay to use because access constrains are met (alignment, size) + /* memcpy is okay to use because access constrains are met (alignment, size) */ unsigned int i; - unsigned char * dst = rsp.RDRAM + 0x2fb1f0; - unsigned char * src = rsp.IMEM + 0x120; + unsigned char *dst = rsp.RDRAM + 0x2fb1f0; + unsigned char *src = rsp.IMEM + 0x120; /* dma_read(0x1120, 0x1e8, 0x1e8) */ memcpy(rsp.IMEM + 0x120, rsp.RDRAM + 0x1e8, 0x1f0); /* dma_write(0x1120, 0x2fb1f0, 0xfe817000) */ - for (i = 0; i < 24; ++i) - { + for (i = 0; i < 24; ++i) { memcpy(dst, src, 8); dst += 0xff0; src += 0x8; } } -