1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-27 23:36:22 +00:00
oot/asm/non_matchings/code/fault/Fault_AddAddrConvClient.s
Lucas Shaw 045a92d7c3
Big actor cleanup (fixed) (#69)
* Started doing cleanup

* did more work

* did more migration

* migrated more rodata and worked on some structs

* did more work

* Removal of ROOM field from initvars, some rodata migration, some string decompilation

* General update

* Decompiled vt strings

* Tool work

* Tool improvements

* 270 overlay rodata files remaining

* better float handling

* floats

* Many more floats

* migrated boss_mo

* assorted fixes

* Migrated 10

* tool improvements

* migrated 10

* 10 more

* 1 more

* did a few more

* fixes

* 10 more

* more floats

* Did some more, updated migrate-rodata.py to 'modify' the C file after processing in order to make to compiler process it as if it was changed.

* removed changes made to script by accident

* migrated largest rodata - ovl_fishing

* Did some more

* 114 remaining

* 99 left !

* almost done migrating rodata

* did some more, done for tonight

* almost done, tried add support to the script for z_player

* All possible rodata migrated in actor overlays

* update

* removed static from all overlays, ran format.sh

* Removed unknown actor structs

* converted a few floats

* Added new lines to header files that were missing them. Removed unused asm files

* Removed unused asm files

* Formatting newlines

Further formatting

spacing

.float spacing

More space formatting

More spacing formatting

Removing .balign 4 after floats

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2020-04-14 14:16:34 -04:00

68 lines
3.1 KiB
ArmAsm

.rdata
glabel D_80146DD4
.asciz "\x1b[41;37mfault_AddressConverterAddClient: %08x は既にリスト中にある\n\x1b[m"
.balign 4
.text
glabel Fault_AddAddrConvClient
/* B4B558 800D43B8 3C0CFFFA */ lui $t4, (0xFFFA5A5A >> 16) # lui $t4, 0xfffa
/* B4B55C 800D43BC 03A06825 */ move $t5, $sp
/* B4B560 800D43C0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* B4B564 800D43C4 358C5A5A */ ori $t4, (0xFFFA5A5A & 0xFFFF) # ori $t4, $t4, 0x5a5a
.L800D43C8:
/* B4B568 800D43C8 25ADFFF8 */ addiu $t5, $t5, -8
/* B4B56C 800D43CC ADAC0000 */ sw $t4, ($t5)
/* B4B570 800D43D0 15BDFFFD */ bne $t5, $sp, .L800D43C8
/* B4B574 800D43D4 ADAC0004 */ sw $t4, 4($t5)
/* B4B578 800D43D8 AFBF0014 */ sw $ra, 0x14($sp)
/* B4B57C 800D43DC 00803825 */ move $a3, $a0
/* B4B580 800D43E0 AFA50024 */ sw $a1, 0x24($sp)
/* B4B584 800D43E4 AFA60028 */ sw $a2, 0x28($sp)
/* B4B588 800D43E8 AFA00018 */ sw $zero, 0x18($sp)
/* B4B58C 800D43EC 24040001 */ li $a0, 1
/* B4B590 800D43F0 0C0013D0 */ jal osSetIntMask
/* B4B594 800D43F4 AFA70020 */ sw $a3, 0x20($sp)
/* B4B598 800D43F8 3C058017 */ lui $a1, %hi(sFaultStructPtr) # $a1, 0x8017
/* B4B59C 800D43FC 24A5A800 */ addiu $a1, %lo(sFaultStructPtr) # addiu $a1, $a1, -0x5800
/* B4B5A0 800D4400 8FA70020 */ lw $a3, 0x20($sp)
/* B4B5A4 800D4404 00402025 */ move $a0, $v0
/* B4B5A8 800D4408 8CAE0000 */ lw $t6, ($a1)
/* B4B5AC 800D440C 240F0001 */ li $t7, 1
/* B4B5B0 800D4410 8FB80024 */ lw $t8, 0x24($sp)
/* B4B5B4 800D4414 8DC307DC */ lw $v1, 0x7dc($t6)
/* B4B5B8 800D4418 50600009 */ beql $v1, $zero, .L800D4440
/* B4B5BC 800D441C ACF80004 */ sw $t8, 4($a3)
.L800D4420:
/* B4B5C0 800D4420 54670004 */ bnel $v1, $a3, .L800D4434
/* B4B5C4 800D4424 8C630000 */ lw $v1, ($v1)
/* B4B5C8 800D4428 1000000C */ b .L800D445C
/* B4B5CC 800D442C AFAF0018 */ sw $t7, 0x18($sp)
/* B4B5D0 800D4430 8C630000 */ lw $v1, ($v1)
.L800D4434:
/* B4B5D4 800D4434 1460FFFA */ bnez $v1, .L800D4420
/* B4B5D8 800D4438 00000000 */ nop
/* B4B5DC 800D443C ACF80004 */ sw $t8, 4($a3)
.L800D4440:
/* B4B5E0 800D4440 8FB90028 */ lw $t9, 0x28($sp)
/* B4B5E4 800D4444 ACF90008 */ sw $t9, 8($a3)
/* B4B5E8 800D4448 8CA80000 */ lw $t0, ($a1)
/* B4B5EC 800D444C 8D0907DC */ lw $t1, 0x7dc($t0)
/* B4B5F0 800D4450 ACE90000 */ sw $t1, ($a3)
/* B4B5F4 800D4454 8CAA0000 */ lw $t2, ($a1)
/* B4B5F8 800D4458 AD4707DC */ sw $a3, 0x7dc($t2)
.L800D445C:
/* B4B5FC 800D445C 0C0013D0 */ jal osSetIntMask
/* B4B600 800D4460 AFA70020 */ sw $a3, 0x20($sp)
/* B4B604 800D4464 8FAB0018 */ lw $t3, 0x18($sp)
/* B4B608 800D4468 3C048014 */ lui $a0, %hi(D_80146DD4) # $a0, 0x8014
/* B4B60C 800D446C 8FA70020 */ lw $a3, 0x20($sp)
/* B4B610 800D4470 11600003 */ beqz $t3, .L800D4480
/* B4B614 800D4474 24846DD4 */ addiu $a0, %lo(D_80146DD4) # addiu $a0, $a0, 0x6dd4
/* B4B618 800D4478 0C00084C */ jal osSyncPrintf
/* B4B61C 800D447C 00E02825 */ move $a1, $a3
.L800D4480:
/* B4B620 800D4480 8FBF0014 */ lw $ra, 0x14($sp)
/* B4B624 800D4484 27BD0020 */ addiu $sp, $sp, 0x20
/* B4B628 800D4488 03E00008 */ jr $ra
/* B4B62C 800D448C 00000000 */ nop