file splits

This commit is contained in:
Ethan Roseman 2021-02-08 21:13:38 +09:00
parent ce8f88b43a
commit 0f2f6705e5
119 changed files with 1211 additions and 567 deletions

View File

@ -0,0 +1,76 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osInsertTimer
/* 41A90 80066690 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 41A94 80066694 AFB20018 */ sw $s2, 0x18($sp)
/* 41A98 80066698 00809021 */ addu $s2, $a0, $zero
/* 41A9C 8006669C AFBF001C */ sw $ra, 0x1c($sp)
/* 41AA0 800666A0 AFB10014 */ sw $s1, 0x14($sp)
/* 41AA4 800666A4 0C01ACD8 */ jal __osDisableInt
/* 41AA8 800666A8 AFB00010 */ sw $s0, 0x10($sp)
/* 41AAC 800666AC 3C038009 */ lui $v1, %hi(D_80094670)
/* 41AB0 800666B0 8C634670 */ lw $v1, %lo(D_80094670)($v1)
/* 41AB4 800666B4 8C660000 */ lw $a2, ($v1)
/* 41AB8 800666B8 8E500010 */ lw $s0, 0x10($s2)
/* 41ABC 800666BC 8E510014 */ lw $s1, 0x14($s2)
/* 41AC0 800666C0 10C30017 */ beq $a2, $v1, .L80066720
/* 41AC4 800666C4 00403821 */ addu $a3, $v0, $zero
/* 41AC8 800666C8 080199BE */ j .L800666F8
/* 41ACC 800666CC 00000000 */ nop
.L800666D0:
/* 41AD0 800666D0 8CC20010 */ lw $v0, 0x10($a2)
/* 41AD4 800666D4 8CC30014 */ lw $v1, 0x14($a2)
/* 41AD8 800666D8 8CC60000 */ lw $a2, ($a2)
/* 41ADC 800666DC 3C048009 */ lui $a0, %hi(D_80094670)
/* 41AE0 800666E0 8C844670 */ lw $a0, %lo(D_80094670)($a0)
/* 41AE4 800666E4 0223282B */ sltu $a1, $s1, $v1
/* 41AE8 800666E8 02238823 */ subu $s1, $s1, $v1
/* 41AEC 800666EC 02028023 */ subu $s0, $s0, $v0
/* 41AF0 800666F0 10C4000B */ beq $a2, $a0, .L80066720
/* 41AF4 800666F4 02058023 */ subu $s0, $s0, $a1
.L800666F8:
/* 41AF8 800666F8 8CC30010 */ lw $v1, 0x10($a2)
/* 41AFC 800666FC 0070102B */ sltu $v0, $v1, $s0
/* 41B00 80066700 1440FFF3 */ bnez $v0, .L800666D0
/* 41B04 80066704 00000000 */ nop
/* 41B08 80066708 16030005 */ bne $s0, $v1, .L80066720
/* 41B0C 8006670C 00000000 */ nop
/* 41B10 80066710 8CC20014 */ lw $v0, 0x14($a2)
/* 41B14 80066714 0051102B */ sltu $v0, $v0, $s1
/* 41B18 80066718 1440FFED */ bnez $v0, .L800666D0
/* 41B1C 8006671C 00000000 */ nop
.L80066720:
/* 41B20 80066720 3C028009 */ lui $v0, %hi(D_80094670)
/* 41B24 80066724 8C424670 */ lw $v0, %lo(D_80094670)($v0)
/* 41B28 80066728 AE500010 */ sw $s0, 0x10($s2)
/* 41B2C 8006672C AE510014 */ sw $s1, 0x14($s2)
/* 41B30 80066730 50C2000A */ beql $a2, $v0, .L8006675C
/* 41B34 80066734 AE460000 */ sw $a2, ($s2)
/* 41B38 80066738 8CC20010 */ lw $v0, 0x10($a2)
/* 41B3C 8006673C 8CC30014 */ lw $v1, 0x14($a2)
/* 41B40 80066740 0071202B */ sltu $a0, $v1, $s1
/* 41B44 80066744 00711823 */ subu $v1, $v1, $s1
/* 41B48 80066748 00501023 */ subu $v0, $v0, $s0
/* 41B4C 8006674C 00441023 */ subu $v0, $v0, $a0
/* 41B50 80066750 ACC20010 */ sw $v0, 0x10($a2)
/* 41B54 80066754 ACC30014 */ sw $v1, 0x14($a2)
/* 41B58 80066758 AE460000 */ sw $a2, ($s2)
.L8006675C:
/* 41B5C 8006675C 8CC20004 */ lw $v0, 4($a2)
/* 41B60 80066760 AE420004 */ sw $v0, 4($s2)
/* 41B64 80066764 8CC20004 */ lw $v0, 4($a2)
/* 41B68 80066768 00E02021 */ addu $a0, $a3, $zero
/* 41B6C 8006676C AC520000 */ sw $s2, ($v0)
/* 41B70 80066770 0C01ACF4 */ jal __osRestoreInt
/* 41B74 80066774 ACD20004 */ sw $s2, 4($a2)
/* 41B78 80066778 02001021 */ addu $v0, $s0, $zero
/* 41B7C 8006677C 02201821 */ addu $v1, $s1, $zero
/* 41B80 80066780 8FBF001C */ lw $ra, 0x1c($sp)
/* 41B84 80066784 8FB20018 */ lw $s2, 0x18($sp)
/* 41B88 80066788 8FB10014 */ lw $s1, 0x14($sp)
/* 41B8C 8006678C 8FB00010 */ lw $s0, 0x10($sp)
/* 41B90 80066790 03E00008 */ jr $ra
/* 41B94 80066794 27BD0020 */ addiu $sp, $sp, 0x20
/* 41B98 80066798 00000000 */ nop
/* 41B9C 8006679C 00000000 */ nop

View File

@ -0,0 +1,38 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSetTimerIntr
/* 41A10 80066610 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 41A14 80066614 AFB30020 */ sw $s3, 0x20($sp)
/* 41A18 80066618 AFB2001C */ sw $s2, 0x1c($sp)
/* 41A1C 8006661C 00809021 */ addu $s2, $a0, $zero
/* 41A20 80066620 00A09821 */ addu $s3, $a1, $zero
/* 41A24 80066624 AFBF0024 */ sw $ra, 0x24($sp)
/* 41A28 80066628 16400007 */ bnez $s2, .L80066648
/* 41A2C 8006662C AFB00018 */ sw $s0, 0x18($sp)
/* 41A30 80066630 16400003 */ bnez $s2, .L80066640
/* 41A34 80066634 2E6201D4 */ sltiu $v0, $s3, 0x1d4
/* 41A38 80066638 10400003 */ beqz $v0, .L80066648
/* 41A3C 8006663C 00000000 */ nop
.L80066640:
/* 41A40 80066640 24120000 */ addiu $s2, $zero, 0
/* 41A44 80066644 241301D4 */ addiu $s3, $zero, 0x1d4
.L80066648:
/* 41A48 80066648 0C01ACD8 */ jal __osDisableInt
/* 41A4C 8006664C 00000000 */ nop
/* 41A50 80066650 0C019680 */ jal osGetCount
/* 41A54 80066654 00408021 */ addu $s0, $v0, $zero
/* 41A58 80066658 3C01800A */ lui $at, %hi(D_8009A62C)
/* 41A5C 8006665C AC22A62C */ sw $v0, %lo(D_8009A62C)($at)
/* 41A60 80066660 00402821 */ addu $a1, $v0, $zero
/* 41A64 80066664 00002021 */ addu $a0, $zero, $zero
/* 41A68 80066668 0C01B1A0 */ jal osSetCompare
/* 41A6C 8006666C 02652021 */ addu $a0, $s3, $a1
/* 41A70 80066670 0C01ACF4 */ jal __osRestoreInt
/* 41A74 80066674 02002021 */ addu $a0, $s0, $zero
/* 41A78 80066678 8FBF0024 */ lw $ra, 0x24($sp)
/* 41A7C 8006667C 8FB30020 */ lw $s3, 0x20($sp)
/* 41A80 80066680 8FB2001C */ lw $s2, 0x1c($sp)
/* 41A84 80066684 8FB00018 */ lw $s0, 0x18($sp)
/* 41A88 80066688 03E00008 */ jr $ra
/* 41A8C 8006668C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,90 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osTimerInterrupt
/* 418D4 800664D4 3C038009 */ lui $v1, %hi(D_80094670)
/* 418D8 800664D8 8C634670 */ lw $v1, %lo(D_80094670)($v1)
/* 418DC 800664DC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 418E0 800664E0 AFBF0014 */ sw $ra, 0x14($sp)
/* 418E4 800664E4 AFB00010 */ sw $s0, 0x10($sp)
/* 418E8 800664E8 8C620000 */ lw $v0, ($v1)
/* 418EC 800664EC 10430044 */ beq $v0, $v1, .L80066600
/* 418F0 800664F0 00000000 */ nop
.L800664F4:
/* 418F4 800664F4 3C028009 */ lui $v0, %hi(D_80094670)
/* 418F8 800664F8 8C424670 */ lw $v0, %lo(D_80094670)($v0)
/* 418FC 800664FC 8C500000 */ lw $s0, ($v0)
/* 41900 80066500 16020006 */ bne $s0, $v0, .L8006651C
/* 41904 80066504 00000000 */ nop
/* 41908 80066508 0C01B1A0 */ jal osSetCompare
/* 4190C 8006650C 00002021 */ addu $a0, $zero, $zero
/* 41910 80066510 3C01800A */ lui $at, %hi(D_8009A62C)
/* 41914 80066514 08019980 */ j .L80066600
/* 41918 80066518 AC20A62C */ sw $zero, %lo(D_8009A62C)($at)
.L8006651C:
/* 4191C 8006651C 0C019680 */ jal osGetCount
/* 41920 80066520 00000000 */ nop
/* 41924 80066524 3C03800A */ lui $v1, %hi(D_8009A62C)
/* 41928 80066528 8C63A62C */ lw $v1, %lo(D_8009A62C)($v1)
/* 4192C 8006652C 3C01800A */ lui $at, %hi(D_8009A62C)
/* 41930 80066530 AC22A62C */ sw $v0, %lo(D_8009A62C)($at)
/* 41934 80066534 00431023 */ subu $v0, $v0, $v1
/* 41938 80066538 8E030010 */ lw $v1, 0x10($s0)
/* 4193C 8006653C 00403821 */ addu $a3, $v0, $zero
/* 41940 80066540 00003021 */ addu $a2, $zero, $zero
/* 41944 80066544 00C3102B */ sltu $v0, $a2, $v1
/* 41948 80066548 14400007 */ bnez $v0, .L80066568
/* 4194C 8006654C 00000000 */ nop
/* 41950 80066550 14660010 */ bne $v1, $a2, .L80066594
/* 41954 80066554 00000000 */ nop
/* 41958 80066558 8E020014 */ lw $v0, 0x14($s0)
/* 4195C 8006655C 00E2102B */ sltu $v0, $a3, $v0
/* 41960 80066560 1040000C */ beqz $v0, .L80066594
/* 41964 80066564 00000000 */ nop
.L80066568:
/* 41968 80066568 8E040010 */ lw $a0, 0x10($s0)
/* 4196C 8006656C 8E050014 */ lw $a1, 0x14($s0)
/* 41970 80066570 00A7102B */ sltu $v0, $a1, $a3
/* 41974 80066574 00A72823 */ subu $a1, $a1, $a3
/* 41978 80066578 00862023 */ subu $a0, $a0, $a2
/* 4197C 8006657C 00822023 */ subu $a0, $a0, $v0
/* 41980 80066580 AE040010 */ sw $a0, 0x10($s0)
/* 41984 80066584 0C019984 */ jal osSetTimerIntr
/* 41988 80066588 AE050014 */ sw $a1, 0x14($s0)
/* 4198C 8006658C 08019980 */ j .L80066600
/* 41990 80066590 00000000 */ nop
.L80066594:
/* 41994 80066594 8E030004 */ lw $v1, 4($s0)
/* 41998 80066598 8E020000 */ lw $v0, ($s0)
/* 4199C 8006659C AC620000 */ sw $v0, ($v1)
/* 419A0 800665A0 8E030000 */ lw $v1, ($s0)
/* 419A4 800665A4 8E020004 */ lw $v0, 4($s0)
/* 419A8 800665A8 AC620004 */ sw $v0, 4($v1)
/* 419AC 800665AC 8E040018 */ lw $a0, 0x18($s0)
/* 419B0 800665B0 AE000000 */ sw $zero, ($s0)
/* 419B4 800665B4 10800004 */ beqz $a0, .L800665C8
/* 419B8 800665B8 AE000004 */ sw $zero, 4($s0)
/* 419BC 800665BC 8E05001C */ lw $a1, 0x1c($s0)
/* 419C0 800665C0 0C019608 */ jal osSendMesg
/* 419C4 800665C4 00003021 */ addu $a2, $zero, $zero
.L800665C8:
/* 419C8 800665C8 8E020008 */ lw $v0, 8($s0)
/* 419CC 800665CC 14400004 */ bnez $v0, .L800665E0
/* 419D0 800665D0 00000000 */ nop
/* 419D4 800665D4 8E02000C */ lw $v0, 0xc($s0)
/* 419D8 800665D8 1040FFC6 */ beqz $v0, .L800664F4
/* 419DC 800665DC 00000000 */ nop
.L800665E0:
/* 419E0 800665E0 8E020008 */ lw $v0, 8($s0)
/* 419E4 800665E4 8E03000C */ lw $v1, 0xc($s0)
/* 419E8 800665E8 02002021 */ addu $a0, $s0, $zero
/* 419EC 800665EC AC820010 */ sw $v0, 0x10($a0)
/* 419F0 800665F0 0C0199A4 */ jal osInsertTimer
/* 419F4 800665F4 AC830014 */ sw $v1, 0x14($a0)
/* 419F8 800665F8 0801993D */ j .L800664F4
/* 419FC 800665FC 00000000 */ nop
.L80066600:
/* 41A00 80066600 8FBF0014 */ lw $ra, 0x14($sp)
/* 41A04 80066604 8FB00010 */ lw $s0, 0x10($sp)
/* 41A08 80066608 03E00008 */ jr $ra
/* 41A0C 8006660C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,25 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osTimerServicesInit
/* 41880 80066480 3C028009 */ lui $v0, %hi(D_80094670)
/* 41884 80066484 8C424670 */ lw $v0, %lo(D_80094670)($v0)
/* 41888 80066488 00002021 */ addu $a0, $zero, $zero
/* 4188C 8006648C 00002821 */ addu $a1, $zero, $zero
/* 41890 80066490 3C01800A */ lui $at, %hi(D_8009A608)
/* 41894 80066494 AC24A608 */ sw $a0, %lo(D_8009A608)($at)
/* 41898 80066498 3C01800A */ lui $at, %hi(D_8009A60C)
/* 4189C 8006649C AC25A60C */ sw $a1, %lo(D_8009A60C)($at)
/* 418A0 800664A0 3C01800A */ lui $at, %hi(D_8009A5C8)
/* 418A4 800664A4 AC20A5C8 */ sw $zero, %lo(D_8009A5C8)($at)
/* 418A8 800664A8 3C01800A */ lui $at, %hi(D_8009A5E4)
/* 418AC 800664AC AC20A5E4 */ sw $zero, %lo(D_8009A5E4)($at)
/* 418B0 800664B0 AC440010 */ sw $a0, 0x10($v0)
/* 418B4 800664B4 AC450014 */ sw $a1, 0x14($v0)
/* 418B8 800664B8 AC440008 */ sw $a0, 8($v0)
/* 418BC 800664BC AC45000C */ sw $a1, 0xc($v0)
/* 418C0 800664C0 AC420004 */ sw $v0, 4($v0)
/* 418C4 800664C4 AC420000 */ sw $v0, ($v0)
/* 418C8 800664C8 AC400018 */ sw $zero, 0x18($v0)
/* 418CC 800664CC 03E00008 */ jr $ra
/* 418D0 800664D0 AC40001C */ sw $zero, 0x1c($v0)

View File

@ -11,7 +11,7 @@ glabel func_80240410_EC2610
/* EC2628 80240428 F7B80028 */ sdc1 $f24, 0x28($sp)
/* EC262C 8024042C 4487C000 */ mtc1 $a3, $f24
/* EC2630 80240430 AFBF0014 */ sw $ra, 0x14($sp)
/* EC2634 80240434 0C01B198 */ jal osGetCause
/* EC2634 80240434 0C01B198 */ jal __osGetCause
/* EC2638 80240438 0080802D */ daddu $s0, $a0, $zero
/* EC263C 8024043C 4616A582 */ mul.s $f22, $f20, $f22
/* EC2640 80240440 00000000 */ nop

View File

@ -11,7 +11,7 @@ glabel func_802403E0_EC7590
/* EC75A8 802403F8 F7B80028 */ sdc1 $f24, 0x28($sp)
/* EC75AC 802403FC 4487C000 */ mtc1 $a3, $f24
/* EC75B0 80240400 AFBF0014 */ sw $ra, 0x14($sp)
/* EC75B4 80240404 0C01B198 */ jal osGetCause
/* EC75B4 80240404 0C01B198 */ jal __osGetCause
/* EC75B8 80240408 0080802D */ daddu $s0, $a0, $zero
/* EC75BC 8024040C 4616A582 */ mul.s $f22, $f20, $f22
/* EC75C0 80240410 00000000 */ nop

View File

@ -11,7 +11,7 @@ glabel func_80241C30_ECB930
/* ECB948 80241C48 F7B80028 */ sdc1 $f24, 0x28($sp)
/* ECB94C 80241C4C 4487C000 */ mtc1 $a3, $f24
/* ECB950 80241C50 AFBF0014 */ sw $ra, 0x14($sp)
/* ECB954 80241C54 0C01B198 */ jal osGetCause
/* ECB954 80241C54 0C01B198 */ jal __osGetCause
/* ECB958 80241C58 0080802D */ daddu $s0, $a0, $zero
/* ECB95C 80241C5C 4616A582 */ mul.s $f22, $f20, $f22
/* ECB960 80241C60 00000000 */ nop

View File

@ -11,7 +11,7 @@ glabel func_802400E0_ED00D0
/* ED00E8 802400F8 F7B80028 */ sdc1 $f24, 0x28($sp)
/* ED00EC 802400FC 4487C000 */ mtc1 $a3, $f24
/* ED00F0 80240100 AFBF0014 */ sw $ra, 0x14($sp)
/* ED00F4 80240104 0C01B198 */ jal osGetCause
/* ED00F4 80240104 0C01B198 */ jal __osGetCause
/* ED00F8 80240108 0080802D */ daddu $s0, $a0, $zero
/* ED00FC 8024010C 4616A582 */ mul.s $f22, $f20, $f22
/* ED0100 80240110 00000000 */ nop

View File

@ -11,7 +11,7 @@ glabel func_80241320_ED5540
/* ED5558 80241338 F7B80028 */ sdc1 $f24, 0x28($sp)
/* ED555C 8024133C 4487C000 */ mtc1 $a3, $f24
/* ED5560 80241340 AFBF0014 */ sw $ra, 0x14($sp)
/* ED5564 80241344 0C01B198 */ jal osGetCause
/* ED5564 80241344 0C01B198 */ jal __osGetCause
/* ED5568 80241348 0080802D */ daddu $s0, $a0, $zero
/* ED556C 8024134C 4616A582 */ mul.s $f22, $f20, $f22
/* ED5570 80241350 00000000 */ nop

View File

@ -11,7 +11,7 @@ glabel func_80240040_EDC020
/* EDC038 80240058 F7B80028 */ sdc1 $f24, 0x28($sp)
/* EDC03C 8024005C 4487C000 */ mtc1 $a3, $f24
/* EDC040 80240060 AFBF0014 */ sw $ra, 0x14($sp)
/* EDC044 80240064 0C01B198 */ jal osGetCause
/* EDC044 80240064 0C01B198 */ jal __osGetCause
/* EDC048 80240068 0080802D */ daddu $s0, $a0, $zero
/* EDC04C 8024006C 4616A582 */ mul.s $f22, $f20, $f22
/* EDC050 80240070 00000000 */ nop

View File

@ -7,7 +7,7 @@ glabel func_80240504_EE6AB4
/* EE6ABC 8024050C AFB00060 */ sw $s0, 0x60($sp)
/* EE6AC0 80240510 F7B60070 */ sdc1 $f22, 0x70($sp)
/* EE6AC4 80240514 F7B40068 */ sdc1 $f20, 0x68($sp)
/* EE6AC8 80240518 0C01B198 */ jal osGetCause
/* EE6AC8 80240518 0C01B198 */ jal __osGetCause
/* EE6ACC 8024051C 27A40010 */ addiu $a0, $sp, 0x10
/* EE6AD0 80240520 3C108024 */ lui $s0, %hi(D_80243B44_EEA0F4)
/* EE6AD4 80240524 26103B44 */ addiu $s0, $s0, %lo(D_80243B44_EEA0F4)

View File

@ -11,7 +11,7 @@ glabel func_80240590_EF8010
/* EF8028 802405A8 F7B80028 */ sdc1 $f24, 0x28($sp)
/* EF802C 802405AC 4487C000 */ mtc1 $a3, $f24
/* EF8030 802405B0 AFBF0014 */ sw $ra, 0x14($sp)
/* EF8034 802405B4 0C01B198 */ jal osGetCause
/* EF8034 802405B4 0C01B198 */ jal __osGetCause
/* EF8038 802405B8 0080802D */ daddu $s0, $a0, $zero
/* EF803C 802405BC 4616A582 */ mul.s $f22, $f20, $f22
/* EF8040 802405C0 00000000 */ nop

View File

@ -0,0 +1,147 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSpTaskLoad
/* 40E10 80065A10 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 40E14 80065A14 AFB00010 */ sw $s0, 0x10($sp)
/* 40E18 80065A18 00808021 */ addu $s0, $a0, $zero
/* 40E1C 80065A1C AFB10014 */ sw $s1, 0x14($sp)
/* 40E20 80065A20 3C11800B */ lui $s1, %hi(D_800AF8C0)
/* 40E24 80065A24 2631F8C0 */ addiu $s1, $s1, %lo(D_800AF8C0)
/* 40E28 80065A28 02202821 */ addu $a1, $s1, $zero
/* 40E2C 80065A2C AFBF0018 */ sw $ra, 0x18($sp)
/* 40E30 80065A30 0C019194 */ jal bcopy
/* 40E34 80065A34 24060040 */ addiu $a2, $zero, 0x40
/* 40E38 80065A38 3C04800B */ lui $a0, %hi(D_800AF8D0)
/* 40E3C 80065A3C 8C84F8D0 */ lw $a0, %lo(D_800AF8D0)($a0)
/* 40E40 80065A40 10800005 */ beqz $a0, .L80065A58
/* 40E44 80065A44 00000000 */ nop
/* 40E48 80065A48 0C0187A4 */ jal osVirtualToPhysical
/* 40E4C 80065A4C 00000000 */ nop
/* 40E50 80065A50 3C01800B */ lui $at, %hi(D_800AF8D0)
/* 40E54 80065A54 AC22F8D0 */ sw $v0, %lo(D_800AF8D0)($at)
.L80065A58:
/* 40E58 80065A58 3C04800B */ lui $a0, %hi(D_800AF8D8)
/* 40E5C 80065A5C 8C84F8D8 */ lw $a0, %lo(D_800AF8D8)($a0)
/* 40E60 80065A60 10800005 */ beqz $a0, .L80065A78
/* 40E64 80065A64 00000000 */ nop
/* 40E68 80065A68 0C0187A4 */ jal osVirtualToPhysical
/* 40E6C 80065A6C 00000000 */ nop
/* 40E70 80065A70 3C01800B */ lui $at, %hi(D_800AF8D8)
/* 40E74 80065A74 AC22F8D8 */ sw $v0, %lo(D_800AF8D8)($at)
.L80065A78:
/* 40E78 80065A78 3C04800B */ lui $a0, %hi(D_800AF8E0)
/* 40E7C 80065A7C 8C84F8E0 */ lw $a0, %lo(D_800AF8E0)($a0)
/* 40E80 80065A80 10800005 */ beqz $a0, .L80065A98
/* 40E84 80065A84 00000000 */ nop
/* 40E88 80065A88 0C0187A4 */ jal osVirtualToPhysical
/* 40E8C 80065A8C 00000000 */ nop
/* 40E90 80065A90 3C01800B */ lui $at, %hi(D_800AF8E0)
/* 40E94 80065A94 AC22F8E0 */ sw $v0, %lo(D_800AF8E0)($at)
.L80065A98:
/* 40E98 80065A98 3C04800B */ lui $a0, %hi(D_800AF8E8)
/* 40E9C 80065A9C 8C84F8E8 */ lw $a0, %lo(D_800AF8E8)($a0)
/* 40EA0 80065AA0 10800005 */ beqz $a0, .L80065AB8
/* 40EA4 80065AA4 00000000 */ nop
/* 40EA8 80065AA8 0C0187A4 */ jal osVirtualToPhysical
/* 40EAC 80065AAC 00000000 */ nop
/* 40EB0 80065AB0 3C01800B */ lui $at, %hi(D_800AF8E8)
/* 40EB4 80065AB4 AC22F8E8 */ sw $v0, %lo(D_800AF8E8)($at)
.L80065AB8:
/* 40EB8 80065AB8 3C04800B */ lui $a0, %hi(D_800AF8EC)
/* 40EBC 80065ABC 8C84F8EC */ lw $a0, %lo(D_800AF8EC)($a0)
/* 40EC0 80065AC0 10800005 */ beqz $a0, .L80065AD8
/* 40EC4 80065AC4 00000000 */ nop
/* 40EC8 80065AC8 0C0187A4 */ jal osVirtualToPhysical
/* 40ECC 80065ACC 00000000 */ nop
/* 40ED0 80065AD0 3C01800B */ lui $at, %hi(D_800AF8EC)
/* 40ED4 80065AD4 AC22F8EC */ sw $v0, %lo(D_800AF8EC)($at)
.L80065AD8:
/* 40ED8 80065AD8 3C04800B */ lui $a0, %hi(D_800AF8F0)
/* 40EDC 80065ADC 8C84F8F0 */ lw $a0, %lo(D_800AF8F0)($a0)
/* 40EE0 80065AE0 10800005 */ beqz $a0, .L80065AF8
/* 40EE4 80065AE4 00000000 */ nop
/* 40EE8 80065AE8 0C0187A4 */ jal osVirtualToPhysical
/* 40EEC 80065AEC 00000000 */ nop
/* 40EF0 80065AF0 3C01800B */ lui $at, %hi(D_800AF8F0)
/* 40EF4 80065AF4 AC22F8F0 */ sw $v0, %lo(D_800AF8F0)($at)
.L80065AF8:
/* 40EF8 80065AF8 3C04800B */ lui $a0, %hi(D_800AF8F8)
/* 40EFC 80065AFC 8C84F8F8 */ lw $a0, %lo(D_800AF8F8)($a0)
/* 40F00 80065B00 10800005 */ beqz $a0, .L80065B18
/* 40F04 80065B04 00000000 */ nop
/* 40F08 80065B08 0C0187A4 */ jal osVirtualToPhysical
/* 40F0C 80065B0C 00000000 */ nop
/* 40F10 80065B10 3C01800B */ lui $at, %hi(D_800AF8F8)
/* 40F14 80065B14 AC22F8F8 */ sw $v0, %lo(D_800AF8F8)($at)
.L80065B18:
/* 40F18 80065B18 3C02800B */ lui $v0, %hi(D_800AF8C4)
/* 40F1C 80065B1C 8C42F8C4 */ lw $v0, %lo(D_800AF8C4)($v0)
/* 40F20 80065B20 30420001 */ andi $v0, $v0, 1
/* 40F24 80065B24 10400019 */ beqz $v0, .L80065B8C
/* 40F28 80065B28 02202021 */ addu $a0, $s1, $zero
/* 40F2C 80065B2C 3C02800B */ lui $v0, %hi(D_800AF8F8)
/* 40F30 80065B30 8C42F8F8 */ lw $v0, %lo(D_800AF8F8)($v0)
/* 40F34 80065B34 3C03800B */ lui $v1, %hi(D_800AF8FC)
/* 40F38 80065B38 8C63F8FC */ lw $v1, %lo(D_800AF8FC)($v1)
/* 40F3C 80065B3C 3C01800B */ lui $at, %hi(D_800AF8D8)
/* 40F40 80065B40 AC22F8D8 */ sw $v0, %lo(D_800AF8D8)($at)
/* 40F44 80065B44 3C01800B */ lui $at, %hi(D_800AF8DC)
/* 40F48 80065B48 AC23F8DC */ sw $v1, %lo(D_800AF8DC)($at)
/* 40F4C 80065B4C 8E020004 */ lw $v0, 4($s0)
/* 40F50 80065B50 2403FFFE */ addiu $v1, $zero, -2
/* 40F54 80065B54 00431024 */ and $v0, $v0, $v1
/* 40F58 80065B58 AE020004 */ sw $v0, 4($s0)
/* 40F5C 80065B5C 3C02800B */ lui $v0, %hi(D_800AF8C4)
/* 40F60 80065B60 8C42F8C4 */ lw $v0, %lo(D_800AF8C4)($v0)
/* 40F64 80065B64 30420004 */ andi $v0, $v0, 4
/* 40F68 80065B68 10400008 */ beqz $v0, .L80065B8C
/* 40F6C 80065B6C 3C03A000 */ lui $v1, 0xa000
/* 40F70 80065B70 8E020038 */ lw $v0, 0x38($s0)
/* 40F74 80065B74 24420BFC */ addiu $v0, $v0, 0xbfc
/* 40F78 80065B78 00431025 */ or $v0, $v0, $v1
/* 40F7C 80065B7C 8C420000 */ lw $v0, ($v0)
/* 40F80 80065B80 3C01800B */ lui $at, %hi(D_800AF8D0)
/* 40F84 80065B84 AC22F8D0 */ sw $v0, %lo(D_800AF8D0)($at)
/* 40F88 80065B88 02202021 */ addu $a0, $s1, $zero
.L80065B8C:
/* 40F8C 80065B8C 0C018614 */ jal osWritebackDCache
/* 40F90 80065B90 24050040 */ addiu $a1, $zero, 0x40
/* 40F94 80065B94 0C01B1BC */ jal osSpSetStatus
/* 40F98 80065B98 24042B00 */ addiu $a0, $zero, 0x2b00
/* 40F9C 80065B9C 2410FFFF */ addiu $s0, $zero, -1
/* 40FA0 80065BA0 3C040400 */ lui $a0, 0x400
.L80065BA4:
/* 40FA4 80065BA4 0C01B1C0 */ jal osSpSetPc
/* 40FA8 80065BA8 34841000 */ ori $a0, $a0, 0x1000
/* 40FAC 80065BAC 1050FFFD */ beq $v0, $s0, .L80065BA4
/* 40FB0 80065BB0 3C040400 */ lui $a0, 0x400
/* 40FB4 80065BB4 2410FFFF */ addiu $s0, $zero, -1
/* 40FB8 80065BB8 24040001 */ addiu $a0, $zero, 1
.L80065BBC:
/* 40FBC 80065BBC 3C050400 */ lui $a1, 0x400
/* 40FC0 80065BC0 34A50FC0 */ ori $a1, $a1, 0xfc0
/* 40FC4 80065BC4 02203021 */ addu $a2, $s1, $zero
/* 40FC8 80065BC8 0C01B1CC */ jal osSpRawStartDma
/* 40FCC 80065BCC 24070040 */ addiu $a3, $zero, 0x40
/* 40FD0 80065BD0 1050FFFA */ beq $v0, $s0, .L80065BBC
/* 40FD4 80065BD4 24040001 */ addiu $a0, $zero, 1
.L80065BD8:
/* 40FD8 80065BD8 0C01B1B0 */ jal osSpDeviceBusy
/* 40FDC 80065BDC 00000000 */ nop
/* 40FE0 80065BE0 1440FFFD */ bnez $v0, .L80065BD8
/* 40FE4 80065BE4 24040001 */ addiu $a0, $zero, 1
/* 40FE8 80065BE8 2410FFFF */ addiu $s0, $zero, -1
.L80065BEC:
/* 40FEC 80065BEC 8E260008 */ lw $a2, 8($s1)
/* 40FF0 80065BF0 8E27000C */ lw $a3, 0xc($s1)
/* 40FF4 80065BF4 3C050400 */ lui $a1, 0x400
/* 40FF8 80065BF8 0C01B1CC */ jal osSpRawStartDma
/* 40FFC 80065BFC 34A51000 */ ori $a1, $a1, 0x1000
/* 41000 80065C00 1050FFFA */ beq $v0, $s0, .L80065BEC
/* 41004 80065C04 24040001 */ addiu $a0, $zero, 1
/* 41008 80065C08 8FBF0018 */ lw $ra, 0x18($sp)
/* 4100C 80065C0C 8FB10014 */ lw $s1, 0x14($sp)
/* 41010 80065C10 8FB00010 */ lw $s0, 0x10($sp)
/* 41014 80065C14 03E00008 */ jr $ra
/* 41018 80065C18 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,18 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSpTaskStartGo
/* 4101C 80065C1C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 41020 80065C20 AFBF0010 */ sw $ra, 0x10($sp)
.L80065C24:
/* 41024 80065C24 0C01B1B0 */ jal osSpDeviceBusy
/* 41028 80065C28 00000000 */ nop
/* 4102C 80065C2C 1440FFFD */ bnez $v0, .L80065C24
/* 41030 80065C30 00000000 */ nop
/* 41034 80065C34 0C01B1BC */ jal osSpSetStatus
/* 41038 80065C38 24040125 */ addiu $a0, $zero, 0x125
/* 4103C 80065C3C 8FBF0010 */ lw $ra, 0x10($sp)
/* 41040 80065C40 03E00008 */ jr $ra
/* 41044 80065C44 27BD0018 */ addiu $sp, $sp, 0x18
/* 41048 80065C48 00000000 */ nop
/* 4104C 80065C4C 00000000 */ nop

View File

@ -169,7 +169,7 @@ glabel __osInitialize_common
/* 45D84 8006A984 3442D354 */ ori $v0, $v0, 0xd354
.L8006A988:
/* 45D88 8006A988 3C018009 */ lui $at, %hi(D_800958F8)
/* 45D8C 8006A98C 0C01B198 */ jal osGetCause
/* 45D8C 8006A98C 0C01B198 */ jal __osGetCause
/* 45D90 8006A990 AC2258F8 */ sw $v0, %lo(D_800958F8)($at)
/* 45D94 8006A994 30421000 */ andi $v0, $v0, 0x1000
/* 45D98 8006A998 10400003 */ beqz $v0, .L8006A9A8

View File

@ -0,0 +1,16 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osCreateMesgQueue
/* 40980 80065580 3C028009 */ lui $v0, %hi(D_80094650)
/* 40984 80065584 24424650 */ addiu $v0, $v0, %lo(D_80094650)
/* 40988 80065588 AC820000 */ sw $v0, ($a0)
/* 4098C 8006558C AC820004 */ sw $v0, 4($a0)
/* 40990 80065590 AC800008 */ sw $zero, 8($a0)
/* 40994 80065594 AC80000C */ sw $zero, 0xc($a0)
/* 40998 80065598 AC860010 */ sw $a2, 0x10($a0)
/* 4099C 8006559C 03E00008 */ jr $ra
/* 409A0 800655A0 AC850014 */ sw $a1, 0x14($a0)
/* 409A4 800655A4 00000000 */ nop
/* 409A8 800655A8 00000000 */ nop
/* 409AC 800655AC 00000000 */ nop

View File

@ -0,0 +1,53 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSiRawStartDma
/* 410C0 80065CC0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 410C4 80065CC4 3C02A480 */ lui $v0, 0xa480
/* 410C8 80065CC8 34420018 */ ori $v0, $v0, 0x18
/* 410CC 80065CCC AFBF0018 */ sw $ra, 0x18($sp)
/* 410D0 80065CD0 AFB10014 */ sw $s1, 0x14($sp)
/* 410D4 80065CD4 AFB00010 */ sw $s0, 0x10($sp)
/* 410D8 80065CD8 8C420000 */ lw $v0, ($v0)
/* 410DC 80065CDC 00808021 */ addu $s0, $a0, $zero
/* 410E0 80065CE0 30420003 */ andi $v0, $v0, 3
/* 410E4 80065CE4 10400003 */ beqz $v0, .L80065CF4
/* 410E8 80065CE8 00A08821 */ addu $s1, $a1, $zero
/* 410EC 80065CEC 08019754 */ j .L80065D50
/* 410F0 80065CF0 2402FFFF */ addiu $v0, $zero, -1
.L80065CF4:
/* 410F4 80065CF4 24020001 */ addiu $v0, $zero, 1
/* 410F8 80065CF8 16020003 */ bne $s0, $v0, .L80065D08
/* 410FC 80065CFC 02202021 */ addu $a0, $s1, $zero
/* 41100 80065D00 0C018614 */ jal osWritebackDCache
/* 41104 80065D04 24050040 */ addiu $a1, $zero, 0x40
.L80065D08:
/* 41108 80065D08 0C0187A4 */ jal osVirtualToPhysical
/* 4110C 80065D0C 02202021 */ addu $a0, $s1, $zero
/* 41110 80065D10 3C03A480 */ lui $v1, 0xa480
/* 41114 80065D14 AC620000 */ sw $v0, ($v1)
/* 41118 80065D18 56000003 */ bnel $s0, $zero, .L80065D28
/* 4111C 80065D1C 3C03A480 */ lui $v1, 0xa480
/* 41120 80065D20 0801974B */ j .L80065D2C
/* 41124 80065D24 34630004 */ ori $v1, $v1, 4
.L80065D28:
/* 41128 80065D28 34630010 */ ori $v1, $v1, 0x10
.L80065D2C:
/* 4112C 80065D2C 3C021FC0 */ lui $v0, 0x1fc0
/* 41130 80065D30 344207C0 */ ori $v0, $v0, 0x7c0
/* 41134 80065D34 AC620000 */ sw $v0, ($v1)
/* 41138 80065D38 16000005 */ bnez $s0, .L80065D50
/* 4113C 80065D3C 00001021 */ addu $v0, $zero, $zero
/* 41140 80065D40 02202021 */ addu $a0, $s1, $zero
/* 41144 80065D44 0C0185C8 */ jal osInvalDCache
/* 41148 80065D48 24050040 */ addiu $a1, $zero, 0x40
/* 4114C 80065D4C 00001021 */ addu $v0, $zero, $zero
.L80065D50:
/* 41150 80065D50 8FBF0018 */ lw $ra, 0x18($sp)
/* 41154 80065D54 8FB10014 */ lw $s1, 0x14($sp)
/* 41158 80065D58 8FB00010 */ lw $s0, 0x10($sp)
/* 4115C 80065D5C 03E00008 */ jr $ra
/* 41160 80065D60 27BD0020 */ addiu $sp, $sp, 0x20
/* 41164 80065D64 00000000 */ nop
/* 41168 80065D68 00000000 */ nop
/* 4116C 80065D6C 00000000 */ nop

View File

@ -0,0 +1,12 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSpTaskYield
/* 41050 80065C50 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 41054 80065C54 AFBF0010 */ sw $ra, 0x10($sp)
/* 41058 80065C58 0C01B1BC */ jal osSpSetStatus
/* 4105C 80065C5C 24040400 */ addiu $a0, $zero, 0x400
/* 41060 80065C60 8FBF0010 */ lw $ra, 0x10($sp)
/* 41064 80065C64 03E00008 */ jr $ra
/* 41068 80065C68 27BD0018 */ addiu $sp, $sp, 0x18
/* 4106C 80065C6C 00000000 */ nop

View File

@ -0,0 +1,25 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSpTaskYielded
/* 41070 80065C70 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 41074 80065C74 AFB00010 */ sw $s0, 0x10($sp)
/* 41078 80065C78 AFBF0014 */ sw $ra, 0x14($sp)
/* 4107C 80065C7C 0C01B1B8 */ jal osSpGetStatus
/* 41080 80065C80 00808021 */ addu $s0, $a0, $zero
/* 41084 80065C84 00022202 */ srl $a0, $v0, 8
/* 41088 80065C88 30420080 */ andi $v0, $v0, 0x80
/* 4108C 80065C8C 10400006 */ beqz $v0, .L80065CA8
/* 41090 80065C90 30840001 */ andi $a0, $a0, 1
/* 41094 80065C94 8E020004 */ lw $v0, 4($s0)
/* 41098 80065C98 2403FFFD */ addiu $v1, $zero, -3
/* 4109C 80065C9C 00441025 */ or $v0, $v0, $a0
/* 410A0 80065CA0 00431024 */ and $v0, $v0, $v1
/* 410A4 80065CA4 AE020004 */ sw $v0, 4($s0)
.L80065CA8:
/* 410A8 80065CA8 00801021 */ addu $v0, $a0, $zero
/* 410AC 80065CAC 8FBF0014 */ lw $ra, 0x14($sp)
/* 410B0 80065CB0 8FB00010 */ lw $s0, 0x10($sp)
/* 410B4 80065CB4 03E00008 */ jr $ra
/* 410B8 80065CB8 27BD0018 */ addiu $sp, $sp, 0x18
/* 410BC 80065CBC 00000000 */ nop

View File

@ -1,7 +1,13 @@
.include "macro.inc"
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.set gp=64 # allow use of 64-bit general purpose registers
glabel osGetCause
.section .text, "ax"
glabel __osGetCause
/* 47A60 8006C660 40026800 */ mfc0 $v0, $13
/* 47A64 8006C664 03E00008 */ jr $ra
/* 47A68 8006C668 00000000 */ nop

View File

@ -1,5 +1,11 @@
.include "macro.inc"
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.set gp=64 # allow use of 64-bit general purpose registers
.section .text, "ax"
glabel osGetCount
/* 40E00 80065A00 40024800 */ mfc0 $v0, $9

View File

@ -1,461 +1,4 @@
#include "common.h"
#include "audio.h"
s32 D_80078DB0 = 0;
u16 D_80078DB4 = 0;
u16 D_80078DB6 = 0;
// chunks of data, not sure what
s32 D_80078DB8[] = { 0x025E0350, 0x04640554, 0x00000000, };
s32 D_80078DC4[] = { 0x0264036E, 0x045A0000, };
s32 D_80078DCC[] = { 0x025F0000, };
s32 D_80078DD0[] = { 0x0546065A, 0x075A0864, 0x00000000, };
s32 D_80078DDC[] = { 0x05000600, 0x07000800, 0x09000A00, 0x0B000C00, 0x0D000E00, 0x0F001000, 0x00000000, };
s32 D_80078DF8[] = { 0x05640666, 0x0758086E, 0x09000A00, 0x0B000C00, 0x0D000E00, 0x0F001000, 0x00000000, };
s32 D_80078E14[] = { 0x05640666, 0x0758086E, 0x097E0A58, 0x0B640C00, 0x0D000E00, 0x0F001000, 0x00000000, };
s32 D_80078E30[] = { 0x05640666, 0x0758086E, 0x097E0A58, 0x0B640C64, 0x0D6A0E64, 0x0F64106E, 0x00000000, 0x00000000, };
INCLUDE_ASM(void, "code_303c0_len_3e10", al_LoadBKHeaders, UnkAl19E0* arg0, ALHeap* arg1);
void func_80055050(void) {
D_80078DB4 = 1;
D_80078DB0 = 0;
}
INCLUDE_ASM(void, "code_303c0_len_3e10", func_80055068, u32 arg0);
void func_80055110(UnkAlA9C* arg0) {
s32 i;
for (i = 0; i < 8; i++) {
arg0->unk_238[i] = 0;
}
arg0->unk_25B = 0;
arg0->unk_25A = 0;
arg0->unk_259 = 0;
arg0->unk_258 = 0;
}
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_8005513C);
void func_800551E0(s32 arg0, u8 arg1, s8 arg2) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
func_8004B6D8(sym, arg0, a1temp, 0, arg2);
}
void func_80055240(s32 arg0, u8 arg1, s8 arg2, s16 arg3) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
if (arg3 > 0x960) {
arg3 = 0x960;
} else if (arg3 < -0x960) {
arg3 = -0x960;
}
func_8004B6D8(sym, arg0, a1temp, arg3, arg2);
}
void func_800552D0(s32 arg0, u8 arg1, s8 arg2) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
func_8004B6D8(sym, arg0 | 0x1000, a1temp, 0, arg2);
}
void func_80055330(s32 arg0, u8 arg1, s8 arg2, s16 arg3) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
if (arg3 > 0x960) {
arg3 = 0x960;
} else if (arg3 < -0x960) {
arg3 = -0x960;
}
func_8004B6D8(sym, arg0 | 0x1000, a1temp, arg3, arg2);
}
void func_800553C0(s32 arg0) {
func_8004B6D8(D_8009A640, arg0 | 0x8000, 0, 0, 0);
}
void func_800553F4(void) {
D_8009A640->unk_168 = 1;
}
void func_80055408(s32 arg0, s16 arg1, s16 arg2, s32 arg3) {
func_8004B6D8(D_8009A640, arg0, arg1, arg2, arg3);
}
s32 func_80055448(s32 arg0) {
return func_80053F80(arg0);
}
s32 func_80055464(s32 arg0, s32 arg1) {
if (func_80050C30(arg0) == 0) {
func_80050CA0(arg0, arg1);
}
}
s32 func_800554A4(s32 arg0) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050EF0(arg0);
}
return ret;
}
s32 func_800554E8(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050F64(arg0, arg1);
}
return ret;
}
s32 func_8005553C(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050E18(arg0, arg1);
}
return ret;
}
s32 func_80055590(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050E84(arg0, arg1);
}
return ret;
}
void func_800555E4(s32 arg0) {
if (func_80050C30(arg0) == 0) {
func_80051050(arg0);
}
}
s32 func_80055618(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050C54(arg0, arg1);
}
return ret;
}
s32 func_8005566C(s32 arg0, s32 arg1, s32 arg2) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050FD0(arg0, arg1, arg2);
}
return ret;
}
s32 func_800556D0(s32 arg0) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050C64(arg0, 1);
}
return ret;
}
s32 func_80055718(s32 arg0) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050C64(arg0, 0);
}
return ret;
}
void func_80055760(s32 arg0) {
u32 i;
s32 lim = 4;
D_80078DB6 = 0xFF;
for (i = 0; i < lim; i++) {
if (func_80055464(i, 0) != 0) {
return;
}
}
func_80055848(arg0);
}
s32 func_800557CC(s32 arg0) {
u32 i;
s32 lim = 4;
s32 phi_v1;
for (i = 0; i < lim; i++) {
if (i == D_80078DB6) {
phi_v1 = func_800554E8(i, arg0);
} else {
phi_v1 = func_800554A4(i);
}
if (phi_v1 != 0) {
break;
}
}
return phi_v1;
}
s32 func_80055848(s32 arg0) {
s32 lim = 4;
s32 phi_v1 = 0;
if (arg0 != D_80078DB6) {
u32 i;
for (i = 0; i < lim; i++) {
if (i == arg0) {
phi_v1 = func_80055718(arg0);
} else {
phi_v1 = func_800556D0(i);
}
if (phi_v1 != 0) {
break;
}
}
if (phi_v1 == 0) {
D_80078DB6 = arg0;
}
}
return phi_v1;
}
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_800558D4);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_8005591C);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055970);
s32 func_800559C4(UNK_TYPE arg0) {
return func_8004DA0C(arg0);
}
void func_800559E0(void) {
func_8004DA74();
}
void func_800559FC(void) {
func_8004DAE0();
}
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055A18);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055A6C);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055ABC);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055AF0);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055B28);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055B80);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055BB8);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055BF0);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055C2C);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055C64);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055C94);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055CC4);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055CE8);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055D38);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055D8C);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055DDC);
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055E48);
// needs rodata
#ifdef NON_MATCHING
s32* func_80055EB4(s32 arg0) {
s32* ret = NULL;
switch (arg0) {
case 0:
ret = &D_80078DB8;
break;
case 1:
ret = &D_80078DC4;
break;
case 2:
ret = &D_80078DCC;
break;
case 3:
ret = &D_80078DD0;
break;
case 4:
ret = &D_80078DDC;
break;
case 5:
ret = &D_80078DF8;
break;
case 6:
ret = &D_80078E14;
break;
case 7:
ret = &D_80078E30;
break;
}
return ret;
}
#else
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80055EB4);
#endif
s32 func_80055F58(s32 arg0, u32 arg1, u32 arg2) {
s32* subroutine_arg4;
s32* subroutine_arg5;
s32 temp_s2 = func_80055CE8(arg0, &subroutine_arg4, &subroutine_arg5);
if (temp_s2 == 0) {
if (arg2 > 0x7F) {
arg2 = 0x7F;
}
if (arg1 > 0xF) {
arg1 = 0xF;
}
func_8005083C(subroutine_arg5, arg1, 0x60, (u8)arg2); // todo remove cast when func is defined
}
return temp_s2;
}
s32 func_80055FD4(s32 arg0, s32 arg1) {
return func_80055F58(arg0, arg1, 0);
}
s32 func_80055FF0(s32 arg0, s32 arg1) {
return func_80055F58(arg0, arg1, 0x3F);
}
s32 func_8005600C(s32 arg0, s32 arg1) {
return func_80055F58(arg0, arg1, 0x7F);
}
s32 func_80056028(s32 arg0, u8 arg1) {
return func_800506C8(arg0, arg1);
}
s32 func_80056044(s32 arg0, u8 arg1) {
return func_800506C8(arg0, arg1 | 0x57000000);
}
s32 func_80056068(s32 arg0, u8 arg1) {
return func_800506C8(arg0, arg1 | 0x7F000000);
}
void func_8005608C(s32* arg0, s32* arg1) {
UnkAl19E0* temp_v0 = D_8009A5C0;
*arg0 = temp_v0->unk_94;
*arg1 = temp_v0->unk_98;
}
void func_800560A8(void) {
D_8009A5C0->unk_9C = 1;
}
INCLUDE_ASM(s32, "code_303c0_len_3e10", func_800560BC);
INCLUDE_ASM(void, "code_303c0_len_3e10", func_8005610C, void);
void func_80056144(UnkFuncAl arg0, s32 arg1) {
D_8009A5C0->unk_A4[arg1] = arg0;
}
void func_8005615C(void) {
func_80056D5C(1);
func_80054DA8(0);
}
void func_80056180(void) {
func_80056D5C(0);
func_80054DA8(1);
}
void func_800561A4(s32 arg0) {
func_80054CE0(1, arg0);
}
void func_800561C4(s32 arg0) {
func_80054CE0(16, arg0);
}
void func_800561E4(s32 arg0) {
func_80054D74(16, arg0);
}
void func_80056204(void) {
func_8004BA54(D_8009A640, 0);
}
void func_80056228(void) {
func_8004BA54(D_8009A640, 1);
}

459
src/code_30450.c Normal file
View File

@ -0,0 +1,459 @@
#include "common.h"
#include "audio.h"
s32 D_80078DB0 = 0;
u16 D_80078DB4 = 0;
u16 D_80078DB6 = 0;
// chunks of data, not sure what
s32 D_80078DB8[] = { 0x025E0350, 0x04640554, 0x00000000, };
s32 D_80078DC4[] = { 0x0264036E, 0x045A0000, };
s32 D_80078DCC[] = { 0x025F0000, };
s32 D_80078DD0[] = { 0x0546065A, 0x075A0864, 0x00000000, };
s32 D_80078DDC[] = { 0x05000600, 0x07000800, 0x09000A00, 0x0B000C00, 0x0D000E00, 0x0F001000, 0x00000000, };
s32 D_80078DF8[] = { 0x05640666, 0x0758086E, 0x09000A00, 0x0B000C00, 0x0D000E00, 0x0F001000, 0x00000000, };
s32 D_80078E14[] = { 0x05640666, 0x0758086E, 0x097E0A58, 0x0B640C00, 0x0D000E00, 0x0F001000, 0x00000000, };
s32 D_80078E30[] = { 0x05640666, 0x0758086E, 0x097E0A58, 0x0B640C64, 0x0D6A0E64, 0x0F64106E, 0x00000000, 0x00000000, };
void func_80055050(void) {
D_80078DB4 = 1;
D_80078DB0 = 0;
}
INCLUDE_ASM(void, "code_30450", func_80055068, u32 arg0);
void func_80055110(UnkAlA9C* arg0) {
s32 i;
for (i = 0; i < 8; i++) {
arg0->unk_238[i] = 0;
}
arg0->unk_25B = 0;
arg0->unk_25A = 0;
arg0->unk_259 = 0;
arg0->unk_258 = 0;
}
INCLUDE_ASM(s32, "code_30450", func_8005513C);
void func_800551E0(s32 arg0, u8 arg1, s8 arg2) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
func_8004B6D8(sym, arg0, a1temp, 0, arg2);
}
void func_80055240(s32 arg0, u8 arg1, s8 arg2, s16 arg3) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
if (arg3 > 0x960) {
arg3 = 0x960;
} else if (arg3 < -0x960) {
arg3 = -0x960;
}
func_8004B6D8(sym, arg0, a1temp, arg3, arg2);
}
void func_800552D0(s32 arg0, u8 arg1, s8 arg2) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
func_8004B6D8(sym, arg0 | 0x1000, a1temp, 0, arg2);
}
void func_80055330(s32 arg0, u8 arg1, s8 arg2, s16 arg3) {
UnkAl6CC* sym = D_8009A640;
s16 a1temp = arg1 * 256;
if (a1temp != 0) {
a1temp |= 0xFF;
}
if (arg2 < 0) {
arg2 = 0x7F;
}
if (arg3 > 0x960) {
arg3 = 0x960;
} else if (arg3 < -0x960) {
arg3 = -0x960;
}
func_8004B6D8(sym, arg0 | 0x1000, a1temp, arg3, arg2);
}
void func_800553C0(s32 arg0) {
func_8004B6D8(D_8009A640, arg0 | 0x8000, 0, 0, 0);
}
void func_800553F4(void) {
D_8009A640->unk_168 = 1;
}
void func_80055408(s32 arg0, s16 arg1, s16 arg2, s32 arg3) {
func_8004B6D8(D_8009A640, arg0, arg1, arg2, arg3);
}
s32 func_80055448(s32 arg0) {
return func_80053F80(arg0);
}
s32 func_80055464(s32 arg0, s32 arg1) {
if (func_80050C30(arg0) == 0) {
func_80050CA0(arg0, arg1);
}
}
s32 func_800554A4(s32 arg0) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050EF0(arg0);
}
return ret;
}
s32 func_800554E8(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050F64(arg0, arg1);
}
return ret;
}
s32 func_8005553C(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050E18(arg0, arg1);
}
return ret;
}
s32 func_80055590(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050E84(arg0, arg1);
}
return ret;
}
void func_800555E4(s32 arg0) {
if (func_80050C30(arg0) == 0) {
func_80051050(arg0);
}
}
s32 func_80055618(s32 arg0, s32 arg1) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050C54(arg0, arg1);
}
return ret;
}
s32 func_8005566C(s32 arg0, s32 arg1, s32 arg2) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050FD0(arg0, arg1, arg2);
}
return ret;
}
s32 func_800556D0(s32 arg0) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050C64(arg0, 1);
}
return ret;
}
s32 func_80055718(s32 arg0) {
s32 ret = func_80050C30(arg0);
if (ret == 0) {
func_80050C64(arg0, 0);
}
return ret;
}
void func_80055760(s32 arg0) {
u32 i;
s32 lim = 4;
D_80078DB6 = 0xFF;
for (i = 0; i < lim; i++) {
if (func_80055464(i, 0) != 0) {
return;
}
}
func_80055848(arg0);
}
s32 func_800557CC(s32 arg0) {
u32 i;
s32 lim = 4;
s32 phi_v1;
for (i = 0; i < lim; i++) {
if (i == D_80078DB6) {
phi_v1 = func_800554E8(i, arg0);
} else {
phi_v1 = func_800554A4(i);
}
if (phi_v1 != 0) {
break;
}
}
return phi_v1;
}
s32 func_80055848(s32 arg0) {
s32 lim = 4;
s32 phi_v1 = 0;
if (arg0 != D_80078DB6) {
u32 i;
for (i = 0; i < lim; i++) {
if (i == arg0) {
phi_v1 = func_80055718(arg0);
} else {
phi_v1 = func_800556D0(i);
}
if (phi_v1 != 0) {
break;
}
}
if (phi_v1 == 0) {
D_80078DB6 = arg0;
}
}
return phi_v1;
}
INCLUDE_ASM(s32, "code_30450", func_800558D4);
INCLUDE_ASM(s32, "code_30450", func_8005591C);
INCLUDE_ASM(s32, "code_30450", func_80055970);
s32 func_800559C4(UNK_TYPE arg0) {
return func_8004DA0C(arg0);
}
void func_800559E0(void) {
func_8004DA74();
}
void func_800559FC(void) {
func_8004DAE0();
}
INCLUDE_ASM(s32, "code_30450", func_80055A18);
INCLUDE_ASM(s32, "code_30450", func_80055A6C);
INCLUDE_ASM(s32, "code_30450", func_80055ABC);
INCLUDE_ASM(s32, "code_30450", func_80055AF0);
INCLUDE_ASM(s32, "code_30450", func_80055B28);
INCLUDE_ASM(s32, "code_30450", func_80055B80);
INCLUDE_ASM(s32, "code_30450", func_80055BB8);
INCLUDE_ASM(s32, "code_30450", func_80055BF0);
INCLUDE_ASM(s32, "code_30450", func_80055C2C);
INCLUDE_ASM(s32, "code_30450", func_80055C64);
INCLUDE_ASM(s32, "code_30450", func_80055C94);
INCLUDE_ASM(s32, "code_30450", func_80055CC4);
INCLUDE_ASM(s32, "code_30450", func_80055CE8);
INCLUDE_ASM(s32, "code_30450", func_80055D38);
INCLUDE_ASM(s32, "code_30450", func_80055D8C);
INCLUDE_ASM(s32, "code_30450", func_80055DDC);
INCLUDE_ASM(s32, "code_30450", func_80055E48);
// needs rodata
#ifdef NON_MATCHING
s32* func_80055EB4(s32 arg0) {
s32* ret = NULL;
switch (arg0) {
case 0:
ret = &D_80078DB8;
break;
case 1:
ret = &D_80078DC4;
break;
case 2:
ret = &D_80078DCC;
break;
case 3:
ret = &D_80078DD0;
break;
case 4:
ret = &D_80078DDC;
break;
case 5:
ret = &D_80078DF8;
break;
case 6:
ret = &D_80078E14;
break;
case 7:
ret = &D_80078E30;
break;
}
return ret;
}
#else
INCLUDE_ASM(s32, "code_30450", func_80055EB4);
#endif
s32 func_80055F58(s32 arg0, u32 arg1, u32 arg2) {
s32* subroutine_arg4;
s32* subroutine_arg5;
s32 temp_s2 = func_80055CE8(arg0, &subroutine_arg4, &subroutine_arg5);
if (temp_s2 == 0) {
if (arg2 > 0x7F) {
arg2 = 0x7F;
}
if (arg1 > 0xF) {
arg1 = 0xF;
}
func_8005083C(subroutine_arg5, arg1, 0x60, (u8)arg2); // todo remove cast when func is defined
}
return temp_s2;
}
s32 func_80055FD4(s32 arg0, s32 arg1) {
return func_80055F58(arg0, arg1, 0);
}
s32 func_80055FF0(s32 arg0, s32 arg1) {
return func_80055F58(arg0, arg1, 0x3F);
}
s32 func_8005600C(s32 arg0, s32 arg1) {
return func_80055F58(arg0, arg1, 0x7F);
}
s32 func_80056028(s32 arg0, u8 arg1) {
return func_800506C8(arg0, arg1);
}
s32 func_80056044(s32 arg0, u8 arg1) {
return func_800506C8(arg0, arg1 | 0x57000000);
}
s32 func_80056068(s32 arg0, u8 arg1) {
return func_800506C8(arg0, arg1 | 0x7F000000);
}
void func_8005608C(s32* arg0, s32* arg1) {
UnkAl19E0* temp_v0 = D_8009A5C0;
*arg0 = temp_v0->unk_94;
*arg1 = temp_v0->unk_98;
}
void func_800560A8(void) {
D_8009A5C0->unk_9C = 1;
}
INCLUDE_ASM(s32, "code_30450", func_800560BC);
INCLUDE_ASM(void, "code_30450", func_8005610C, void);
void func_80056144(UnkFuncAl arg0, s32 arg1) {
D_8009A5C0->unk_A4[arg1] = arg0;
}
void func_8005615C(void) {
func_80056D5C(1);
func_80054DA8(0);
}
void func_80056180(void) {
func_80056D5C(0);
func_80054DA8(1);
}
void func_800561A4(s32 arg0) {
func_80054CE0(1, arg0);
}
void func_800561C4(s32 arg0) {
func_80054CE0(16, arg0);
}
void func_800561E4(s32 arg0) {
func_80054D74(16, arg0);
}
void func_80056204(void) {
func_8004BA54(D_8009A640, 0);
}
void func_80056228(void) {
func_8004BA54(D_8009A640, 1);
}

View File

@ -233,9 +233,3 @@ void func_80057FD8(u8* src, u8* dst, s32 size) {
}
INCLUDE_ASM(s32, "code_31650", func_80058004);
INCLUDE_ASM(s32, "code_31650", func_80058050);
INCLUDE_ASM(s32, "code_31650", func_80058B20);
INCLUDE_ASM(s32, "code_31650", func_80058C6C);

7
src/code_33450.c Normal file
View File

@ -0,0 +1,7 @@
#include "common.h"
INCLUDE_ASM(s32, "code_33450", func_80058050);
INCLUDE_ASM(s32, "code_33450", func_80058B20);
INCLUDE_ASM(s32, "code_33450", func_80058C6C);

7
src/code_3CF80.c Normal file
View File

@ -0,0 +1,7 @@
#include "common.h"
INCLUDE_ASM(s32, "code_3CF80", osContInit, OSMesgQueue* arg0, u8* arg1, OSContStatus* arg2);
INCLUDE_ASM(s32, "code_3CF80", osContGetInitData);
INCLUDE_ASM(s32, "code_3CF80", osPackRequestData);

9
src/code_3FEA0.c Normal file
View File

@ -0,0 +1,9 @@
#include "common.h"
INCLUDE_ASM(s32, "code_3FEA0", _Printf);
INCLUDE_ASM(s32, "code_3FEA0", _Putfld);
INCLUDE_ASM(int, "code_3FEA0", sprintf, char* s, const char* fmt, ...);
INCLUDE_ASM(s32, "code_3FEA0", proutSprintf);

5
src/code_40E10.c Normal file
View File

@ -0,0 +1,5 @@
#include "common.h"
INCLUDE_ASM(void, "code_40E10", osSpTaskLoad, OSTask* tp);
INCLUDE_ASM(void, "code_40E10", osSpTaskStartGo, OSTask* tp);

9
src/code_41880.c Normal file
View File

@ -0,0 +1,9 @@
#include "common.h"
INCLUDE_ASM(s32, "code_41880", osTimerServicesInit);
INCLUDE_ASM(s32, "code_41880", osTimerInterrupt);
INCLUDE_ASM(s32, "code_41880", osSetTimerIntr);
INCLUDE_ASM(s32, "code_41880", osInsertTimer);

6
src/code_43590.c Normal file
View File

@ -0,0 +1,6 @@
#include "common.h"
INCLUDE_ASM(s32, "code_43590", osPfsAllocateFile, OSPfs* pfs, u16 unk1, u32 unk2, u8* unk3, u8* unk4,
int unk5, s32* unk6);
INCLUDE_ASM(s32, "code_43590", osPfsDeclearPage);

7
src/code_44490.c Normal file
View File

@ -0,0 +1,7 @@
#include "common.h"
INCLUDE_ASM(s32, "code_44490", osPfsNumFiles, OSPfs* pfs, s32* unk1, s32* unk2);
INCLUDE_ASM(s32, "code_44490", osPfsInitPak, OSMesgQueue* queue, OSPfs* pfs, int unk1);
INCLUDE_ASM(s32, "code_44490", osPfsCheckRamArea);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_3b390_len_110", nuContRmbModeSet);

View File

@ -1,11 +0,0 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_3b4a0_len_270", nuContRmbForceStop);
INCLUDE_ASM(s32, "os/code_3b4a0_len_270", nuContRmbForceStopEnd);
INCLUDE_ASM(s32, "os/code_3b4a0_len_270", nuPiReadRomOverlay);
INCLUDE_ASM(s32, "os/code_3b4a0_len_270", nuGfxThreadStart);
INCLUDE_ASM(s32, "os/code_3b4a0_len_270", nuGfxThread);

View File

@ -9,11 +9,3 @@ INCLUDE_ASM(s32, "os/code_3cd00_len_5f0", osContStartReadData, OSMesgQueue* queu
INCLUDE_ASM(void, "os/code_3cd00_len_5f0", osContGetReadData, OSContPad* pad);
INCLUDE_ASM(s32, "os/code_3cd00_len_5f0", osPackReadData);
INCLUDE_ASM(s32, "os/code_3cd00_len_5f0", osContInit, OSMesgQueue* queue, u8* unk, OSContStatus* status);
INCLUDE_ASM(s32, "os/code_3cd00_len_5f0", osContGetInitData);
INCLUDE_ASM(s32, "os/code_3cd00_len_5f0", osPackRequestData);
INCLUDE_ASM(u32, "os/code_3cd00_len_5f0", osVirtualToPhysical, void* virt);

View File

@ -1,13 +0,0 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_3d330_len_990", guFrustumF, float mf[4][4], float l, float r, float b, float t, float n,
float f, float scale);
INCLUDE_ASM(void, "os/code_3d330_len_990", guFrustum, Mtx* m, float l, float r, float b, float t, float n, float f,
float scale);
INCLUDE_ASM(void, "os/code_3d330_len_990", guLookAtF, float mf[4][4], float xEye, float yEye, float zEye, float xAt,
float yAt, float zAt, float xUp, float yUp, float zUp);
INCLUDE_ASM(void, "os/code_3d330_len_990", guLookAt, Mtx* m, float xEye, float yEye, float zEye, float xAt, float yAt,
float zAt, float xUp, float yUp, float zUp);

View File

@ -9,13 +9,3 @@ INCLUDE_ASM(s32, "os/code_3fa50_len_f60", strchr);
INCLUDE_ASM(s32, "os/code_3fa50_len_f60", strlen);
INCLUDE_ASM(s32, "os/code_3fa50_len_f60", memcpy);
INCLUDE_ASM(s32, "os/code_3fa50_len_f60", _Printf);
INCLUDE_ASM(s32, "os/code_3fa50_len_f60", _Putfld);
INCLUDE_ASM(int, "os/code_3fa50_len_f60", sprintf, char* s, const char* fmt, ...);
INCLUDE_ASM(s32, "os/code_3fa50_len_f60", proutSprintf);
INCLUDE_ASM(void, "os/code_3fa50_len_f60", osCreateMesgQueue, OSMesgQueue* queue, OSMesg* mesg, s32 unk);

5
src/os/code_40E10.c Normal file
View File

@ -0,0 +1,5 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_40E10", osSpTaskLoad, OSTask* tp);
INCLUDE_ASM(void, "os/code_40E10", osSpTaskStartGo, OSTask* tp);

View File

@ -3,5 +3,3 @@
INCLUDE_ASM(s32, "os/code_40c20_len_1f0", osSendMesg, OSMesgQueue* queue, OSMesg mesg, s32 unk);
INCLUDE_ASM(void, "os/code_40c20_len_1f0", osSetEventMesg, OSEvent event, OSMesgQueue* queue, OSMesg mesg);
INCLUDE_ASM(u32, "os/code_40c20_len_1f0", osGetCount, void);

View File

@ -1,5 +0,0 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_40e10_len_240", osSpTaskLoad, OSTask* tp);
INCLUDE_ASM(void, "os/code_40e10_len_240", osSpTaskStartGo, OSTask* tp);

View File

@ -1,7 +1,3 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_41050_len_120", osSpTaskYield, void);
INCLUDE_ASM(OSYieldResult, "os/code_41050_len_120", osSpTaskYielded, OSTask* tp);
INCLUDE_ASM(s32, "os/code_41050_len_120", osSiRawStartDma);

View File

@ -2,11 +2,3 @@
INCLUDE_ASM(int, "os/code_41750_len_450", osSetTimer, OSTimer* timer, OSTime start, OSTime end, OSMesgQueue* queue,
OSMesg mesg);
INCLUDE_ASM(s32, "os/code_41750_len_450", osTimerServicesInit);
INCLUDE_ASM(s32, "os/code_41750_len_450", osTimerInterrupt);
INCLUDE_ASM(s32, "os/code_41750_len_450", osSetTimerIntr);
INCLUDE_ASM(s32, "os/code_41750_len_450", osInsertTimer);

View File

@ -1,7 +1,3 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_42780_len_120", osViBlack, u8 unk);
INCLUDE_ASM(void, "os/code_42780_len_120", osViRepeatLine, u8 unk);
INCLUDE_ASM(void, "os/code_42780_len_120", guMtxIdent, Mtx* m);

View File

@ -2,7 +2,3 @@
INCLUDE_ASM(void, "os/code_42e70_len_390", guMtxXFMF, float mf[4][4], float x, float y, float z, float* ox, float* oy,
float* oz);
INCLUDE_ASM(void, "os/code_42e70_len_390", guRotateF, float mf[4][4], float a, float x, float y, float z);
INCLUDE_ASM(void, "os/code_42e70_len_390", guRotate, Mtx* m, float a, float x, float y, float z);

Some files were not shown because too many files have changed in this diff Show More