From 6f7a87fa6388110907e9cafa4621d65a2e2f601f Mon Sep 17 00:00:00 2001 From: Faschz Date: Mon, 29 Jun 2020 05:33:29 -0500 Subject: [PATCH] Decomp func_800249E0 --- asm/unknown_0255E0.s | 10 +++++----- src/unknown_0255E0.c | 11 +++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 src/unknown_0255E0.c diff --git a/asm/unknown_0255E0.s b/asm/unknown_0255E0.s index 6824b5fb..7b77a6a5 100755 --- a/asm/unknown_0255E0.s +++ b/asm/unknown_0255E0.s @@ -6,11 +6,11 @@ .set noreorder # dont insert nops after branches .set gp=64 # 64-bit instructions are used -glabel func_800249E0 -/* 0255E0 800249E0 3C018012 */ lui $at, %hi(D_8011D37C) # $at, 0x8012 -/* 0255E4 800249E4 AC24D37C */ sw $a0, %lo(D_8011D37C)($at) -/* 0255E8 800249E8 03E00008 */ jr $ra -/* 0255EC 800249EC 00001025 */ move $v0, $zero +#glabel func_800249E0 +#/* 0255E0 800249E0 3C018012 */ lui $at, %hi(D_8011D37C) # $at, 0x8012 +#/* 0255E4 800249E4 AC24D37C */ sw $a0, %lo(D_8011D37C)($at) +#/* 0255E8 800249E8 03E00008 */ jr $ra +#/* 0255EC 800249EC 00001025 */ move $v0, $zero glabel func_800249F0 /* 0255F0 800249F0 27BDFFD8 */ addiu $sp, $sp, -0x28 diff --git a/src/unknown_0255E0.c b/src/unknown_0255E0.c new file mode 100644 index 00000000..efe8620b --- /dev/null +++ b/src/unknown_0255E0.c @@ -0,0 +1,11 @@ +/* The comment below is needed for this file to be picked up by generate_ld */ +/* RAM_POS: 0x800249E0 */ + +#include "types.h" + +extern s32 D_8011D37C; + +s32 func_800249E0(s32 arg0) { + D_8011D37C = arg0; + return 0; +}