-
Notifications
You must be signed in to change notification settings - Fork 1
/
insert.s
64 lines (61 loc) · 1.36 KB
/
insert.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.gba
.thumb
.open "bpre0.gba", 0x08000000 ; rom start
.relativeinclude on
.org 0x0810708c
ldr r0, =prevent_a+1 ; do nothing when 'a' is pressed on unknown or completed quest
bx r0
.pool
.org 0x0810d840 ; memory allocation
ldr r0, =quest_malloc+1
bx r0
.pool
.org 0x0810d87a
.byte 0,0
ldr r0, =quest_names+1 ; display quest name strings
bx r0
.pool
.org 0x0810d97c
ldr r0, =quest_descriptions+1 ; display quest descriptions when hovering over quest
bx r0
.pool
.org 0x0810da60
ldr r0, =quest_status+1 ; active or done status at right
bx r0
.pool
.org 0x0810db38
ldr r0, =header_box+1 ; side quests instead of withdraw item
bx r0
.pool
.org 0x0810ddae
.byte 0, 0
ldr r0, =num_quests+1 ; store number of quests for loops and stuff
bx r0
.pool
.org 0x0810decc
ldr r0, =prevent_select+1 ; cannot re-order quest names
bx r0
.pool
.org 0x0810e2b4
ldr r0, =quest_opt_strings+1 ; selection options for quest
bx r0
.pool
.org 0x0810e2ec
ldr r0, =selected_msg+1 ; message displayed when selected quest
bx r0
.pool
.org 0x0810e384
ldr r0, =quest_opt_funcs+1 ; functions when selected a quest option
bx r0
.pool
.org 0x0810e434
ldr r0, =selected_string+1 ; message displayed when quest is selected
bx r0
.pool
.org 0x080ebcf8
ldr r0, =quest_callback+1 ; change callback function to start menu callback
bx r0
.pool
.org 0x08990000 ; where to insert into rom
.importobj "build/linked.o"
.close