sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
s_i.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#include "
libspu2_internal.h
"
12
13
int
_spu_eea[4] = {15, 15, 0, 0};
14
15
int
_spu_core;
16
17
void
SpuInit(
void
)
18
{
19
_spu_core = 0;
20
_spu2_config_initialize();
21
_SpuInit(0);
22
_spu2_config_initialize_typically();
23
}
24
25
unsigned
int
SpuSetCore(
unsigned
int
which_core)
26
{
27
unsigned
int
result;
28
29
result = _spu_core;
30
_spu_core = which_core & 1;
31
return
result;
32
}
33
34
unsigned
int
SpuGetCore(
void
)
35
{
36
return
_spu_core;
37
}
38
39
void
SpuSetReverbEndAddr(
unsigned
int
eea)
40
{
41
_spu_eea[_spu_core] = (eea >> 17) & 0xF;
42
_spu_RXX[512 * _spu_core + 207] = _spu_eea[_spu_core];
43
}
44
45
unsigned
int
SpuGetReverbEndAddr(
void
)
46
{
47
return
(_spu_RXX[512 * _spu_core + 414] << 17) | 0x1FFFF;
48
}
libspu2_internal.h
core
libspu2
src
s_i.c
Generated by
1.18.0