summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2018-06-01 00:30:48 -0400
committerRangi <remy.oukaour+rangi@gmail.com>2018-06-01 00:30:48 -0400
commit1f764d96c4ee5f09ac784d506f1b53e315dccdf5 (patch)
tree9751ca71a7e91ab745f1e7493557183a6c918e68
parentfa086f2dca4b1326551cd427d525d9d2a506b3b8 (diff)
Declare landmark names (pointer table structure unknown)
-rw-r--r--data/maps/landmarks.asm50
-rw-r--r--tools/dump_names.py20
2 files changed, 65 insertions, 5 deletions
diff --git a/data/maps/landmarks.asm b/data/maps/landmarks.asm
new file mode 100644
index 0000000..37ec445
--- /dev/null
+++ b/data/maps/landmarks.asm
@@ -0,0 +1,50 @@
+INCLUDE "constants.asm"
+
+SECTION "LandmarkNames", ROMX[$4AAF], BANK[$3F]
+
+LandmarkNames::
+ db "サイレント@"
+ db "オールド@"
+ db "ウエスト@"
+ db "ハイテク@"
+ db "フォント@"
+ db "バードン@"
+ db "ニュータイプ@"
+ db "シュガー@"
+ db "ブルーフォレスト@"
+ db "スタンド@"
+ db "カントー@"
+ db "プりンス@"
+ db "フジヤマ@"
+ db "サウス@"
+ db "ノース@"
+ db "15ばんどうろ@"
+ db "18ばんどうろ@"
+ db "はつでんしょ1@"
+ db "はつでんしょ2@"
+ db "はつでんしょ3@"
+ db "はつでんしょ4@"
+ db "いせき 1@"
+ db "いせき 2@"
+ db "はいこう1@"
+ db "はいこう2@"
+ db "はいこう3@"
+ db "はいこう4@"
+ db "はいこう5@"
+ db "はいこう6@"
+ db "はいこう7@"
+ db "アジト 1@"
+ db "アジト 2@"
+ db "アジト 3@"
+ db "ヤドンの いど1@"
+ db "ヤドンの いど2@"
+ db "#りーぐ1@"
+ db "#りーぐ1@"
+ db "#りーぐ2@"
+ db "#りーぐ3@"
+ db "#りーぐ4@"
+ db "#りーぐ5@"
+ db "#りーぐ6@"
+ db "#りーぐ7@"
+ db "#りーぐ7@"
+ db "しずかなおか@"
diff --git a/tools/dump_names.py b/tools/dump_names.py
index bd2078e..c7ef02d 100644
--- a/tools/dump_names.py
+++ b/tools/dump_names.py
@@ -14,6 +14,18 @@ def parse_string(s):
# assumes strings are literal, no STRCAT() etc
return s.strip('" ')
+def calc_bank(p):
+ return p // 0x4000
+
+def calc_address(p):
+ b = calc_bank(p)
+ o = b * 0x4000
+ return 0x4000 + p - o
+
+def get_sym_loc(p):
+ b, a = calc_bank(p), calc_address(p)
+ return '%02x:%04x' % (b, a)
+
def strip_comment(s):
# assumes ";" is not in the charmap
return s.split(';')[0].rstrip()
@@ -84,9 +96,7 @@ def read_data(bank, address, n):
data.append(v)
return data
-#data = read_data(0x0E, 0x4D90, 64) # TrainerClassNames
-#data = read_data(0x01, 0x6FEC, 255) # ItemNames
-#data = read_data(0x10, 0x52A1, 251) # MoveNames
-data = read_data(0x14, 0x6D75, 251) # PokemonNames
-
+p = 0xfcaaf # Landmarks
+print get_sym_loc(p)
+data = read_data(calc_bank(p), calc_address(p), 45)
dump_strings(data)