forked from kode54/libupse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upse-ps1-bios-private.h
64 lines (60 loc) · 2.06 KB
/
upse-ps1-bios-private.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* UPSE: the unix playstation sound emulator.
*
* Filename: upse-ps1-bios-private.h
* Purpose: libupse: UPSE PS1 FakeBIOS private defines/functions
*
* Copyright (c) 2007 William Pitcock <[email protected]>
* Portions copyright (c) 1999-2002 Pcsx Team
* Portions copyright (c) 2004 "Xodnizel"
*
* UPSE is free software, released under the GNU General Public License,
* version 2.
*
* A copy of the GNU General Public License, version 2, is included in
* the UPSE source kit as COPYING.
*
* UPSE is offered without any warranty of any kind, explicit or implicit.
*/
#ifndef _UPSE__LIBUPSE__UPSE_PS1_BIOS_PRIVATE_H__GUARD
#define _UPSE__LIBUPSE__UPSE_PS1_BIOS_PRIVATE_H__GUARD
//#define r0 (ins->cpustate.GPR.n.r0)
#define at (ins->cpustate.GPR.n.at)
#define v0 (ins->cpustate.GPR.n.v0)
#define v1 (ins->cpustate.GPR.n.v1)
#define a0 (ins->cpustate.GPR.n.a0)
#define a1 (ins->cpustate.GPR.n.a1)
#define a2 (ins->cpustate.GPR.n.a2)
#define a3 (ins->cpustate.GPR.n.a3)
#define t0 (ins->cpustate.GPR.n.t0)
#define t1 (ins->cpustate.GPR.n.t1)
#define t2 (ins->cpustate.GPR.n.t2)
#define t3 (ins->cpustate.GPR.n.t3)
#define t4 (ins->cpustate.GPR.n.t4)
#define t5 (ins->cpustate.GPR.n.t5)
#define t6 (ins->cpustate.GPR.n.t6)
#define t7 (ins->cpustate.GPR.n.t7)
#define s0 (ins->cpustate.GPR.n.s0)
#define s1 (ins->cpustate.GPR.n.s1)
#define s2 (ins->cpustate.GPR.n.s2)
#define s3 (ins->cpustate.GPR.n.s3)
#define s4 (ins->cpustate.GPR.n.s4)
#define s5 (ins->cpustate.GPR.n.s5)
#define s6 (ins->cpustate.GPR.n.s6)
#define s7 (ins->cpustate.GPR.n.s7)
#define t8 (ins->cpustate.GPR.n.t6)
#define t9 (ins->cpustate.GPR.n.t7)
#define k0 (ins->cpustate.GPR.n.k0)
#define k1 (ins->cpustate.GPR.n.k1)
#define gp (ins->cpustate.GPR.n.gp)
#define sp (ins->cpustate.GPR.n.sp)
#define fp (ins->cpustate.GPR.n.s8)
#define ra (ins->cpustate.GPR.n.ra)
#define pc0 (ins->cpustate.pc)
#define Ra0 ((char*)PSXM(ins, a0))
#define Ra1 ((char*)PSXM(ins, a1))
#define Ra2 ((char*)PSXM(ins, a2))
#define Ra3 ((char*)PSXM(ins, a3))
#define Rv0 ((char*)PSXM(ins, v0))
#define Rsp ((char*)PSXM(ins, sp))
#endif