Match sub_08018B10

This commit is contained in:
Tal Hayon 2022-05-09 00:38:52 +03:00
parent 392509f89c
commit d92737285e
2 changed files with 16 additions and 34 deletions

View File

@ -804,37 +804,3 @@ _08018ADA:
mov r8, r3
mov sb, r4
pop {r4, r5, r6, r7, pc}
thumb_func_start sub_08018B10
sub_08018B10: @ 0x08018B10
push {r4, r5, r6, r7, lr}
mov r7, r8
push {r7}
adds r6, r0, #0
movs r0, #0xf8
lsls r0, r0, #1
mov r8, r0
movs r7, #0xfe
lsls r7, r7, #1
movs r5, #0
adds r4, r6, #0
subs r4, #0x40
_08018B28:
mov r0, r8
movs r1, #1
add r8, r1
adds r1, r6, r5
movs r2, #1
bl SetTileType
adds r0, r7, #0
adds r7, #1
adds r1, r4, #0
movs r2, #2
bl SetTileType
adds r4, #1
adds r5, #1
cmp r5, #3
bls _08018B28
pop {r3}
mov r8, r3
pop {r4, r5, r6, r7, pc}

View File

@ -4,6 +4,22 @@
#include "common.h"
#include "flags.h"
void sub_08018B10(int param_1) {
int iVar1;
u32 index;
int iVar3;
int iVar4;
iVar4 = 0x1f0;
iVar3 = 0x1fc;
index = 0;
iVar1 = param_1 - 0x40;
for (; index < 4; iVar1++, index++) {
SetTileType(iVar4++, param_1 + index, 1);
SetTileType(iVar3++, iVar1, 2);
}
}
void sub_08018B50(int param_1) {
u32 i;
int iVar2;