PS2SDK
PS2 Homebrew Libraries
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
#ifndef __IOP_COP0_DEFS_H__
17
#define __IOP_COP0_DEFS_H__
18
19
#define M_IOP_GET_CAUSE_EXCODE(__cause) (((__cause) >> 2) & 0x1F)
20
21
// IOP COP0 register names
22
#define IOP_COP0_BPC $3
23
#define IOP_COP0_BDA $5
24
#define IOP_COP0_DCIC $7
25
#define IOP_COP0_BADVADDR $8
26
#define IOP_COP0_BDAM $9
27
#define IOP_COP0_BPCM $11
28
#define IOP_COP0_STATUS $12
29
30
// IOP COP0 DCIC Register
32
#define IOP_DCIC_TR 0x80000000
34
#define IOP_DCIC_UD 0x40000000
36
#define IOP_DCIC_KD 0x20000000
38
#define IOP_DCIC_TE 0x10000000
40
#define IOP_DCIC_DW 0x08000000
42
#define IOP_DCIC_DR 0x04000000
44
#define IOP_DCIC_DAE 0x02000000
46
#define IOP_DCIC_PCE 0x01000000
48
#define IOP_DCIC_DE 0x00800000
50
#define IOP_DCIC_DL 0x00008000
52
#define IOP_DCIC_IL 0x00004000
54
#define IOP_DCIC_D 0x00002000
56
#define IOP_DCIC_I 0x00001000
58
#define IOP_DCIC_T 0x00000020
60
#define IOP_DCIC_W 0x00000010
62
#define IOP_DCIC_R 0x00000008
64
#define IOP_DCIC_DA 0x00000004
66
#define IOP_DCIC_PC 0x00000002
68
#define IOP_DCIC_DB 0x00000001
69
70
// IOP COP0 Cause Register
71
#define IOP_CAUSE_BD (1 << 31)
72
73
#endif
/* __IOP_COP0_DEFS_H__ */
common
include
iop_cop0_defs.h
Generated on Thu Nov 14 2024 05:25:24 for PS2SDK by
1.9.8