Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JASSeqParser.h
Go to the documentation of this file.
1#ifndef JASSEQPARSER_H
2#define JASSEQPARSER_H
3
4#include "dolphin/types.h"
5
6class JASTrack;
7
13public:
15
21
22 /* 80293CAC */ virtual ~JASSeqParser() {}
23 /* 802958D4 */ virtual s32 parse(JASTrack*);
24 /* 80295540 */ virtual s32 execNoteOnMidi(JASTrack*, u32, u32, u32);
25 /* 80295498 */ virtual s32 execNoteOnGate(JASTrack*, u32, u32, u32, u32);
26 /* 80295570 */ virtual s32 execNoteOff(JASTrack*, u32);
27 /* 8029559C */ virtual s32 execCommand(JASTrack*, s32 (JASSeqParser::*)(JASTrack*, u32*), u32, u32*);
28
30 /* 80293DC4 */ void writeReg(JASTrack*, u32, u32);
31 /* 80293FC8 */ u32 readReg(JASTrack*, u32) const;
32 /* 80294188 */ s32 cmdOpenTrack(JASTrack*, u32*);
33 /* 802941F0 */ s32 cmdCloseTrack(JASTrack*, u32*);
34 /* 8029421C */ s32 cmdCall(JASTrack*, u32*);
35 /* 80294248 */ s32 cmdCallF(JASTrack*, u32*);
36 /* 8029429C */ s32 cmdRet(JASTrack*, u32*);
37 /* 802942D4 */ s32 cmdRetF(JASTrack*, u32*);
38 /* 80294328 */ s32 cmdJmp(JASTrack*, u32*);
39 /* 80294340 */ s32 cmdJmpF(JASTrack*, u32*);
40 /* 80294398 */ s32 cmdJmpTable(JASTrack*, u32*);
41 /* 802943CC */ s32 cmdCallTable(JASTrack*, u32*);
42 /* 8029441C */ s32 cmdLoopS(JASTrack*, u32*);
43 /* 80294448 */ s32 cmdLoopE(JASTrack*, u32*);
44 /* 80294470 */ s32 cmdNote(JASTrack*, u32*);
45 /* 802944B4 */ s32 cmdNoteOn(JASTrack*, u32*);
46 /* 802944F4 */ s32 cmdNoteOff(JASTrack*, u32*);
47 /* 80294528 */ s32 cmdReadPort(JASTrack*, u32*);
48 /* 80294588 */ s32 cmdWritePort(JASTrack*, u32*);
49 /* 802945BC */ s32 cmdParentWritePort(JASTrack*, u32*);
50 /* 802945F8 */ s32 cmdChildWritePort(JASTrack*, u32*);
51 /* 80294644 */ s32 cmdParentReadPort(JASTrack*, u32*);
52 /* 802946AC */ s32 cmdChildReadPort(JASTrack*, u32*);
53 /* 80294724 */ s32 cmdCheckPortImport(JASTrack*, u32*);
54 /* 80294770 */ s32 cmdCheckPortExport(JASTrack*, u32*);
55 /* 802947BC */ s32 cmdWait(JASTrack*, u32*);
56 /* 802947F4 */ s32 cmdWaitByte(JASTrack*, u32*);
57 /* 80294804 */ s32 cmdSetLastNote(JASTrack*, u32*);
58 /* 8029483C */ s32 cmdEnvScaleSet(JASTrack*, u32*);
59 /* 8029488C */ s32 cmdEnvSet(JASTrack*, u32*);
60 /* 802948C8 */ s32 cmdSimpleADSR(JASTrack*, u32*);
61 /* 8029491C */ s32 cmdBusConnect(JASTrack*, u32*);
62 /* 8029494C */ s32 cmdSetIntTable(JASTrack*, u32*);
63 /* 8029495C */ s32 cmdSetInterrupt(JASTrack*, u32*);
64 /* 80294988 */ s32 cmdDisInterrupt(JASTrack*, u32*);
65 /* 802949B4 */ s32 cmdClrI(JASTrack*, u32*);
66 /* 802949E4 */ s32 cmdRetI(JASTrack*, u32*);
67 /* 80294A20 */ s32 cmdIntTimer(JASTrack*, u32*);
68 /* 80294A3C */ s32 cmdSyncCPU(JASTrack*, u32*);
69 /* 80294AA4 */ s32 cmdTempo(JASTrack*, u32*);
70 /* 80294AD4 */ s32 cmdFinish(JASTrack*, u32*);
71 /* 80294ADC */ s32 cmdNop(JASTrack*, u32*);
72 /* 80294AE4 */ s32 cmdFIRSet(JASTrack*, u32*);
73 /* 80294B1C */ s32 cmdIIRSet(JASTrack*, u32*);
74 /* 80294B70 */ s32 cmdIIRCutOff(JASTrack*, u32*);
75 /* 80294BB4 */ s32 cmdBankPrg(JASTrack*, u32*);
76 /* 80294BD0 */ s32 cmdBank(JASTrack*, u32*);
77 /* 80294BE4 */ s32 cmdPrg(JASTrack*, u32*);
78 /* 80294BF8 */ s32 cmdParamI(JASTrack*, u32*);
79 /* 80294C54 */ s32 cmdParamII(JASTrack*, u32*);
80 /* 80294CB0 */ s32 cmdParamE(JASTrack*, u32*);
81 /* 80294D2C */ s32 cmdParamEI(JASTrack*, u32*);
82 /* 80294DA8 */ s32 cmdReg(JASTrack*, u32*);
83 /* 80294F10 */ s32 cmdRegLoad(JASTrack*, u32*);
84 /* 80294F40 */ s32 cmdRegUni(JASTrack*, u32*);
85 /* 80294FB4 */ s32 cmdRegTblLoad(JASTrack*, u32*);
86 /* 80295088 */ s32 cmdDump(JASTrack*, u32*);
87 /* 8029526C */ s32 cmdPrintf(JASTrack*, u32*);
88 /* 802955C8 */ s32 parseNoteOff(JASTrack*, u8);
89 /* 80295600 */ s32 parseNoteOn(JASTrack*, u8);
90 /* 802956B0 */ s32 parseCommand(JASTrack*, u8, u16);
91 /* 80295864 */ s32 parseRegCommand(JASTrack*, int);
92
94
95 static CmdInfo sCmdInfo[96];
96 static CmdInfo sExtCmdInfo[255];
98};
99
100#endif /* JASSEQPARSER_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JASSeqParser.h:12
s32 cmdParentWritePort(JASTrack *, u32 *)
Definition JASSeqParser.cpp:451
s32 cmdWaitByte(JASTrack *, u32 *)
Definition JASSeqParser.cpp:523
s32 cmdReadPort(JASTrack *, u32 *)
Definition JASSeqParser.cpp:436
s32 cmdParamII(JASTrack *, u32 *)
Definition JASSeqParser.cpp:696
s32 cmdSetInterrupt(JASTrack *, u32 *)
Definition JASSeqParser.cpp:577
s32 cmdReg(JASTrack *, u32 *)
Definition JASSeqParser.cpp:726
s32 cmdBankPrg(JASTrack *, u32 *)
Definition JASSeqParser.cpp:669
s32 cmdNoteOff(JASTrack *, u32 *)
Definition JASSeqParser.cpp:430
s32 cmdCheckPortImport(JASTrack *, u32 *)
Definition JASSeqParser.cpp:501
s32 cmdJmpF(JASTrack *, u32 *)
Definition JASSeqParser.cpp:379
s32 cmdParamE(JASTrack *, u32 *)
Definition JASSeqParser.cpp:703
s32 cmdBank(JASTrack *, u32 *)
Definition JASSeqParser.cpp:677
s32 cmdParamEI(JASTrack *, u32 *)
Definition JASSeqParser.cpp:715
s32 parseNoteOn(JASTrack *, u8)
Definition JASSeqParser.cpp:976
s32 cmdIntTimer(JASTrack *, u32 *)
Definition JASSeqParser.cpp:606
s32 cmdRegTblLoad(JASTrack *, u32 *)
Definition JASSeqParser.cpp:798
s32 cmdChildWritePort(JASTrack *, u32 *)
Definition JASSeqParser.cpp:463
static u16(* sCallBackFunc)(JASTrack *, u16)
Definition JASSeqParser.h:97
s32 cmdBusConnect(JASTrack *, u32 *)
Definition JASSeqParser.cpp:563
s32 cmdFIRSet(JASTrack *, u32 *)
Definition JASSeqParser.cpp:641
s32 cmdSyncCPU(JASTrack *, u32 *)
Definition JASSeqParser.cpp:615
s32 cmdDisInterrupt(JASTrack *, u32 *)
Definition JASSeqParser.cpp:584
s32 cmdNote(JASTrack *, u32 *)
Definition JASSeqParser.cpp:418
s32 cmdSetIntTable(JASTrack *, u32 *)
Definition JASSeqParser.cpp:570
s32 cmdWritePort(JASTrack *, u32 *)
Definition JASSeqParser.cpp:444
s32 cmdCallTable(JASTrack *, u32 *)
Definition JASSeqParser.cpp:397
s32 cmdCallF(JASTrack *, u32 *)
Definition JASSeqParser.cpp:347
s32 cmdRegLoad(JASTrack *, u32 *)
Definition JASSeqParser.cpp:775
s32 cmdCloseTrack(JASTrack *, u32 *)
Definition JASSeqParser.cpp:335
s32 cmdIIRCutOff(JASTrack *, u32 *)
Definition JASSeqParser.cpp:658
s32 cmdNoteOn(JASTrack *, u32 *)
Definition JASSeqParser.cpp:424
virtual s32 execNoteOnGate(JASTrack *, u32, u32, u32, u32)
Definition JASSeqParser.cpp:916
s32 cmdCall(JASTrack *, u32 *)
Definition JASSeqParser.cpp:341
s32 cmdLoopS(JASTrack *, u32 *)
Definition JASSeqParser.cpp:406
s32 cmdNop(JASTrack *, u32 *)
Definition JASSeqParser.cpp:636
s32 cmdClrI(JASTrack *, u32 *)
Definition JASSeqParser.cpp:590
s32 cmdPrintf(JASTrack *, u32 *)
Definition JASSeqParser.cpp:847
virtual ~JASSeqParser()
Definition JASSeqParser.h:22
s32 cmdRetF(JASTrack *, u32 *)
Definition JASSeqParser.cpp:363
s32 cmdJmpTable(JASTrack *, u32 *)
Definition JASSeqParser.cpp:387
s32 cmdFinish(JASTrack *, u32 *)
Definition JASSeqParser.cpp:631
virtual s32 execNoteOnMidi(JASTrack *, u32, u32, u32)
Definition JASSeqParser.cpp:949
virtual s32 execCommand(JASTrack *, s32(JASSeqParser::*)(JASTrack *, u32 *), u32, u32 *)
Definition JASSeqParser.cpp:960
s32 cmdCheckPortExport(JASTrack *, u32 *)
Definition JASSeqParser.cpp:509
s32 cmdEnvScaleSet(JASTrack *, u32 *)
Definition JASSeqParser.cpp:542
s32 cmdRegUni(JASTrack *, u32 *)
Definition JASSeqParser.cpp:781
s32 cmdJmp(JASTrack *, u32 *)
Definition JASSeqParser.cpp:373
s32 cmdRetI(JASTrack *, u32 *)
Definition JASSeqParser.cpp:598
static CmdInfo sCmdInfo[96]
Definition JASSeqParser.h:36
s32 cmdSimpleADSR(JASTrack *, u32 *)
Definition JASSeqParser.cpp:556
s32 cmdChildReadPort(JASTrack *, u32 *)
Definition JASSeqParser.cpp:488
s32 parseNoteOff(JASTrack *, u8)
Definition JASSeqParser.cpp:966
virtual s32 parse(JASTrack *)
Definition JASSeqParser.cpp:1045
s32 parseRegCommand(JASTrack *, int)
Definition JASSeqParser.cpp:1029
s32 cmdIIRSet(JASTrack *, u32 *)
Definition JASSeqParser.cpp:647
s32 cmdDump(JASTrack *, u32 *)
Definition JASSeqParser.cpp:829
s32 cmdRet(JASTrack *, u32 *)
Definition JASSeqParser.cpp:355
virtual s32 execNoteOff(JASTrack *, u32)
Definition JASSeqParser.cpp:954
s32 cmdOpenTrack(JASTrack *, u32 *)
Definition JASSeqParser.cpp:321
s32 cmdSetLastNote(JASTrack *, u32 *)
Definition JASSeqParser.cpp:530
s32 cmdEnvSet(JASTrack *, u32 *)
Definition JASSeqParser.cpp:549
s32 cmdPrg(JASTrack *, u32 *)
Definition JASSeqParser.cpp:683
s32 cmdLoopE(JASTrack *, u32 *)
Definition JASSeqParser.cpp:412
static CmdInfo sExtCmdInfo[255]
Definition JASSeqParser.h:136
u32 readReg(JASTrack *, u32) const
Definition JASSeqParser.cpp:239
s32 cmdParentReadPort(JASTrack *, u32 *)
Definition JASSeqParser.cpp:475
s32 cmdWait(JASTrack *, u32 *)
Definition JASSeqParser.cpp:516
void writeReg(JASTrack *, u32, u32)
Definition JASSeqParser.cpp:147
s32 cmdTempo(JASTrack *, u32 *)
Definition JASSeqParser.cpp:625
s32 parseCommand(JASTrack *, u8, u16)
Definition JASSeqParser.cpp:991
BranchCondition
Definition JASSeqParser.h:14
bool conditionCheck(JASTrack *, JASSeqParser::BranchCondition)
Definition JASSeqParser.cpp:15
s32 cmdParamI(JASTrack *, u32 *)
Definition JASSeqParser.cpp:689
static void registerSeqCallback(u16(*param_0)(JASTrack *, u16))
Definition JASSeqParser.h:93
Definition JASSeqParser.h:16
s32(JASSeqParser::* field_0x0)(JASTrack *, u32 *)
Definition JASSeqParser.h:17
u16 field_0xc
Definition JASSeqParser.h:18
u16 field_0xe
Definition JASSeqParser.h:19
Definition JASTrack.h:23
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8