mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 13:02:41 +01:00
40 lines
1.4 KiB
ArmAsm
40 lines
1.4 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
.include "include/macro.inc"
|
|
|
|
glabel sins
|
|
/* 03F9F0 800645F0 3084FFFF */ andi $a0, $a0, 0xffff
|
|
/* 03F9F4 800645F4 00042102 */ srl $a0, $a0, 4
|
|
/* 03F9F8 800645F8 30820400 */ andi $v0, $a0, 0x400
|
|
/* 03F9FC 800645FC 10400004 */ beqz $v0, .L80064610
|
|
/* 03FA00 80064600 00802821 */ addu $a1, $a0, $zero
|
|
/* 03FA04 80064604 00041027 */ nor $v0, $zero, $a0
|
|
/* 03FA08 80064608 08019185 */ j .L80064614
|
|
/* 03FA0C 8006460C 304203FF */ andi $v0, $v0, 0x3ff
|
|
|
|
.L80064610:
|
|
/* 03FA10 80064610 308203FF */ andi $v0, $a0, 0x3ff
|
|
.L80064614:
|
|
/* 03FA14 80064614 00021040 */ sll $v0, $v0, 1
|
|
/* 03FA18 80064618 3C038009 */ lui $v1, 0x8009
|
|
/* 03FA1C 8006461C 00621821 */ addu $v1, $v1, $v0
|
|
/* 03FA20 80064620 94633DE0 */ lhu $v1, 0x3de0($v1)
|
|
/* 03FA24 80064624 30A20800 */ andi $v0, $a1, 0x800
|
|
/* 03FA28 80064628 14400003 */ bnez $v0, .L80064638
|
|
/* 03FA2C 8006462C 00031023 */ negu $v0, $v1
|
|
/* 03FA30 80064630 0801918F */ j .L8006463C
|
|
/* 03FA34 80064634 00031400 */ sll $v0, $v1, 0x10
|
|
|
|
.L80064638:
|
|
/* 03FA38 80064638 00021400 */ sll $v0, $v0, 0x10
|
|
.L8006463C:
|
|
/* 03FA3C 8006463C 03E00008 */ jr $ra
|
|
/* 03FA40 80064640 00021403 */ sra $v0, $v0, 0x10
|
|
|
|
/* 03FA44 80064644 00000000 */ nop
|
|
/* 03FA48 80064648 00000000 */ nop
|
|
/* 03FA4C 8006464C 00000000 */ nop
|
|
|
|
|