summaryrefslogtreecommitdiff
path: root/asm/main_menu.s
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-05-15 16:59:55 -0700
committerGitHub <noreply@github.com>2021-05-15 18:59:55 -0500
commitf402e46cd3c8b7236673d6edbae77903a7cc0618 (patch)
tree37a19f3ab35a73c29d4d6da565741beaf7bb547f /asm/main_menu.s
parentf65dee5a143bd543c74c010d7252eb76893ee243 (diff)
Sese's April/May Dump (#37)
* splitting lots of pokemon square and labeling lots of other things * actually commit this stuff * more moving data and things * more screen work * split out some pokemon dungeon data * lots of data work * push more data work * split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more * lots of item work * label more item things * subtype -> category and doc types/category
Diffstat (limited to 'asm/main_menu.s')
-rw-r--r--asm/main_menu.s76
1 files changed, 0 insertions, 76 deletions
diff --git a/asm/main_menu.s b/asm/main_menu.s
deleted file mode 100644
index ad0ce64..0000000
--- a/asm/main_menu.s
+++ /dev/null
@@ -1,76 +0,0 @@
- .include "constants/gba_constants.inc"
- .include "asm/macros.inc"
-
- .syntax unified
-
- .text
-
- thumb_func_start SetMenuItems
-SetMenuItems:
- push {r4-r7,lr}
- mov r7, r8
- push {r7}
- sub sp, 0x8
- adds r6, r0, 0
- adds r4, r1, 0
- adds r5, r2, 0
- ldr r0, [sp, 0x24]
- lsls r0, 24
- lsrs r0, 24
- mov r8, r0
- lsls r0, r5, 1
- adds r0, r5
- lsls r0, 3
- adds r0, r4
- ldm r3!, {r1,r2,r7}
- stm r0!, {r1,r2,r7}
- ldm r3!, {r1,r2,r7}
- stm r0!, {r1,r2,r7}
- bl ResetUnusedInputStruct
- adds r0, r4, 0
- movs r1, 0x1
- movs r2, 0x1
- bl sub_800641C
- mov r0, r8
- cmp r0, 0
- beq _08035C90
- lsls r4, r5, 2
- adds r0, r4, r5
- lsls r0, 4
- adds r0, r6, r0
- ldr r1, [sp, 0x28]
- str r1, [sp]
- str r5, [sp, 0x4]
- ldr r1, [sp, 0x20]
- movs r2, 0
- movs r3, 0
- bl sub_8012D60
- b _08035CA8
-_08035C90:
- lsls r4, r5, 2
- adds r0, r4, r5
- lsls r0, 4
- adds r0, r6, r0
- mov r1, r8
- str r1, [sp]
- str r5, [sp, 0x4]
- ldr r1, [sp, 0x20]
- movs r2, 0
- movs r3, 0
- bl sub_8012E04
-_08035CA8:
- adds r0, r4, r5
- lsls r0, 4
- adds r0, r6
- adds r0, 0x4C
- movs r1, 0x1
- strb r1, [r0]
- add sp, 0x8
- pop {r3}
- mov r8, r3
- pop {r4-r7}
- pop {r0}
- bx r0
- thumb_func_end SetMenuItems
-
- .align 2,0