blob: eed960569a47d2306adf79d11b6b506da9e5109d (
plain)
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
|
#ifndef JASTRACKPORT_H
#define JASTRACKPORT_H
#include "dolphin/types.h"
#define TRACKPORT_MAX (16)
namespace JASystem {
class TTrackPort {
public:
void init();
u16 readImport(int);
u16 readExport(int);
void writeImport(int, u16);
void writeExport(int, u16);
u8 checkImport(int i) const { return mImportFlag[i]; }
u8 checkExport(int i) const { return mExportFlag[i]; }
u16 get(u32 i) { return mValue[i]; }
/* 0x00 */ u8 mImportFlag[TRACKPORT_MAX];
/* 0x10 */ u8 mExportFlag[TRACKPORT_MAX];
/* 0x20 */ u16 mValue[TRACKPORT_MAX];
};
}
#endif /* JASTRACKPORT_H */
|