sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
iop_cop0_defs.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright (c) 2009 PS2DEV.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
17
#ifndef __IOP_COP0_DEFS_H__
18
#define __IOP_COP0_DEFS_H__
19
20
#define M_IOP_GET_CAUSE_EXCODE(__cause) (((__cause) >> 2) & 0x1F)
21
22
// IOP COP0 register names
23
#define IOP_COP0_BPC $3
24
#define IOP_COP0_BDA $5
25
#define IOP_COP0_DCIC $7
26
#define IOP_COP0_BADVADDR $8
27
#define IOP_COP0_BDAM $9
28
#define IOP_COP0_BPCM $11
29
#define IOP_COP0_STATUS $12
30
31
// IOP COP0 DCIC Register
33
#define IOP_DCIC_TR 0x80000000
35
#define IOP_DCIC_UD 0x40000000
37
#define IOP_DCIC_KD 0x20000000
39
#define IOP_DCIC_TE 0x10000000
41
#define IOP_DCIC_DW 0x08000000
43
#define IOP_DCIC_DR 0x04000000
45
#define IOP_DCIC_DAE 0x02000000
47
#define IOP_DCIC_PCE 0x01000000
49
#define IOP_DCIC_DE 0x00800000
51
#define IOP_DCIC_DL 0x00008000
53
#define IOP_DCIC_IL 0x00004000
55
#define IOP_DCIC_D 0x00002000
57
#define IOP_DCIC_I 0x00001000
59
#define IOP_DCIC_T 0x00000020
61
#define IOP_DCIC_W 0x00000010
63
#define IOP_DCIC_R 0x00000008
65
#define IOP_DCIC_DA 0x00000004
67
#define IOP_DCIC_PC 0x00000002
69
#define IOP_DCIC_DB 0x00000001
70
71
// IOP COP0 Cause Register
72
#define IOP_CAUSE_BD (1 << 31)
73
74
#endif
/* __IOP_COP0_DEFS_H__ */
core
common
include
iop_cop0_defs.h
Generated by
1.18.0