Skip to content

Instantly share code, notes, and snippets.

@Ziemas
Created October 7, 2023 20:40
Show Gist options
  • Save Ziemas/3ec2bed092a84faf130e8ae4909169e2 to your computer and use it in GitHub Desktop.
Save Ziemas/3ec2bed092a84faf130e8ae4909169e2 to your computer and use it in GitHub Desktop.
// *****************************************************************************
// FILE -- /home/gin/p3us/iop_mdl/wp2cd/iop/bgm_entr.c
// *****************************************************************************
/* 00000000 000000ec */ int start() {
/* -0x28(sp) */ ThreadParam param;
/* -0x10(sp) */ int th;
}
// *****************************************************************************
// FILE -- /home/gin/p3us/iop_mdl/wp2cd/iop/bgm_com.c
// *****************************************************************************
/* 000000f0 000001b4 */ int sce_bgm_loop() {
/* -0x68(sp) */ sceSifQueueData qd;
/* -0x50(sp) */ sceSifServeData sd;
}
/* 000001b4 00000650 */ static void* bgmFunc(/* 0x0(sp) */ unsigned int command, /* 0x4(sp) */ void *data, /* 0x8(sp) */ int size) {}
// *****************************************************************************
// FILE -- /home/gin/p3us/iop_mdl/wp2cd/iop/bgm_play.c
// *****************************************************************************
/* 00000650 00000790 */ int Wp2CdStRead(/* 0x0(sp) */ u_int sectors, /* 0x4(sp) */ u_int *buf, /* 0x8(sp) */ u_int mode, /* 0xc(sp) */ u_int *err) {
/* -0x18(sp) */ int ret;
/* -0x14(sp) */ int read_sectors;
/* -0x10(sp) */ int now_read;
}
/* 00000790 0000085c */ int readPC(/* 0x0(sp) */ int fp, /* 0x4(sp) */ u_char *buf, /* 0x8(sp) */ int size) {
/* -0x10(sp) */ int ret;
}
/* 0000085c 00000910 */ void usrMemcpy(/* 0x0(sp) */ void *sakip, /* 0x4(sp) */ void *motop, /* 0x8(sp) */ int size) {
/* -0x18(sp) */ int i;
/* -0x14(sp) */ int *m_pp;
/* -0x10(sp) */ int *s_pp;
}
/* 00000910 00000ea8 */ int TransBufSet() {
/* -0x30(sp) */ int i;
/* -0x2c(sp) */ int pos;
/* -0x28(sp) */ int spu_pp;
/* -0x24(sp) */ int org;
/* -0x20(sp) */ int ee_cnt;
/* -0x1c(sp) */ int j;
/* -0x18(sp) */ P3STR_TRH *tr_pp;
/* -0x14(sp) */ int ret;
/* -0x14(sp) */ int ret;
}
/* 00000ea8 00000f70 */ static int IntFunc(/* 0x0(sp) */ int ch, /* 0x4(sp) */ void *common) {}
/* 00000f70 00000fa4 */ static int IntFuncEnd(/* 0x0(sp) */ int ch, /* 0x4(sp) */ void *common) {}
/* 00000fa4 00001018 */ static int makeMyThread() {
/* -0x28(sp) */ ThreadParam param;
/* -0x10(sp) */ int thid;
}
/* 00001018 0000108c */ static int makeMyThread_Tr() {
/* -0x28(sp) */ ThreadParam param;
/* -0x10(sp) */ int thid;
}
/* 0000108c 000010e0 */ static int makeMySem() {
/* -0x18(sp) */ SemaParam sem;
}
/* 000010e0 00001168 */ void BgmSetVolumeDirect(/* 0x0(sp) */ unsigned int vol) {}
/* 00001168 000011f0 */ void BgmSetMasterVolume(/* 0x0(sp) */ unsigned int vol) {}
/* 000011f0 00001258 */ void BgmCdInit(/* 0x0(sp) */ int mode) {}
/* 00001258 000012a8 */ void BgmSdInit(/* 0x0(sp) */ int status) {}
/* 000012a8 00001520 */ int BgmInit(/* 0x0(sp) */ int block_size) {
/* -0x10(sp) */ int i;
/* -0xc(sp) */ u_char *clr_pp;
}
/* 00001520 000016b4 */ void BgmQuit(/* 0x0(sp) */ int status) {}
/* 000016b4 0000198c */ int BgmOpen(/* 0x0(sp) */ char *filename) {
/* -0x10(sp) */ int ret;
}
/* 0000198c 00001c60 */ int BgmOpenFLoc(/* 0x0(sp) */ sceCdlFILE *fpLoc) {
/* -0x10(sp) */ u_char *filename;
/* -0xc(sp) */ int ret;
}
/* 00001c60 00001e24 */ void BgmClose(/* 0x0(sp) */ int status) {}
/* 00001e24 00002160 */ static void TransBufSet_SUB() {
/* -0x28(sp) */ int which;
/* -0x24(sp) */ int remain;
/* -0x20(sp) */ int tmp_size;
/* -0x1c(sp) */ int *addr;
/* -0x18(sp) */ int i;
}
/* 00002160 00002334 */ int BgmPreLoad() {}
/* 00002334 000023b8 */ int _PreLoadBack(/* 0x0(sp) */ int status) {}
/* 000023b8 000023fc */ void BgmPreLoadBack() {}
/* 000023fc 00002490 */ int BgmReadBuffFull() {}
/* 00002490 0000257c */ int BgmStart() {
/* -0x10(sp) */ int ret;
}
/* 0000257c 00002688 */ void _BgmStop() {
/* -0x10(sp) */ int ret;
/* -0xc(sp) */ int BgmMode_tmp;
}
/* 00002688 000027dc */ void BgmStop(/* 0x0(sp) */ unsigned int vol) {
/* -0x10(sp) */ int ret;
/* -0xc(sp) */ int BgmMode_tmp;
}
/* 000027dc 00002824 */ void BgmSetVolume(/* 0x0(sp) */ unsigned int vol) {}
/* 00002824 00002908 */ void BgmSetMode(/* 0x0(sp) */ u_int maxChan) {}
/* 00002908 00002940 */ unsigned int BgmGetMode() {}
/* 00002940 00002aa0 */ int GetKoubaisuu(/* 0x0(sp) */ int a, /* 0x4(sp) */ int b) {
/* -0x18(sp) */ int common;
/* -0x14(sp) */ int i;
}
/* 00002aa0 00002d04 */ int BgmSeek(/* 0x0(sp) */ unsigned int ofs) {
/* -0x20(sp) */ int ofs_size;
/* -0x1c(sp) */ int ret;
/* -0x18(sp) */ int next_ofs;
/* -0x14(sp) */ int line_cnt;
}
/* 00002d04 00002f08 */ int BgmSeekFLoc(/* 0x0(sp) */ sceCdlFILE *fpLoc) {
/* -0x10(sp) */ u_char *filename;
/* -0xc(sp) */ int ret;
}
/* 00002f08 00002f50 */ void BgmSetChannel(/* 0x0(sp) */ u_int chan) {}
/* 00002f50 00002f84 */ void BgmSetTrPoint(/* 0x0(sp) */ u_int trpos) {}
/* 00002f84 00003108 */ int BgmGetTime() {
/* -0x18(sp) */ u_int ret;
/* -0x14(sp) */ u_int now_cnt;
/* -0x10(sp) */ u_int gBgmIntrTmp;
}
/* 00003108 00003184 */ int BgmGetTSample() {
/* -0x10(sp) */ int fsize;
}
/* 00003184 000031bc */ int BgmGetCdErrCode() {}
/* 000031bc 000036ac */ int _BgmPlay(/* 0x0(sp) */ int status) {
/* -0x28(sp) */ int which;
/* -0x24(sp) */ int remain;
/* -0x20(sp) */ int tmp_size;
/* -0x1c(sp) */ int *addr;
/* -0x18(sp) */ int i;
}
// *****************************************************************************
// FILE -- /tmp/cca28934_ilb_stub.s
// *****************************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment