summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-05-26 18:57:48 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-05-26 18:57:48 -0400
commit8916d80ef45c6411040a311b11174f83ce845313 (patch)
tree85b85730fd6e2b2f547c6ed43518097a85dbb94a /scripts
parentce639816996d908de0a197b62c08d3a63846a512 (diff)
Disassemble Route 1
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/route1.asm46
-rwxr-xr-xscripts/route1_2.asm53
2 files changed, 62 insertions, 37 deletions
diff --git a/scripts/route1.asm b/scripts/route1.asm
index 926ffd20..8c7cc0e9 100755
--- a/scripts/route1.asm
+++ b/scripts/route1.asm
@@ -1,5 +1,6 @@
Route1Script: ; 1caaf (7:4aaf)
- jp EnableAutoTextBoxDrawing
+ call EnableAutoTextBoxDrawing
+ ret
Route1TextPointers: ; 1cab2 (7:4ab2)
dw Route1Text1
@@ -8,44 +9,15 @@ Route1TextPointers: ; 1cab2 (7:4ab2)
Route1Text1: ; 1cab8 (7:4ab8)
TX_ASM
- CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
- jr nz, .asm_1cada
- ld hl, Route1ViridianMartSampleText
- call PrintText
- lb bc, POTION, 1
- call GiveItem
- jr nc, .BagFull
- ld hl, Route1Text_1cae8
- jr .asm_1cadd
-.BagFull
- ld hl, Route1Text_1caf3
- jr .asm_1cadd
-.asm_1cada
- ld hl, Route1Text_1caee
-.asm_1cadd
- call PrintText
+ callba Func_f1ad2
jp TextScriptEnd
-Route1ViridianMartSampleText: ; 1cae3 (7:4ae3)
- TX_FAR _Route1ViridianMartSampleText
- db "@"
-
-Route1Text_1cae8: ; 1cae8 (7:4ae8)
- TX_FAR _Route1Text_1cae8
- db $0b,"@"
-
-Route1Text_1caee: ; 1caee (7:4aee)
- TX_FAR _Route1Text_1caee
- db "@"
-
-Route1Text_1caf3: ; 1caf3 (7:4af3)
- TX_FAR _Route1Text_1caf3
- db "@"
-
Route1Text2: ; 1caf8 (7:4af8)
- TX_FAR _Route1Text2
- db "@"
+ TX_ASM
+ callba Func_f1b0f
+ jp TextScriptEnd
Route1Text3: ; 1cafd (7:4afd)
- TX_FAR _Route1Text3
- db "@"
+ TX_ASM
+ callba Func_f1b1b
+ jp TextScriptEnd
diff --git a/scripts/route1_2.asm b/scripts/route1_2.asm
new file mode 100755
index 00000000..35ffb137
--- /dev/null
+++ b/scripts/route1_2.asm
@@ -0,0 +1,53 @@
+Func_f1ad2:
+ CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
+ jr nz, .asm_1cada
+ ld hl, Route1ViridianMartSampleText
+ call PrintText
+ lb bc, POTION, 1
+ call GiveItem
+ jr nc, .BagFull
+ ld hl, Route1Text_f1aff
+ jr .asm_1cadd
+.BagFull
+ ld hl, Route1Text_f1b0a
+ jr .asm_1cadd
+.asm_1cada
+ ld hl, Route1Text_f1b05
+.asm_1cadd
+ call PrintText
+ ret
+
+Route1ViridianMartSampleText: ; 1cae3 (7:4ae3)
+ TX_FAR _Route1ViridianMartSampleText
+ db "@"
+
+Route1Text_f1aff: ; 1cae8 (7:4ae8)
+ TX_FAR _Route1Text_1cae8
+ TX_SFX_ITEM
+ db "@"
+
+Route1Text_f1b05: ; 1caee (7:4aee)
+ TX_FAR _Route1Text_1caee
+ db "@"
+
+Route1Text_f1b0a: ; 1caf3 (7:4af3)
+ TX_FAR _Route1Text_1caf3
+ db "@"
+
+Func_f1b0f: ; 1caf8 (7:4af8)
+ ld hl, Route1Text_f1b16
+ call PrintText
+ ret
+
+Route1Text_f1b16:
+ TX_FAR _Route1Text2
+ db "@"
+
+Func_f1b1b: ; 1cafd (7:4afd)
+ ld hl, Route1Text_f1b22
+ call PrintText
+ ret
+
+Route1Text_f1b22:
+ TX_FAR _Route1Text3
+ db "@"