Created
September 18, 2020 19:56
-
-
Save ketsuban/d1132aaabb37eeb9011951431d94dce5 to your computer and use it in GitHub Desktop.
Yu-Gi-Oh! Ultimate Masters - World Championship Tournament 2006's AgbMain function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
u8 dat_2000000; | |
u16 dat_200AF10; | |
void (*dat_2029EA0)(u32, u8 *, u16); | |
void sub_80F48F8(void (*)(void)); | |
void sub_80F4B94(void); | |
void sub_80F4C14(void); | |
void sub_80F9BE4(u32); | |
u32 sub_80F9C40(void); | |
void sub_80FBAD0(void); | |
void AgbMain(void) { | |
int i; | |
u8 *temp0; | |
sub_80F4C14(); | |
dat_200AF10 = 0xFFFF; | |
dat_2029EA0(0xE000000, &dat_2000000, 0x6ED0); | |
if (sub_80F9C40() == 0) { | |
temp0 = &dat_2000000; | |
for (i = 0; i < 8; i++) | |
*temp0++ = 0; | |
if (*(u16 *)0x080000AE >> 8 == 'J') | |
sub_80F9BE4(0); | |
else | |
sub_80F9BE4(1); | |
} | |
sub_80F48F8(&sub_80FBAD0); | |
sub_80F4B94(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment