papermario/ver/us/asm/nonmatchings/os/41880/osSetTimerIntr.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "cfc140bb76"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "cfc140bb76"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "85349befcd"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "85349befcd"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* Update symbol addrs

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "a44631e194"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "a44631e194"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

39 lines
1.9 KiB
ArmAsm

.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