mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-23 06:54:16 -04:00
255d01c6db
* Almost fully match JASTrack, regalloc in writeRegParam * 100% match JASTrack * Move constructor to header to link successfully
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#ifndef JASTRACKINTERRUPT_H
|
|
#define JASTRACKINTERRUPT_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
namespace JASystem {
|
|
enum RequestId {
|
|
REQUEST_UNK_0 = 0,
|
|
REQUEST_UNK_1 = 1,
|
|
REQUEST_UNK_2 = 2,
|
|
REQUEST_UNK_3 = 3,
|
|
REQUEST_UNK_4 = 4,
|
|
REQUEST_UNK_5 = 5,
|
|
REQUEST_UNK_6 = 6,
|
|
REQUEST_UNK_7 = 7,
|
|
};
|
|
|
|
class TIntrMgr {
|
|
public:
|
|
void disable() { field_0x0 = 0; }
|
|
void enable() { field_0x0 = 1; }
|
|
void setTimer(u32 param_1, u32 param_2) {
|
|
field_0x3 = param_1;
|
|
field_0x4 = param_2;
|
|
field_0x8 = param_2;
|
|
}
|
|
|
|
void init();
|
|
void request(u32);
|
|
void setIntr(u32, void*);
|
|
void resetInter(u32);
|
|
void* checkIntr();
|
|
void timerProcess();
|
|
|
|
/* 0x00 */ u8 field_0x0;
|
|
/* 0x01 */ u8 field_0x1;
|
|
/* 0x02 */ u8 field_0x2;
|
|
/* 0x03 */ u8 field_0x3;
|
|
/* 0x04 */ u32 field_0x4;
|
|
/* 0x08 */ u32 field_0x8;
|
|
/* 0x0C */ void* field_0xc[8];
|
|
};
|
|
}
|
|
|
|
#endif /* JASTRACKINTERRUPT_H */
|