switch to dtk setup (#2203)

* switch to dtk setup

* some cleanup / fixes

* cleanup d_a_alink literals

* Restore doxygen, update CI & README.md (#1)

* Fix build image ref (#2)

---------

Co-authored-by: Luke Street <luke@street.dev>
This commit is contained in:
TakaRikka
2024-10-10 07:29:58 -07:00
committed by GitHub
parent 3769ea47a6
commit 178194ccb2
33438 changed files with 370506 additions and 3055930 deletions
+49
View File
@@ -0,0 +1,49 @@
//
// 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;
}