~ubuntu-branches/debian/experimental/mednafen/experimental

« back to all changes in this revision

Viewing changes to src/psx/psx.h

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-01-31 07:21:35 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120131072135-es3dj12y00xcnrsk
Tags: 0.9.19-1
* New upstream WIP version.
* Update copyright information.
* Refresh use-system-tremor.patch and remove psx-big-endian-only.patch.
* Add spelling-fixes.patch based on Lintian's recommendations.
* Build-depend on debhelper 9 or later and remove corresponding Lintian
  override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
{
16
16
 typedef int32 pscpu_timestamp_t;
17
17
 
18
 
 pscpu_timestamp_t PSX_EventHandler(const pscpu_timestamp_t timestamp);
19
 
 
20
 
 void PSX_MemWrite8(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
21
 
 void PSX_MemWrite16(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
22
 
 void PSX_MemWrite24(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
23
 
 void PSX_MemWrite32(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
24
 
 
25
 
 uint8 PSX_MemRead8(const pscpu_timestamp_t timestamp, uint32 A);
26
 
 uint16 PSX_MemRead16(const pscpu_timestamp_t timestamp, uint32 A);
27
 
 uint32 PSX_MemRead24(const pscpu_timestamp_t timestamp, uint32 A);
28
 
 uint32 PSX_MemRead32(const pscpu_timestamp_t timestamp, uint32 A);
 
18
 pscpu_timestamp_t MDFN_FASTCALL PSX_EventHandler(const pscpu_timestamp_t timestamp);
 
19
 
 
20
 void MDFN_FASTCALL PSX_MemWrite8(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
 
21
 void MDFN_FASTCALL PSX_MemWrite16(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
 
22
 void MDFN_FASTCALL PSX_MemWrite24(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
 
23
 void MDFN_FASTCALL PSX_MemWrite32(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
 
24
 
 
25
 uint8 MDFN_FASTCALL PSX_MemRead8(const pscpu_timestamp_t timestamp, uint32 A);
 
26
 uint16 MDFN_FASTCALL PSX_MemRead16(const pscpu_timestamp_t timestamp, uint32 A);
 
27
 uint32 MDFN_FASTCALL PSX_MemRead24(const pscpu_timestamp_t timestamp, uint32 A);
 
28
 uint32 MDFN_FASTCALL PSX_MemRead32(const pscpu_timestamp_t timestamp, uint32 A);
29
29
 
30
30
 uint8 PSX_MemPeek8(uint32 A);
31
31
 uint16 PSX_MemPeek16(uint32 A);
39
39
 #endif
40
40
 
41
41
 void PSX_RequestMLExit(void);
 
42
 
 
43
 // Insert new event types at end, not in the beginning or middile.
 
44
 enum
 
45
 {
 
46
  PSX_EVENT_GPU = 0,
 
47
  PSX_EVENT_CDC,
 
48
  PSX_EVENT_SPU,
 
49
  PSX_EVENT_TIMER,
 
50
  PSX_EVENT_DMA,
 
51
  PSX_EVENT_FIO,
 
52
 };
 
53
 
 
54
 #define PSX_EVENT_MAXTS                0x20000000
 
55
 void PSX_SetEventNT(const int type, const pscpu_timestamp_t next_timestamp);
42
56
};
 
57
 
43
58
#include "dis.h"
44
59
#include "cpu.h"
45
60
#include "irq.h"
46
 
#include "timer.h"
47
61
#include "gpu.h"
48
 
#include "cdc.h"
49
 
#include "spu.h"
50
62
#include "dma.h"
51
63
//#include "sio.h"
52
 
#include "frontio.h"
53
 
#include "mdec.h"
54
64
#include "debug.h"
55
65
 
56
66
namespace MDFN_IEN_PSX
57
67
{
 
68
 class PS_CDC;
 
69
 class PS_SPU;
 
70
 
58
71
 extern PS_CPU *CPU;
59
72
 extern PS_GPU *GPU;
60
73
 extern PS_CDC *CDC;