mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
57 lines
2.4 KiB
ArmAsm
57 lines
2.4 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel guScale
|
|
/* 042B00 80067700 3C014780 */ lui $at, 0x4780
|
|
/* 042B04 80067704 44812000 */ mtc1 $at, $f4
|
|
/* 042B08 80067708 44853000 */ mtc1 $a1, $f6
|
|
/* 042B0C 8006770C 00000000 */ nop
|
|
/* 042B10 80067710 46043202 */ mul.s $f8, $f6, $f4
|
|
/* 042B14 80067714 4600428D */ trunc.w.s $f10, $f8
|
|
/* 042B18 80067718 44095000 */ mfc1 $t1, $f10
|
|
/* 042B1C 8006771C 00000000 */ nop
|
|
/* 042B20 80067720 00095402 */ srl $t2, $t1, 0x10
|
|
/* 042B24 80067724 000A4400 */ sll $t0, $t2, 0x10
|
|
/* 042B28 80067728 AC880000 */ sw $t0, ($a0)
|
|
/* 042B2C 8006772C 00095400 */ sll $t2, $t1, 0x10
|
|
/* 042B30 80067730 AC8A0020 */ sw $t2, 0x20($a0)
|
|
/* 042B34 80067734 44863000 */ mtc1 $a2, $f6
|
|
/* 042B38 80067738 00000000 */ nop
|
|
/* 042B3C 8006773C 46043202 */ mul.s $f8, $f6, $f4
|
|
/* 042B40 80067740 4600428D */ trunc.w.s $f10, $f8
|
|
/* 042B44 80067744 44095000 */ mfc1 $t1, $f10
|
|
/* 042B48 80067748 00000000 */ nop
|
|
/* 042B4C 8006774C 00094402 */ srl $t0, $t1, 0x10
|
|
/* 042B50 80067750 AC880008 */ sw $t0, 8($a0)
|
|
/* 042B54 80067754 312AFFFF */ andi $t2, $t1, 0xffff
|
|
/* 042B58 80067758 AC8A0028 */ sw $t2, 0x28($a0)
|
|
/* 042B5C 8006775C 44873000 */ mtc1 $a3, $f6
|
|
/* 042B60 80067760 00000000 */ nop
|
|
/* 042B64 80067764 46043202 */ mul.s $f8, $f6, $f4
|
|
/* 042B68 80067768 4600428D */ trunc.w.s $f10, $f8
|
|
/* 042B6C 8006776C 44095000 */ mfc1 $t1, $f10
|
|
/* 042B70 80067770 00000000 */ nop
|
|
/* 042B74 80067774 00095402 */ srl $t2, $t1, 0x10
|
|
/* 042B78 80067778 000A4400 */ sll $t0, $t2, 0x10
|
|
/* 042B7C 8006777C AC880014 */ sw $t0, 0x14($a0)
|
|
/* 042B80 80067780 00095400 */ sll $t2, $t1, 0x10
|
|
/* 042B84 80067784 AC8A0034 */ sw $t2, 0x34($a0)
|
|
/* 042B88 80067788 24080001 */ addiu $t0, $zero, 1
|
|
/* 042B8C 8006778C AC88001C */ sw $t0, 0x1c($a0)
|
|
/* 042B90 80067790 AC800004 */ sw $zero, 4($a0)
|
|
/* 042B94 80067794 AC80000C */ sw $zero, 0xc($a0)
|
|
/* 042B98 80067798 AC800010 */ sw $zero, 0x10($a0)
|
|
/* 042B9C 8006779C AC800018 */ sw $zero, 0x18($a0)
|
|
/* 042BA0 800677A0 AC800024 */ sw $zero, 0x24($a0)
|
|
/* 042BA4 800677A4 AC80002C */ sw $zero, 0x2c($a0)
|
|
/* 042BA8 800677A8 AC800030 */ sw $zero, 0x30($a0)
|
|
/* 042BAC 800677AC AC800038 */ sw $zero, 0x38($a0)
|
|
/* 042BB0 800677B0 03E00008 */ jr $ra
|
|
/* 042BB4 800677B4 AC80003C */ sw $zero, 0x3c($a0)
|
|
|
|
/* 042BB8 800677B8 00000000 */ nop
|
|
/* 042BBC 800677BC 00000000 */ nop
|
|
|
|
|