PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
breakpoint.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, 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 "
ioptrap.h
"
12
13
void
set_dba(u32 v)
14
{
15
__asm__ __volatile__(
"mtc0 %0, $5"
16
:
17
:
"r"
(v));
18
}
19
20
void
set_dbam(u32 v)
21
{
22
__asm__ __volatile__(
"mtc0 %0, $9"
23
:
24
:
"r"
(v));
25
}
26
27
void
set_dcic(u32 v)
28
{
29
__asm__ __volatile__(
"mtc0 %0, $7"
30
:
31
:
"r"
(v));
32
}
33
34
u32 get_dba()
35
{
36
u32 v;
37
__asm__ __volatile__(
"mfc0 %0, $5"
38
:
"=&r"
(v));
39
return
v;
40
}
41
42
u32 get_dbam()
43
{
44
u32 v;
45
__asm__ __volatile__(
"mfc0 %0, $9"
46
:
"=&r"
(v));
47
return
v;
48
}
49
50
u32 get_dcic()
51
{
52
u32 v;
53
__asm__ __volatile__(
"mfc0 %0, $7"
54
:
"=&r"
(v));
55
return
v;
56
}
ioptrap.h
iop
debug
ioptrap
src
breakpoint.c
Generated on Thu Nov 14 2024 05:25:26 for PS2SDK by
1.9.8