-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFE7J.h
1878 lines (1612 loc) · 36.2 KB
/
FE7J.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
This file has been generated by IDA.
It contains local type definitions from
the type library 'FE7(CN)'
*/
#pragma once
#define __int8 char
#define __int16 short
#define __int32 int
#define __int64 long long
struct $767463F3197D627923998BA17293A2B5;
struct ClassBattleAnimationConfigData;
/* 1 */
typedef unsigned __int8 u8;
/* 2 */
typedef unsigned __int16 u16;
/* 3 */
typedef unsigned int u32;
/* 4 */
typedef unsigned __int64 u64;
/* 5 */
typedef signed __int8 s8;
/* 6 */
typedef signed __int16 s16;
/* 7 */
typedef signed int s32;
/* 8 */
typedef signed __int64 s64;
/* 9 */
typedef float f32;
/* 10 */
typedef double f64;
/* 11 */
typedef volatile u8 vu8;
/* 12 */
typedef volatile u16 vu16;
/* 13 */
typedef volatile u32 vu32;
/* 14 */
typedef volatile u64 vu64;
/* 15 */
typedef volatile s8 vs8;
/* 16 */
typedef volatile s16 vs16;
/* 17 */
typedef volatile s32 vs32;
/* 18 */
typedef volatile s64 vs64;
/* 19 */
typedef volatile f32 vf32;
/* 20 */
typedef volatile f64 vf64;
/* 21 */
struct $7283A60113E8044677CC0F5A480D9B38
{
unsigned __int32 CpuMode : 5;
unsigned __int32 Thumb_State : 1;
unsigned __int32 Fiq_Disable : 1;
unsigned __int32 Irq_Disable : 1;
unsigned __int32 Dummy_27_8 : 20;
unsigned __int32 V_Flag : 1;
unsigned __int32 C_Flag : 1;
unsigned __int32 Z_Flag : 1;
unsigned __int32 N_Flag : 1;
};
/* 22 */
typedef struct $7283A60113E8044677CC0F5A480D9B38 PsrData;
/* 23 */
typedef volatile PsrData vPsrData;
/* 24 */
struct $91A37F3E2957D82ADBDB13DE08B6AF9D
{
unsigned __int16 V_Blank : 1;
unsigned __int16 H_Blank : 1;
unsigned __int16 V_Count : 1;
unsigned __int16 Timer0 : 1;
unsigned __int16 Timer1 : 1;
unsigned __int16 Timer2 : 1;
unsigned __int16 Timer3 : 1;
unsigned __int16 Sio : 1;
unsigned __int16 Dma0 : 1;
unsigned __int16 Dma1 : 1;
unsigned __int16 Dma2 : 1;
unsigned __int16 Dma3 : 1;
unsigned __int16 Key : 1;
unsigned __int16 Cassette : 1;
unsigned __int16 Dummy_15_14 : 2;
};
/* 25 */
typedef struct $91A37F3E2957D82ADBDB13DE08B6AF9D IntrFlags;
/* 26 */
typedef volatile IntrFlags vIntrFlags;
/* 27 */
struct $9516C70BA38EC0872D54B19DE36ECDA5
{
unsigned __int16 BgMode : 3;
unsigned __int16 CgbMode : 1;
unsigned __int16 Bmp_FrameNo : 1;
unsigned __int16 Obj_H_Off : 1;
unsigned __int16 ObjCharMapType : 1;
unsigned __int16 Lcdc_Off : 1;
unsigned __int16 Bg0_On : 1;
unsigned __int16 Bg1_On : 1;
unsigned __int16 Bg2_On : 1;
unsigned __int16 Bg3_On : 1;
unsigned __int16 Obj_On : 1;
unsigned __int16 Win0_On : 1;
unsigned __int16 Win1_On : 1;
unsigned __int16 ObjWin_On : 1;
};
/* 28 */
typedef struct $9516C70BA38EC0872D54B19DE36ECDA5 DispCnt;
/* 29 */
typedef volatile DispCnt vDispCnt;
/* 30 */
struct $31544CC9246666AA735CF7EC61824C95
{
unsigned __int16 V_Blank_Flag : 1;
unsigned __int16 H_Blank_Flag : 1;
unsigned __int16 V_Count_Flag : 1;
unsigned __int16 V_Blank_IF_Enable : 1;
unsigned __int16 H_Blank_IF_Enable : 1;
unsigned __int16 V_Count_IF_Enable : 1;
unsigned __int16 Dummy_7_6 : 2;
u8 V_Count_Cmp;
u8 V_Count;
u8 Dummy_31_24;
};
/* 31 */
typedef struct $31544CC9246666AA735CF7EC61824C95 StatCnt;
/* 32 */
typedef volatile StatCnt vStatCnt;
/* 33 */
struct $52159A8D60E0E32CEF7BF8BA66C0B73D
{
unsigned __int16 Bg_HSize : 4;
unsigned __int16 Bg_VSize : 4;
unsigned __int16 Obj_HSize : 4;
unsigned __int16 Obj_VSize : 4;
};
/* 34 */
typedef struct $52159A8D60E0E32CEF7BF8BA66C0B73D MosCnt;
/* 35 */
typedef volatile MosCnt vMosCnt;
/* 36 */
struct $CE8B83EAF61832BFDC4AD2CBE418918F
{
unsigned __int16 Pixel_1st_Bg0_On : 1;
unsigned __int16 Pixel_1st_Bg1_On : 1;
unsigned __int16 Pixel_1st_Bg2_On : 1;
unsigned __int16 Pixel_1st_Bg3_On : 1;
unsigned __int16 Pixel_1st_Obj_On : 1;
unsigned __int16 Pixel_1st_Bd_On : 1;
unsigned __int16 BlendMode : 2;
unsigned __int16 Pixel_2nd_Bg0_On : 1;
unsigned __int16 Pixel_2nd_Bg1_On : 1;
unsigned __int16 Pixel_2nd_Bg2_On : 1;
unsigned __int16 Pixel_2nd_Bg3_On : 1;
unsigned __int16 Pixel_2nd_Obj_On : 1;
unsigned __int16 Pixel_2nd_Bd_On : 1;
unsigned __int16 Dummy_15_14 : 2;
unsigned __int16 Value_A : 5;
unsigned __int16 Dummy_23_21 : 3;
unsigned __int16 Value_B : 5;
unsigned __int16 Dummy_31_29 : 3;
unsigned __int16 Value_Y : 5;
unsigned __int16 Dummy_39_37 : 3;
};
/* 37 */
typedef struct $CE8B83EAF61832BFDC4AD2CBE418918F BlendCnt;
/* 38 */
typedef volatile BlendCnt vBlendCnt;
/* 39 */
struct $7A76559BC6F13ED7D19B3479300C7DD8
{
unsigned __int16 Priority : 2;
unsigned __int16 CharBasep : 2;
unsigned __int16 Dummy_5_4 : 2;
unsigned __int16 Mosaic : 1;
unsigned __int16 ColorMode : 1;
unsigned __int16 ScBasep : 5;
unsigned __int16 Loop : 1;
unsigned __int16 Size : 2;
};
/* 40 */
typedef struct $7A76559BC6F13ED7D19B3479300C7DD8 BgCnt;
/* 41 */
typedef volatile BgCnt vBgCnt;
/* 42 */
struct $5054F2BDCAEE086495E2FDC4B77F8A1D
{
u16 H;
u16 V;
};
/* 43 */
typedef struct $5054F2BDCAEE086495E2FDC4B77F8A1D BgOffsetCnt;
/* 44 */
typedef volatile BgOffsetCnt vBgOffsetCnt;
/* 45 */
struct $4E73AADB818178B1CCCE1798BF39A155
{
unsigned __int16 CharNo : 10;
unsigned __int16 HFlip : 1;
unsigned __int16 VFlip : 1;
unsigned __int16 Pltt : 4;
};
/* 46 */
typedef struct $4E73AADB818178B1CCCE1798BF39A155 BgScData;
/* 47 */
typedef volatile BgScData vBgScData;
/* 48 */
struct $7DE431ABFE2F7C4B13CEAB14F206B2D0
{
s32 SrcCenterX;
s32 SrcCenterY;
s16 DispCenterX;
s16 DispCenterY;
s16 RatioX;
s16 RatioY;
u16 Theta;
};
/* 49 */
typedef struct $7DE431ABFE2F7C4B13CEAB14F206B2D0 BgAffineSrcData;
/* 50 */
typedef volatile BgAffineSrcData vBgAffineSrcData;
/* 51 */
struct $E5350A515B37E253D9E4937AF1ED8EBD
{
s16 H_DiffX;
s16 V_DiffX;
s16 H_DiffY;
s16 V_DiffY;
s32 StartX;
s32 StartY;
};
/* 52 */
typedef struct $E5350A515B37E253D9E4937AF1ED8EBD BgAffineDestData;
/* 53 */
typedef volatile BgAffineDestData vBgAffineDestData;
/* 54 */
struct $4A461261DF42FA6D587F25B4CC65DB3A
{
unsigned __int32 VPos : 8;
unsigned __int32 AffineMode : 2;
unsigned __int32 ObjMode : 2;
unsigned __int32 Mosaic : 1;
unsigned __int32 ColorMode : 1;
unsigned __int32 Shape : 2;
unsigned __int32 HPos : 9;
unsigned __int32 AffineParamNo_L : 3;
unsigned __int32 HFlip : 1;
unsigned __int32 VFlip : 1;
unsigned __int32 Size : 2;
unsigned __int16 CharNo : 10;
unsigned __int16 Priority : 2;
unsigned __int16 Pltt : 4;
u16 AffineParam;
};
/* 55 */
typedef struct $4A461261DF42FA6D587F25B4CC65DB3A OamData;
/* 56 */
typedef volatile OamData vOamData;
/* 57 */
struct $9D005B2C7DEE47A2E34968395C24D475
{
s8 SortUpDown;
unsigned __int8 SrcPadSize : 4;
unsigned __int8 DestPadSize : 4;
u8 SetNum;
u8 CheckOffset;
void *CheckStartp;
u32 CheckMask;
};
/* 58 */
typedef struct $9D005B2C7DEE47A2E34968395C24D475 OamSortSetParam;
/* 59 */
typedef volatile OamSortSetParam vOamSortSetParam;
/* 60 */
struct $7C6BA91EE3B7734611466E6EBDAE7514
{
s16 RatioX;
s16 RatioY;
u16 Theta;
};
/* 61 */
typedef struct $7C6BA91EE3B7734611466E6EBDAE7514 ObjAffineSrcData;
/* 62 */
typedef volatile ObjAffineSrcData vObjAffineSrcData;
/* 63 */
struct $5BBA4538DBD1F793894D6EB676EE0CCA
{
s16 H_DiffX;
s16 V_DiffX;
s16 H_DiffY;
s16 V_DiffY;
};
/* 64 */
typedef struct $5BBA4538DBD1F793894D6EB676EE0CCA ObjAffineDestData;
/* 65 */
typedef volatile ObjAffineDestData vObjAffineDestData;
/* 66 */
struct $A94A44283849675D17627BB362C99BA7
{
unsigned __int16 Red : 5;
unsigned __int16 Green : 5;
unsigned __int16 Blue : 5;
unsigned __int16 Dummy_15 : 1;
};
/* 67 */
typedef struct $A94A44283849675D17627BB362C99BA7 PlttData;
/* 68 */
typedef volatile PlttData vPlttData;
/* 69 */
struct $329E313DB0C4CF2DB81CC8221EDAC9AF
{
unsigned __int8 Bg0_On : 1;
unsigned __int8 Bg1_On : 1;
unsigned __int8 Bg2_On : 1;
unsigned __int8 Bg3_On : 1;
unsigned __int8 Obj_On : 1;
unsigned __int8 Blend_On : 1;
unsigned __int8 Dummy_7_6 : 2;
};
/* 70 */
typedef struct $329E313DB0C4CF2DB81CC8221EDAC9AF WindCnt;
/* 71 */
typedef volatile WindCnt vWindCnt;
/* 72 */
struct $3DFC682C7973B4E1F3A97ACBD4400412
{
unsigned __int8 So1_Level : 3;
unsigned __int8 So1_Vin_On : 1;
unsigned __int8 So2_Level : 3;
unsigned __int8 So2_Vin_On : 1;
unsigned __int8 So1_Sound1_On : 1;
unsigned __int8 So1_Sound2_On : 1;
unsigned __int8 So1_Sound3_On : 1;
unsigned __int8 So1_Sound4_On : 1;
unsigned __int8 So2_Sound1_On : 1;
unsigned __int8 So2_Sound2_On : 1;
unsigned __int8 So2_Sound3_On : 1;
unsigned __int8 So2_Sound4_On : 1;
unsigned __int8 Sound_1_4_Mix : 2;
unsigned __int8 DirectA_Mix : 1;
unsigned __int8 DirectB_Mix : 1;
unsigned __int8 Dummy_23_20 : 4;
unsigned __int8 So1_DirectA_On : 1;
unsigned __int8 So2_DirectA_On : 1;
unsigned __int8 DirectA_Timer : 1;
unsigned __int8 FifoA_Reset : 1;
unsigned __int8 So1_DirectB_On : 1;
unsigned __int8 So2_DirectB_On : 1;
unsigned __int8 DirectB_Timer : 1;
unsigned __int8 FifoB_Reset : 1;
unsigned __int8 Sound1_On : 1;
unsigned __int8 Sound2_On : 1;
unsigned __int8 Sound3_On : 1;
unsigned __int8 Sound4_On : 1;
unsigned __int8 Dummy_38_36 : 3;
unsigned __int8 Sound_1_4_On : 1;
u8 Dummy_47_40;
u16 Dummy_63_48;
unsigned __int16 BiasLevel : 10;
unsigned __int16 Dummy_77_74 : 4;
unsigned __int16 OutFrequency : 2;
};
/* 73 */
typedef struct $3DFC682C7973B4E1F3A97ACBD4400412 SoundCnt;
/* 74 */
typedef volatile SoundCnt vSoundCnt;
/* 75 */
struct $E56FB425D8D529D55B3383F5A2C6D966
{
unsigned __int8 SweepShift : 3;
unsigned __int8 SweepUpDownt : 1;
unsigned __int8 SweepTime : 3;
unsigned __int8 Dummy_7 : 1;
u8 Dummy_15_8;
unsigned __int8 Counts : 6;
unsigned __int8 Duty : 2;
unsigned __int8 EnvSteps : 3;
unsigned __int8 EnvUp_Down : 1;
unsigned __int8 EnvInitData : 4;
unsigned __int16 Frequency : 11;
unsigned __int16 Dummy_45_43 : 3;
unsigned __int16 Counter_On : 1;
unsigned __int16 Start : 1;
};
/* 76 */
typedef struct $E56FB425D8D529D55B3383F5A2C6D966 Sound1Cnt;
/* 77 */
typedef volatile Sound1Cnt vSound1Cnt;
/* 78 */
struct $79DCBB646E755A1B7DD622045DD476A2
{
unsigned __int8 Counts : 6;
unsigned __int8 Duty : 2;
unsigned __int8 EnvSteps : 3;
unsigned __int8 EnvUp_Down : 1;
unsigned __int8 EnvInitData : 4;
u16 Dummy_31_16;
unsigned __int16 Frequency : 11;
unsigned __int16 Dummy_45_43 : 3;
unsigned __int16 Counter_On : 1;
unsigned __int16 Start : 1;
};
/* 79 */
typedef struct $79DCBB646E755A1B7DD622045DD476A2 Sound2Cnt;
/* 80 */
typedef volatile Sound2Cnt vSound2Cnt;
/* 81 */
struct $AF8AE87A46720E695E81B3979DE696B9
{
unsigned __int8 Dummy_6_0 : 5;
unsigned __int8 Connect : 1;
unsigned __int8 Bank : 1;
unsigned __int8 On : 1;
u8 Dummy_15_8;
u8 Counts;
unsigned __int8 Dummy_28_24 : 5;
unsigned __int8 OutputLevel : 3;
unsigned __int16 Frequency : 11;
unsigned __int16 Dummy_45_43 : 3;
unsigned __int16 Counter_On : 1;
unsigned __int16 Start : 1;
};
/* 82 */
typedef struct $AF8AE87A46720E695E81B3979DE696B9 Sound3Cnt;
/* 83 */
typedef volatile Sound3Cnt vSound3Cnt;
/* 84 */
struct $2A6489154C1E65D49CC297839CFBFBFC
{
unsigned __int8 Counts : 6;
unsigned __int8 Dummy_15_14 : 2;
unsigned __int8 EnvSteps : 3;
unsigned __int8 EnvUp_Down : 1;
unsigned __int8 EnvInitData : 4;
u16 Dummy_31_16;
unsigned __int8 PreScaler : 3;
unsigned __int8 PolySteps : 1;
unsigned __int8 PolyShift : 4;
unsigned __int8 Dummy45_40 : 6;
unsigned __int8 Counter_On : 1;
unsigned __int8 Start : 1;
};
/* 85 */
typedef struct $2A6489154C1E65D49CC297839CFBFBFC Sound4Cnt;
/* 86 */
typedef volatile Sound4Cnt vSound4Cnt;
/* 87 */
struct $F566D4A8FD89F658A59DB3470F891C8F
{
unsigned __int16 Sck_I_O : 1;
unsigned __int16 Sck : 1;
unsigned __int16 AckRecv : 1;
unsigned __int16 AckSend : 1;
unsigned __int16 Dummy_6_4 : 3;
unsigned __int16 Enable : 1;
unsigned __int16 Dummy_11_8 : 4;
unsigned __int16 Mode : 2;
unsigned __int16 IF_Enable : 1;
unsigned __int16 Dammy_15 : 1;
u8 Data;
u8 Dummy_31_24;
};
/* 88 */
typedef struct $F566D4A8FD89F658A59DB3470F891C8F SioNormalCnt;
/* 89 */
typedef volatile SioNormalCnt vSioNormalCnt;
/* 90 */
struct $507D2A26AC84DAE830429A6CEDFFD3E9
{
unsigned __int16 BaudRate : 2;
unsigned __int16 SI : 1;
unsigned __int16 SD : 1;
unsigned __int16 ID : 2;
unsigned __int16 Error : 1;
unsigned __int16 Enable : 1;
unsigned __int16 Dummy_11_8 : 4;
unsigned __int16 Mode : 2;
unsigned __int16 IF_Enable : 1;
unsigned __int16 Dammy_15 : 1;
u16 Data;
};
/* 91 */
typedef struct $507D2A26AC84DAE830429A6CEDFFD3E9 SioMultiCnt;
/* 92 */
typedef volatile SioMultiCnt vSioMultiCnt;
/* 93 */
struct $DD1FA034EB3F51238B8302AA56CC2D77
{
unsigned __int16 BaudRate : 2;
unsigned __int16 Cts_Enable : 1;
unsigned __int16 ParitySelect : 1;
unsigned __int16 TransDataFull : 1;
unsigned __int16 RecvDataEmpty : 1;
unsigned __int16 Error : 1;
unsigned __int16 Length : 1;
unsigned __int16 Fifo_Enable : 1;
unsigned __int16 Parity_Enable : 1;
unsigned __int16 Trans_Enable : 1;
unsigned __int16 Recv_Enable : 1;
unsigned __int16 Mode : 2;
unsigned __int16 IF_Enable : 1;
unsigned __int16 Dammy_15 : 1;
u8 Data;
u8 Dummy_31_24;
};
/* 94 */
typedef struct $DD1FA034EB3F51238B8302AA56CC2D77 SioUartCnt;
/* 95 */
typedef volatile SioUartCnt vSioUartCnt;
/* 96 */
struct $48A56D63A3BF97C299E97A05D8AA3F67
{
unsigned __int8 IF_Reset : 1;
unsigned __int8 IF_Recv : 1;
unsigned __int8 IF_Send : 1;
unsigned __int8 Dummy_5_3 : 3;
unsigned __int8 IF_Enable : 1;
unsigned __int8 Dummy_7 : 1;
};
/* 97 */
typedef struct $48A56D63A3BF97C299E97A05D8AA3F67 JoyCnt;
/* 98 */
typedef volatile JoyCnt vJoyCnt;
/* 99 */
struct $19C09E2038D19DC1274172D364FD1CB1
{
unsigned __int8 Dummy_0 : 1;
unsigned __int8 Recv : 1;
unsigned __int8 Dummy_2 : 1;
unsigned __int8 Send : 1;
unsigned __int8 Flags : 2;
unsigned __int8 Dummy_7_6 : 2;
};
/* 100 */
typedef struct $19C09E2038D19DC1274172D364FD1CB1 JoyStat;
/* 101 */
typedef volatile JoyStat vJoyStat;
/* 102 */
struct $25E4905B2AAB90B21832F1C7A55221AD
{
unsigned __int8 SC : 1;
unsigned __int8 SD : 1;
unsigned __int8 SI : 1;
unsigned __int8 SO : 1;
unsigned __int8 SC_I_O : 1;
unsigned __int8 SD_I_O : 1;
unsigned __int8 SI_I_O : 1;
unsigned __int8 SO_I_O : 1;
unsigned __int8 IF_Enable : 1;
unsigned __int8 Dummy_13_9 : 5;
unsigned __int8 SioModeMaster : 2;
};
/* 103 */
typedef struct $25E4905B2AAB90B21832F1C7A55221AD RCnt;
/* 104 */
typedef volatile RCnt vRCnt;
/* 105 */
struct $36389E581391F010DA50195330B0F105
{
u16 Count;
unsigned __int16 Dummy_21_16 : 5;
unsigned __int16 DestpCnt : 2;
unsigned __int16 SrcpCnt : 2;
unsigned __int16 ContinuousON : 1;
unsigned __int16 BusSize : 1;
unsigned __int16 DataRequest : 1;
unsigned __int16 Timming : 2;
unsigned __int16 IF_Enable : 1;
unsigned __int16 Enable : 1;
};
/* 106 */
typedef struct $36389E581391F010DA50195330B0F105 DmaCnt;
/* 107 */
typedef volatile DmaCnt vDmaCnt;
/* 108 */
struct $B2C8AA5841AE2D0D5BFC892A5839C81D
{
u16 Count;
unsigned __int16 PreScaler : 2;
unsigned __int16 Connect : 1;
unsigned __int16 Dummy_5_3 : 3;
unsigned __int16 IF_Enable : 1;
unsigned __int16 Enable : 1;
unsigned __int16 Dummy_15_8 : 8;
};
/* 109 */
typedef struct $B2C8AA5841AE2D0D5BFC892A5839C81D TimerCnt;
/* 110 */
typedef volatile TimerCnt vTimerCnt;
/* 111 */
struct $37D02F90570DC221CBF6DB42A312520E
{
unsigned __int16 A : 1;
unsigned __int16 B : 1;
unsigned __int16 Select : 1;
unsigned __int16 Start : 1;
unsigned __int16 Plus_R : 1;
unsigned __int16 Plus_L : 1;
unsigned __int16 Plus_U : 1;
unsigned __int16 Plus_D : 1;
unsigned __int16 R : 1;
unsigned __int16 L : 1;
unsigned __int16 Dummy_15_10 : 6;
};
/* 112 */
typedef struct $37D02F90570DC221CBF6DB42A312520E KeyData;
/* 113 */
typedef volatile KeyData vKeyData;
/* 114 */
struct $A699298924A979DDFBF7C0C883327870
{
unsigned __int16 Sel_A : 1;
unsigned __int16 Sel_B : 1;
unsigned __int16 Sel_Select : 1;
unsigned __int16 Sel_Start : 1;
unsigned __int16 Sel_Plus_R : 1;
unsigned __int16 Sel_Plus_L : 1;
unsigned __int16 Sel_Plus_U : 1;
unsigned __int16 Sel_Plus_D : 1;
unsigned __int16 Sel_R : 1;
unsigned __int16 Sel_L : 1;
unsigned __int16 Dummy_13_10 : 4;
unsigned __int16 IF_Enable : 1;
unsigned __int16 IntrType : 1;
};
/* 115 */
typedef struct $A699298924A979DDFBF7C0C883327870 KeyCnt;
/* 116 */
typedef volatile KeyCnt vKeyCnt;
/* 117 */
struct $2768D0B151B638E8D14143B1CF133B5F
{
unsigned __int16 Sram : 2;
unsigned __int16 Rom0_1st : 2;
unsigned __int16 Rom0_2nd : 1;
unsigned __int16 Rom1_1st : 2;
unsigned __int16 Rom1_2nd : 1;
unsigned __int16 Rom2_1st : 2;
unsigned __int16 Rom2_2nd : 1;
unsigned __int16 OutClock : 2;
unsigned __int16 Dummy_13 : 1;
unsigned __int16 PrefetchEnale : 1;
unsigned __int16 CassetteType : 1;
};
/* 118 */
typedef struct $2768D0B151B638E8D14143B1CF133B5F CstWaitCnt;
/* 119 */
typedef volatile CstWaitCnt vCstWaitCnt;
/* 120 */
struct $FF47844B25506FA8A313B310A934E9E9
{
u16 SrcNum;
u8 SrcBitNum;
u8 DestBitNum;
unsigned __int32 DestOffset : 31;
unsigned __int32 DestOffset0_On : 1;
};
/* 121 */
typedef struct $FF47844B25506FA8A313B310A934E9E9 BitUnPackParam;
/* 122 */
typedef volatile BitUnPackParam vBitUnPackParam;
/* 123 */
struct _6CCode
{
u16 code;
u16 sarg;
void *larg;
};
/* 124 */
struct _6CStruct
{
struct _6CCode *start;
struct _6CCode *cursor;
int (__cdecl *destructor)(int);
int (__cdecl *loop)(int);
char *name;
struct _6CStruct *parent;
struct _6CStruct *firstChild;
struct _6CStruct *previous;
struct _6CStruct *next;
u16 sleepTimer;
u8 userVal;
u8 bitfield;
u8 blockCounter;
u8 userSpace[67];
};
/* 125 */
struct eventHandler
{
int (__fastcall *func)(int);
int codeLen;
};
/* 126 */
struct $6E845075146DF23E2FDB980B488FD3AD
{
u16 type;
u16 stat;
u32 freq;
u32 loop;
u32 size;
s8 data[1];
};
/* 127 */
typedef struct $6E845075146DF23E2FDB980B488FD3AD WaveData;
/* 128 */
struct $D9264090E336213B139C0C33CD7B8846
{
u8 typ;
u8 key;
u8 len;
u8 p_s;
WaveData *wav;
u8 att;
u8 dec;
u8 sus;
u8 rel;
};
/* 129 */
typedef struct $D9264090E336213B139C0C33CD7B8846 ToneData;
/* 130 */
struct $2BF4778093F23A6BF65C3C20F359F9FE
{
u32 typ;
ToneData *ta;
u8 *st;
};
/* 131 */
typedef struct $2BF4778093F23A6BF65C3C20F359F9FE SplitTone;
/* 132 */
union $401D13579C146D6819A9910C7366A0C0
{
ToneData t;
SplitTone s;
};
/* 133 */
typedef union $401D13579C146D6819A9910C7366A0C0 ToneDataArr;
/* 134 */
struct $BAA59F26689A65E5E53CA506FB0ACC80
{
u8 sf;
u8 ty;
u8 rv;
u8 lv;
u8 at;
u8 de;
u8 su;
u8 re;
u8 r1[24];
u32 fr;
WaveData *wp;
u32 r3[6];
};
/* 135 */
typedef struct $BAA59F26689A65E5E53CA506FB0ACC80 SoundChannel;
/* 136 */
struct $790FD5479BEDFD34ECAC3FCFAC858DD9
{
u32 r1;
vu8 DmaCount;
u8 reverb;
u8 maxchn;
u8 masvol;
u8 freq;
u8 mode;
u8 r2[6];
u32 r3[16];
SoundChannel vchn[12];
s8 pcmbuf[3168];
};
/* 137 */
typedef struct $790FD5479BEDFD34ECAC3FCFAC858DD9 SoundArea;
/* 138 */
struct $1E3C838F69E0989D5898CF13AEEFE8FA
{
u8 trks;
u8 blks;
u8 prio;
u8 rvrb;
ToneData *tone;
u8 *part[1];
};
/* 139 */
typedef struct $1E3C838F69E0989D5898CF13AEEFE8FA SongHeader;
/* 140 */
struct $A0042D557EEC813DC30543E627B3E567
{
SongHeader *song;
u32 stat;
u8 mtrk;
u8 prio;
u8 d1[2];
u32 clock;
u8 d2[48];
};
/* 141 */
typedef struct $A0042D557EEC813DC30543E627B3E567 MusicPlayerArea;
/* 142 */
struct $3D83CF10FF1970CA8F619DECEE55AE09
{
u8 d[80];
};
/* 143 */
typedef struct $3D83CF10FF1970CA8F619DECEE55AE09 MusicPlayerTrack;
/* 144 */
struct $323203A5F3BF5E1768C5008C2ED9F78B
{
u8 ch1[64];
u8 ch2[64];
u8 ch3[64];
u8 ch4[64];
};
/* 145 */
typedef struct $323203A5F3BF5E1768C5008C2ED9F78B CgbChannels;
/* 146 */
struct $35787D2F5E17080DB61284504B77DD6D
{
MusicPlayerArea *ma;
MusicPlayerTrack *ta;
u32 tn;
};
/* 147 */
typedef struct $35787D2F5E17080DB61284504B77DD6D MPlayTable;
/* 148 */
struct $CE43CAFF55226A0089912C26CCDD3F4F
{
SongHeader *so;
u16 ms;
u16 me;
};
/* 149 */
typedef struct $CE43CAFF55226A0089912C26CCDD3F4F SongTable;
/* 150 */
struct $BDE02B8B9A36D67F87133F0A6AA5C700
{
char identifier[12];
int (*sectionOffset)[];
void *event;
void *oamR2L;
void *oamL2R;
void *palGroup;
};
/* 151 */