mirror of https://github.com/zeldaret/tp.git
50 lines
1.6 KiB
C++
50 lines
1.6 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: JASTrackPort
|
|
//
|
|
|
|
#include "JSystem/JAudio2/JASTrackPort.h"
|
|
|
|
/* 8029354C-8029357C 28DE8C 0030+00 0/0 1/1 0/0 .text init__12JASTrackPortFv */
|
|
void JASTrackPort::init() {
|
|
for (int i = 0; i < 16; i++) {
|
|
field_0x4[i] = 0;
|
|
}
|
|
field_0x0 = 0;
|
|
field_0x2 = 0;
|
|
}
|
|
|
|
/* 8029357C-802935A0 28DEBC 0024+00 0/0 1/1 0/0 .text readImport__12JASTrackPortFUl */
|
|
u16 JASTrackPort::readImport(u32 port_num) {
|
|
field_0x0 = field_0x0 & ~(1 << port_num);
|
|
return field_0x4[port_num];
|
|
}
|
|
|
|
/* 802935A0-802935C4 28DEE0 0024+00 0/0 1/1 0/0 .text readExport__12JASTrackPortFUl */
|
|
u16 JASTrackPort::readExport(u32 port_num) {
|
|
field_0x2 = field_0x2 & ~(1 << port_num);
|
|
return field_0x4[port_num];
|
|
}
|
|
|
|
/* 802935C4-802935E8 28DF04 0024+00 0/0 1/1 0/0 .text writeImport__12JASTrackPortFUlUs */
|
|
void JASTrackPort::writeImport(u32 port_num, u16 param_1) {
|
|
field_0x0 = field_0x0 | (1 << port_num);
|
|
field_0x4[port_num] = param_1;
|
|
}
|
|
|
|
/* 802935E8-8029360C 28DF28 0024+00 0/0 1/1 0/0 .text writeExport__12JASTrackPortFUlUs */
|
|
void JASTrackPort::writeExport(u32 port_num, u16 param_1) {
|
|
field_0x2 = field_0x2 | (1 << port_num);
|
|
field_0x4[port_num] = param_1;
|
|
}
|
|
|
|
/* 8029360C-80293628 28DF4C 001C+00 0/0 1/1 0/0 .text checkImport__12JASTrackPortCFUl */
|
|
u32 JASTrackPort::checkImport(u32 param_0) const {
|
|
return field_0x0 & 1 << param_0 ? 1 : 0;
|
|
}
|
|
|
|
/* 80293628-80293644 28DF68 001C+00 0/0 1/1 0/0 .text checkExport__12JASTrackPortCFUl */
|
|
u32 JASTrackPort::checkExport(u32 param_0) const {
|
|
return field_0x2 & 1 << param_0 ? 1 : 0;
|
|
}
|