Guest User

Untitled

a guest
Jan 31st, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.85 KB | None | 0 0
  1. Dragon Warrior III BRK function list
  2. ====================================
  3. (note that some of these are data pointers rather than code)
  4.  
  5. 00 00 0x brk #$00,#$0x = 14/#$00 = 14/$87B9
  6. 00 01 0x brk #$01,#$0x = 14/#$01 = 14/$8072
  7. 00 02 0x brk #$02,#$0x = 14/#$02 = 14/$ABDB (initialize message window)
  8. 00 03 0x brk #$03,#$0x = 14/#$03 = 14/$ABE4 (save message window output position?)
  9. 00 04 0x brk #$04,#$0x = 14/#$04 = 14/$A67B (display message X<<8|A and pause)
  10. 00 05 0x brk #$05,#$0x = 14/#$05 = 14/$ABF9 (clear message window)
  11. 00 06 0x brk #$06,#$0x = 14/#$06 = 14/$A68D (display message X<<8|A, no pause)
  12. 00 07 0x brk #$07,#$0x = 14/#$07 = 14/$A68D (display message X<<8|A, no pause)
  13. 00 08 0x brk #$08,#$0x = 14/#$08 = 14/$A67B (display message X<<8|A and pause)
  14. 00 09 0x brk #$09,#$0x = 14/#$09 = 14/$9EEC
  15. 00 0A 0x brk #$0A,#$0x = 13/#$02 = 13/$965C (per-frame map update)
  16. 00 0B 0x brk #$0B,#$0x = 13/#$03 = 13/$987C
  17. 00 0C 0x brk #$0C,#$0x = 13/#$04 = 13/$9E85
  18. 00 0D 0x brk #$0D,#$0x = 13/#$05 = 13/$9E89
  19. 00 0E 0x brk #$0E,#$0x = 13/#$06 = 13/$9B13
  20. 00 0F 0x brk #$0F,#$0x = 13/#$07 = 13/$9DD3
  21. 00 10 0x brk #$10,#$0x = 10/#$01 = 10/$8162
  22. 00 11 0x brk #$11,#$0x = 13/#$09 = 13/$9DC0
  23. 00 12 0x brk #$12,#$0x = 5/#$07 = 5/$BA69
  24. 00 13 0x brk #$13,#$0x = 5/#$04 = 5/$BC92
  25. 00 14 0x brk #$14,#$0x = 5/#$00 = 5/$8018
  26. 00 15 0x brk #$15,#$0x = 5/#$01 = 5/$8118
  27. 00 16 0x brk #$16,#$0x = 12/#$1D = 12/$961C
  28. 00 17 0x brk #$17,#$0x = 12/#$1F = 12/$99E8
  29. 00 18 0x brk #$18,#$0x = 8/#$00 = 8/$270E
  30. 00 19 0x brk #$19,#$0x = 7/#$08 = 7/$B2AB
  31. 00 1A 0x brk #$1A,#$0x = 10/#$00 = 10/$0000
  32. 00 1B 0x brk #$1B,#$0x = 10/#$01 = 10/$8162
  33. 00 1C 0x brk #$1C,#$0x = 14/#$0A = 14/$F927
  34. 00 1D 0x brk #$1D,#$0x = 6/#$04 = 6/$B240 (map entrance data)
  35. 00 1E 0x brk #$1E,#$0x = 7/#$00 = 7/$803E
  36. 00 1F 0x brk #$1F,#$0x = 14/#$0B = 14/$A2C5
  37. 00 20 0x brk #$20,#$0x = 14/#$0C = 14/$87AE
  38. 00 21 0x brk #$21,#$0x = 14/#$0D = 14/$9EE1
  39. 00 22 0x brk #$22,#$0x = 5/#$02 = 5/$9A95
  40. 00 23 0x brk #$23,#$0x = 0/#$02 = 0/$92A8 (get party member HP)
  41. 00 24 0x brk #$24,#$0x = 0/#$03 = 0/$92B7 (get party member max HP)
  42. 00 25 0x brk #$25,#$0x = 0/#$04 = 0/$92C6 (heal party member)
  43. 00 26 0x brk #$26,#$0x = 0/#$05 = 0/$9302 (damage party member)
  44. 00 27 0x brk #$27,#$0x = 0/#$06 = 0/$932C (get party member MP)
  45. 00 28 0x brk #$28,#$0x = 0/#$07 = 0/$933D (get party member max MP)
  46. 00 29 0x brk #$29,#$0x = 0/#$08 = 0/$934C (restore party member MP)
  47. 00 2A 0x brk #$2A,#$0x = 0/#$09 = 0/$9388 (reduce party member MP)
  48. 00 2B 0x brk #$2B,#$0x = 0/#$0A = 0/$93B5 (set party member MP to 0)
  49. 00 2C 0x brk #$2C,#$0x = 0/#$0B = 0/$93C6 (check party member MP)
  50. 00 2D 0x brk #$2D,#$0x = 0/#$0C = 0/$93D0 (get party member info)
  51. 00 2E 0x brk #$2E,#$0x = 0/#$0D = 0/$9417 (get non-party stored PC info)
  52. 00 2F 0x brk #$2F,#$0x = 0/#$0E = 0/$9436 (get party member status)
  53. 00 30 0x brk #$30,#$0x = 0/#$0F = 0/$9445 (get party member name)
  54. 00 31 0x brk #$31,#$0x = 0/#$10 = 0/$945C (get non-party stored PC name)
  55. 00 32 0x brk #$32,#$0x = 0/#$11 = 0/$947E (get party member strength)
  56. 00 33 0x brk #$33,#$0x = 0/#$12 = 0/$9486 (get party member agility)
  57. 00 34 0x brk #$34,#$0x = 0/#$13 = 0/$94A4 (get party member luck)
  58. 00 35 0x brk #$35,#$0x = 0/#$14 = 0/$94AC (get party member intelligence)
  59. 00 36 0x brk #$36,#$0x = 0/#$15 = 0/$94B4 (get party member vitality)
  60. 00 37 0x brk #$37,#$0x = 0/#$16 = 0/$94CF (get party member base attack)
  61. 00 38 0x brk #$38,#$0x = 0/#$17 = 0/$9527 (get party member current attack)
  62. 00 39 0x brk #$39,#$0x = 0/#$18 = 0/$9540 (get party member base defense)
  63. 00 3A 0x brk #$3A,#$0x = 0/#$19 = 0/$9586 (get party member experience)
  64. 00 3B 0x brk #$3B,#$0x = 0/#$1A = 0/$959A (add party member experience)
  65. 00 3C 0x brk #$3C,#$0x = 0/#$1B = 0/$95ED (get party gold)
  66. 00 3D 0x brk #$3D,#$0x = 0/#$1C = 0/$95FD (add to party gold)
  67. 00 3E 0x brk #$3E,#$0x = 0/#$1D = 0/$963D (subtract from party gold)
  68. 00 3F 0x brk #$3F,#$0x = 0/#$1E = 0/$9668 (get party member equipped items)
  69. 00 40 0x brk #$40,#$0x = 0/#$1F = 0/$96A2 (get party member weapons)
  70. 00 41 0x brk #$41,#$0x = 0/#$20 = 0/$96AE (get party member armors)
  71. 00 42 0x brk #$42,#$0x = 0/#$21 = 0/$96A8 (get party member shields)
  72. 00 43 0x brk #$43,#$0x = 0/#$22 = 0/$96B4 (get party member helmets)
  73. 00 44 0x brk #$44,#$0x = 0/#$23 = 0/$96F4 (equip party member weapon)
  74. 00 45 0x brk #$45,#$0x = 0/#$24 = 0/$9702 (equip party member armor)
  75. 00 46 0x brk #$46,#$0x = 0/#$25 = 0/$96FB (equip party member shield)
  76. 00 47 0x brk #$47,#$0x = 0/#$26 = 0/$9709 (equip party member helmet)
  77. 00 48 0x brk #$48,#$0x = 0/#$27 = 0/$970D (equip party member item)
  78. 00 49 0x brk #$49,#$0x = 0/#$28 = 0/$97BF (get party member item)
  79. 00 4A 0x brk #$4A,#$0x = 0/#$29 = 0/$97F0 (add item to party member)
  80. 00 4B 0x brk #$4B,#$0x = 0/#$2A = 0/$9809 (remove item from party member)
  81. 00 4C 0x brk #$4C,#$0x = 0/#$2B = 0/$983A (search all party members for item)
  82. 00 4D 0x brk #$4D,#$0x = 0/#$2C = 0/$993A (get party member class)
  83. 00 4E 0x brk #$4E,#$0x = 0/#$2D = 0/$9944 (get party member class)
  84. 00 4F 0x brk #$4F,#$0x = 0/#$2E = 0/$9947 (get non-party stored PC class)
  85. 00 50 0x brk #$50,#$0x = 0/#$2F = 0/$9957 (get party member sex)
  86. 00 51 0x brk #$51,#$0x = 0/#$30 = 0/$9964 (get non-party stored PC sex)
  87. 00 52 0x brk #$52,#$0x = 0/#$31 = 0/$9976 (get party member list)
  88. 00 53 0x brk #$53,#$0x = 0/#$32 = 0/$9900 (get non-party stored PC list)
  89. 00 54 0x brk #$54,#$0x = 0/#$33 = 0/$998A (count living party members)
  90. 00 55 0x brk #$55,#$0x = 0/#$34 = 0/$99C5 (get spell ID if known by party member)
  91. 00 56 0x brk #$56,#$0x = 0/#$35 = 0/$9A77 (get field spell ID if known)
  92. 00 57 0x brk #$57,#$0x = 0/#$36 = 0/$9A83 (get page 1 battle spell ID if known)
  93. 00 58 0x brk #$58,#$0x = 0/#$37 = 0/$9A8D (get page 2 battle spell ID if known)
  94. 00 59 0x brk #$59,#$0x = 0/#$38 = 0/$9A98 (get page 3 battle spell ID if known)
  95. 00 5A 0x brk #$5A,#$0x = 0/#$39 = 0/$9AA3 (count spells known by party member)
  96. 00 5B 0x brk #$5B,#$0x = 0/#$3A = 0/$9AFF (swap party positions on field)
  97. 00 5C 0x brk #$5C,#$0x = 0/#$3B = 0/$9BAD (swap party positions in battle)
  98. 00 5D 0x brk #$5D,#$0x = 6/#$05 = 6/$B387 (overworld town/dungeon list)
  99. 00 5E 0x brk #$5E,#$0x = 12/#$02 = 12/$8776
  100. 00 5F 0x brk #$5F,#$0x = 2/#$00 = 2/$A13A
  101. 00 60 0x brk #$60,#$0x = 2/#$01 = 2/$99A4
  102. 00 61 0x brk #$61,#$0x = 2/#$02 = 2/$9989
  103. 00 62 0x brk #$62,#$0x = 2/#$03 = 2/$9972
  104. 00 63 0x brk #$63,#$0x = 2/#$04 = 2/$9956
  105. 00 64 0x brk #$64,#$0x = 2/#$05 = 2/$9939
  106. 00 65 0x brk #$65,#$0x = 2/#$06 = 2/$9830 (screen shake effect for party damage)
  107. 00 66 0x brk #$66,#$0x = 2/#$07 = 2/$97F8 (screen flash effect for spells)
  108. 00 67 0x brk #$67,#$0x = 0/#$00 = 0/$8222 (random encounter check)
  109. 00 68 0x brk #$68,#$0x = 0/#$3C = 0/$9884 (find party member with inventory space)
  110. 00 69 0x brk #$69,#$0x = 2/#$0A = 2/$A2F9
  111. 00 6A 0x brk #$6A,#$0x = 0/#$43 = 0/$B2D3 (enemy data)
  112. 00 6B 0x brk #$6B,#$0x = 4/#$00 = 4/$8059 (battle entry point)
  113. 00 6C 0x brk #$6C,#$0x = 4/#$01 = 4/$B4FF
  114. 00 6D 0x brk #$6D,#$0x = 4/#$02 = 4/$B532
  115. 00 6E 0x brk #$6E,#$0x = 4/#$03 = 4/$B93F
  116. 00 6F 0x brk #$6F,#$0x = 4/#$04 = 4/$B6CC
  117. 00 70 0x brk #$70,#$0x = 4/#$05 = 4/$BA39 (delay for message speed)
  118. 00 71 0x brk #$71,#$0x = 4/#$06 = 4/$A906 (draw battle party status window)
  119. 00 72 0x brk #$72,#$0x = 4/#$07 = 4/$A9C2 (open message window?)
  120. 00 73 0x brk #$73,#$0x = 4/#$08 = 4/$A92D
  121. 00 74 0x brk #$74,#$0x = 4/#$09 = 4/$A991 (display message and pause)
  122. 00 75 0x brk #$75,#$0x = 4/#$0A = 4/$A9A8 (clear message window)
  123. 00 76 0x brk #$76,#$0x = 4/#$0B = 4/$A997
  124. 00 77 0x brk #$77,#$0x = 4/#$0C = 4/$AA7A (display message without pause)
  125. 00 78 0x brk #$78,#$0x = 4/#$0D = 4/$B452 (spell MP cost / flag table)
  126. 00 79 0x brk #$79,#$0x = 2/#$0B = 2/$A34F (choose party battle actions)
  127. 00 7A 0x brk #$7A,#$0x = 0/#$3D = 0/$9C3B (clear party member poison)
  128. 00 7B 0x brk #$7B,#$0x = 0/#$3E = 0/$9C48 (mark party member alive)
  129. 00 7C 0x brk #$7C,#$0x = 4/#$0F = 4/$ACA3 (get a ranged multi-random number)
  130. 00 7D 0x brk #$7D,#$0x = 6/#$00 = 6/$8042
  131. 00 7E 0x brk #$7E,#$0x = 6/#$01 = 6/$8044
  132. 00 7F 0x brk #$7F,#$0x = 6/#$02 = 6/$8046
  133. 00 80 0x brk #$80,#$0x = 6/#$03 = 6/$8048
  134. 00 81 0x brk #$81,#$0x = 10/#$02 = 10/$821C (choose actions for all enemies)
  135. 00 82 0x brk #$82,#$0x = 12/#$03 = 12/$8CB4
  136. 00 83 0x brk #$83,#$0x = 12/#$04 = 12/$8DA7
  137. 00 84 0x brk #$84,#$0x = 12/#$05 = 12/$8C5F
  138. 00 85 0x brk #$85,#$0x = 12/#$06 = 12/$8C66
  139. 00 86 0x brk #$86,#$0x = 10/#$03 = 10/$82C8 (choose action and target for enemy)
  140. 00 87 0x brk #$87,#$0x = 14/#$1E = 14/$0000
  141. 00 88 0x brk #$88,#$0x = 6/#$08 = 6/$B6BB
  142. 00 89 0x brk #$89,#$0x = 6/#$09 = 6/$B7B0
  143. 00 8A 0x brk #$8A,#$0x = 6/#$0A = 6/$B7A9
  144. 00 8B 0x brk #$8B,#$0x = 6/#$0B = 6/$B755
  145. 00 8C 0x brk #$8C,#$0x = 10/#$0C = 10/$8493
  146. 00 8D 0x brk #$8D,#$0x = 10/#$0D = 10/$84A9
  147. 00 8E 0x brk #$8E,#$0x = 0/#$40 = 0/$9137
  148. 00 8F 0x brk #$8F,#$0x = 0/#$41 = 0/$9186
  149. 00 90 0x brk #$90,#$0x = 0/#$42 = 0/$91AE
  150. 00 91 0x brk #$91,#$0x = 1/#$0F = 1/$0000
  151. 00 92 0x brk #$92,#$0x = 0/#$44 = 0/$922B
  152. 00 93 0x brk #$93,#$0x = 7/#$01 = 7/$A521
  153. 00 94 0x brk #$94,#$0x = 7/#$03 = 7/$A633
  154. 00 95 0x brk #$95,#$0x = 7/#$04 = 7/$A68D
  155. 00 96 0x brk #$96,#$0x = 7/#$02 = 7/$A51F
  156. 00 97 0x brk #$97,#$0x = 12/#$00 = 12/$843A
  157. 00 98 0x brk #$98,#$0x = 10/#$06 = 10/$8C80 (check if hero is at Locket of Love canal)
  158. 00 99 0x brk #$99,#$0x = 5/#$03 = 5/$BC73
  159. 00 9A 0x brk #$9A,#$0x = 7/#$05 = 7/$A6FA
  160. 00 9B 0x brk #$9B,#$0x = 12/#$09 = 12/$8387
  161. 00 9C 0x brk #$9C,#$0x = 0/#$45 = 0/$9862 (find item in party member inventory)
  162. 00 9D 0x brk #$9D,#$0x = 12/#$0A = 12/$870F
  163. 00 9E 0x brk #$9E,#$0x = 1/#$01 = 1/$0000
  164. 00 9F 0x brk #$9F,#$0x = 1/#$02 = 1/$8030
  165. 00 A0 0x brk #$A0,#$0x = 1/#$03 = 1/$8067 (play music or sound effect)
  166. 00 A1 0x brk #$A1,#$0x = 1/#$04 = 1/$8046
  167. 00 A2 0x brk #$A2,#$0x = 1/#$05 = 1/$803B
  168. 00 A3 0x brk #$A3,#$0x = 13/#$27 = 13/$B10E
  169. 00 A4 0x brk #$A4,#$0x = 2/#$0C = 2/$A98D
  170. 00 A5 0x brk #$A5,#$0x = 1/#$07 = 1/$8051
  171. 00 A6 0x brk #$A6,#$0x = 14/#$10 = 14/$B91E
  172. 00 A7 0x brk #$A7,#$0x = 4/#$0E = 4/$BA5C (return a random-16 number)
  173. 00 A8 0x brk #$A8,#$0x = 14/#$0E = 14/$B703
  174. 00 A9 0x brk #$A9,#$0x = 0/#$46 = 0/$A38D
  175. 00 AA 0x brk #$AA,#$0x = 0/#$47 = 0/$A35B
  176. 00 AB 0x brk #$AB,#$0x = 14/#$1D = 14/$AF24
  177. 00 AC 0x brk #$AC,#$0x = 14/#$19 = 14/$BA40
  178. 00 AD 0x brk #$AD,#$0x = 14/#$1A = 14/$BA60
  179. 00 AE 0x brk #$AE,#$0x = 14/#$20 = 14/$AF43
  180. 00 AF 0x brk #$AF,#$0x = 14/#$21 = 14/$AF62
  181. 00 B0 0x brk #$B0,#$0x = 4/#$10 = 4/$BCAC (return 1<<A)
  182. 00 B1 0x brk #$B1,#$0x = 4/#$12 = 4/$B5BD
  183. 00 B2 0x brk #$B2,#$0x = 0/#$3F = 0/$A337
  184. 00 B3 0x brk #$B3,#$0x = 4/#$13 = 4/$8838 (select a random party target)
  185. 00 B4 0x brk #$B4,#$0x = 4/#$14 = 4/$8850 (select a random enemy target)
  186. 00 B5 0x brk #$B5,#$0x = 4/#$15 = 4/$B4E9 (healing range table)
  187. 00 B6 0x brk #$B6,#$0x = 10/#$14 = 10/$9197
  188. 00 B7 0x brk #$B7,#$0x = 10/#$15 = 10/$9217
  189. 00 B8 0x brk #$B8,#$0x = 12/#$0D = 12/$9442
  190. 00 B9 0x brk #$B9,#$0x = 12/#$0E = 12/$943E
  191. 00 BA 0x brk #$BA,#$0x = 12/#$0F = 12/$943A
  192. 00 BB 0x brk #$BB,#$0x = 12/#$10 = 12/$91E2
  193. 00 BC 0x brk #$BC,#$0x = 12/#$11 = 12/$920E
  194. 00 BD 0x brk #$BD,#$0x = 6/#$1F = 6/$BF57
  195. 00 BE 0x brk #$BE,#$0x = 12/#$13 = 12/$9F82
  196. 00 BF 0x brk #$BF,#$0x = 14/#$22 = 14/$B009
  197. 00 C0 0x brk #$C0,#$0x = 14/#$23 = 14/$B118
  198. 00 C1 0x brk #$C1,#$0x = 14/#$24 = 14/$B16A
  199. 00 C2 0x brk #$C2,#$0x = 14/#$25 = 14/$B0FC
  200. 00 C3 0x brk #$C3,#$0x = 14/#$26 = 14/$B087
  201. 00 C4 0x brk #$C4,#$0x = 6/#$0C = 6/$B3E8
  202. 00 C5 0x brk #$C5,#$0x = 6/#$0D = 6/$B409
  203. 00 C6 0x brk #$C6,#$0x = 6/#$0E = 6/$B414
  204. 00 C7 0x brk #$C7,#$0x = 6/#$0F = 6/$B458
  205. 00 C8 0x brk #$C8,#$0x = 12/#$14 = 12/$AF95
  206. 00 C9 0x brk #$C9,#$0x = 12/#$15 = 12/$A359
  207. 00 CA 0x brk #$CA,#$0x = 12/#$16 = 12/$A37A
  208. 00 CB 0x brk #$CB,#$0x = 2/#$09 = 2/$A326
  209. 00 CC 0x brk #$CC,#$0x = 0/#$4C = 0/$0000
  210. 00 CD 0x brk #$CD,#$0x = 0/#$4D = 0/$9D4A
  211. 00 CE 0x brk #$CE,#$0x = 12/#$17 = 12/$A3DE
  212. 00 CF 0x brk #$CF,#$0x = 12/#$18 = 12/$A354
  213. 00 D0 0x brk #$D0,#$0x = 4/#$16 = 4/$BA2C (delay half of message speed)
  214. 00 D1 0x brk #$D1,#$0x = 4/#$17 = 4/$B83D (check for item drop)
  215. 00 D2 0x brk #$D2,#$0x = 4/#$18 = 4/$B96F
  216. 00 D3 0x brk #$D3,#$0x = 4/#$19 = 4/$B654
  217. 00 D4 0x brk #$D4,#$0x = 4/#$1A = 4/$B298 (update text color)
  218. 00 D5 0x brk #$D5,#$0x = 4/#$1B = 4/$B33C
  219. 00 D6 0x brk #$D6,#$0x = 4/#$1C = 4/$B40A (increment X if >1 enemy type)
  220. 00 D7 0x brk #$D7,#$0x = 4/#$1D = 4/$B414 (increment X if party size >= 2)
  221. 00 D8 0x brk #$D8,#$0x = 1/#$09 = 1/$8857 (initial battle setup)
  222. 00 D9 0x brk #$D9,#$0x = 1/#$0A = 1/$8788 (battle end-of-turn effects)
  223. 00 DA 0x brk #$DA,#$0x = 1/#$0B = 1/$87F5 (battle start-of-turn effects)
  224. 00 DB 0x brk #$DB,#$0x = 1/#$0C = 1/$89C3 (handle party wipe)
  225. 00 DC 0x brk #$DC,#$0x = 1/#$0D = 1/$8A2A (handle battle victory)
  226. 00 DD 0x brk #$DD,#$0x = 13/#$0D = 13/$9D4F
  227. 00 DE 0x brk #$DE,#$0x = 6/#$10 = 6/$B47B
  228. 00 DF 0x brk #$DF,#$0x = 0/#$58 = 0/$A2D7
  229. 00 E0 0x brk #$E0,#$0x = 0/#$59 = 0/$A2F7
  230. 00 E1 0x brk #$E1,#$0x = 0/#$5A = 0/$A317
  231. 00 E2 0x brk #$E2,#$0x = 12/#$2D = 12/$A485
  232. 00 E3 0x brk #$E3,#$0x = 6/#$11 = 6/$B4F9
  233. 00 E4 0x brk #$E4,#$0x = 0/#$5B = 0/$9E70
  234. 00 E5 0x brk #$E5,#$0x = 10/#$0A = 10/$8402
  235. 00 E6 0x brk #$E6,#$0x = 14/#$2E = 14/$B3A1
  236. 00 E7 0x brk #$E7,#$0x = 14/#$2F = 14/$B482
  237. 00 E8 0x brk #$E8,#$0x = 14/#$30 = 14/$B53E
  238. 00 E9 0x brk #$E9,#$0x = 14/#$31 = 14/$B2DB (get music index for current map)
  239. 00 EA 0x brk #$EA,#$0x = 2/#$08 = 2/$97F0
  240. 00 EB 0x brk #$EB,#$0x = 14/#$32 = 14/$B052
  241. 00 EC 0x brk #$EC,#$0x = 0/#$5D = 0/$AAF2
  242. 00 ED 0x brk #$ED,#$0x = 4/#$1E = 4/$BF01 (get healing amount)
  243. 00 EE 0x brk #$EE,#$0x = 4/#$1F = 4/$B07D
  244. 00 EF 0x brk #$EF,#$0x = 4/#$20 = 4/$B0A1 (find item in party member inventory)
  245. 00 F0 0x brk #$F0,#$0x = 1/#$10 = 1/$805C (wait for current music to end)
  246. 00 F1 0x brk #$F1,#$0x = 5/#$09 = 5/$BCB0
  247. 00 F2 0x brk #$F2,#$0x = 5/#$0A = 5/$BDEC
  248. 00 F3 0x brk #$F3,#$0x = 12/#$1C = 12/$A375
  249. 00 F4 0x brk #$F4,#$0x = 14/#$33 = 14/$83FF
  250. 00 F5 0x brk #$F5,#$0x = 12/#$1E = 12/$9AEB
  251. 00 F6 0x brk #$F6,#$0x = 7/#$1B = 7/$A7F1
  252. 00 F7 0x brk #$F7,#$0x = 12/#$21 = 12/$A740
  253. 00 F8 0x brk #$F8,#$0x = 12/#$22 = 12/$9BE4
  254. 00 F9 0x brk #$F9,#$0x = 14/#$1B = 14/$B6E3
  255. 00 FA 0x brk #$FA,#$0x = 12/#$38 = 12/$A3D1
  256. 00 FB 0x brk #$FB,#$0x = 12/#$25 = 12/$9F43
  257. 00 FC 0x brk #$FC,#$0x = 10/#$05 = 10/$8312 (add (Y<<8|A)+C to 24-bit value $00,X)
  258. 00 FD 0x brk #$FD,#$0x = 13/#$19 = 13/$8054
  259. 00 FE 0x brk #$FE,#$0x = 12/#$2C = 12/$A47F
  260. 00 FF 0x brk #$FF,#$0x = 13/#$01 = 13/$8198
  261.  
  262. 00 00 1x brk #$00,#$1x = 12/#$2A = 12/$B164
  263. 00 01 1x brk #$01,#$1x = 12/#$12 = 12/$B8DF
  264. 00 02 1x brk #$02,#$1x = 13/#$12 = 13/$9F24
  265. 00 03 1x brk #$03,#$1x = 13/#$13 = 13/$9F76
  266. 00 04 1x brk #$04,#$1x = 12/#$29 = 12/$B124
  267. 00 05 1x brk #$05,#$1x = 6/#$17 = 6/$BC68
  268. 00 06 1x brk #$06,#$1x = 13/#$0E = 13/$96DC
  269. 00 07 1x brk #$07,#$1x = 14/#$2B = 14/$B395
  270. 00 08 1x brk #$08,#$1x = 0/#$5E = 0/$9770 (check if party member can equip item)
  271. 00 09 1x brk #$09,#$1x = 0/#$5F = 0/$97A5 (alternate equippability check)
  272. 00 0A 1x brk #$0A,#$1x = 0/#$60 = 0/$9C60 (get item class)
  273. 00 0B 1x brk #$0B,#$1x = 10/#$12 = 10/$915A
  274. 00 0C 1x brk #$0C,#$1x = 7/#$1C = 7/$B343
  275. 00 0D 1x brk #$0D,#$1x = 13/#$14 = 13/$A08E
  276. 00 0E 1x brk #$0E,#$1x = 13/#$15 = 13/$A084
  277. 00 0F 1x brk #$0F,#$1x = 12/#$26 = 12/$A267
  278. 00 10 1x brk #$10,#$1x = 0/#$48 = 0/$9CB3 (check party member Return list)
  279. 00 11 1x brk #$11,#$1x = 0/#$49 = 0/$9CF5 (add current map to Return lists)
  280. 00 12 1x brk #$12,#$1x = 6/#$06 = 6/$B512 (Return effect)
  281. 00 13 1x brk #$13,#$1x = 6/#$07 = 6/$B512 (Return effect)
  282. 00 14 1x brk #$14,#$1x = 1/#$14 = 1/$8072
  283. 00 15 1x brk #$15,#$1x = 1/#$15 = 1/$80C3
  284. 00 16 1x brk #$16,#$1x = 1/#$16 = 1/$80BD
  285. 00 17 1x brk #$17,#$1x = 1/#$17 = 1/$8130
  286. 00 18 1x brk #$18,#$1x = 1/#$13 = 1/$8154
  287. 00 19 1x brk #$19,#$1x = 14/#$12 = 14/$9E7F
  288. 00 1A 1x brk #$1A,#$1x = 14/#$13 = 14/$85BE
  289. 00 1B 1x brk #$1B,#$1x = 14/#$14 = 14/$8EBC
  290. 00 1C 1x brk #$1C,#$1x = 14/#$15 = 14/$0000
  291. 00 1D 1x brk #$1D,#$1x = 12/#$31 = 12/$8C8D
  292. 00 1E 1x brk #$1E,#$1x = 14/#$16 = 14/$B5B1
  293. 00 1F 1x brk #$1F,#$1x = 14/#$17 = 14/$8789 (yes/no prompt)
  294. 00 20 1x brk #$20,#$1x = 14/#$1C = 14/$8789 (yes/no prompt)
  295. 00 21 1x brk #$21,#$1x = 14/#$0F = 14/$B911
  296. 00 22 1x brk #$22,#$1x = 0/#$61 = 0/$A206
  297. 00 23 1x brk #$23,#$1x = 12/#$32 = 12/$8C70
  298. 00 24 1x brk #$24,#$1x = 14/#$10 = 14/$B91E
  299. 00 25 1x brk #$25,#$1x = 14/#$34 = 14/$86EC
  300. 00 26 1x brk #$26,#$1x = 12/#$33 = 12/$A51F
  301. 00 27 1x brk #$27,#$1x = 13/#$16 = 13/$B172
  302. 00 28 1x brk #$28,#$1x = 13/#$17 = 13/$A0B8 (check for item in vault)
  303. 00 29 1x brk #$29,#$1x = 0/#$5C = 0/$98A8 (check if party member is cursed)
  304. 00 2A 1x brk #$2A,#$1x = 0/#$62 = 0/$9AE4 (count field spells known)
  305. 00 2B 1x brk #$2B,#$1x = 12/#$37 = 12/$95D4
  306. 00 2C 1x brk #$2C,#$1x = 0/#$4D = 0/$9D4A (check for item in inventories/vault)
  307. 00 2D 1x brk #$2D,#$1x = 13/#$26 = 13/$9ECE
  308. 00 2E 1x brk #$2E,#$1x = 0/#$64 = 0/$A28D
  309. 00 2F 1x brk #$2F,#$1x = 13/#$28 = 13/$95A0 (update current text color)
  310. 00 30 1x brk #$30,#$1x = 0/#$63 = 0/$9743
  311. 00 31 1x brk #$31,#$1x = 4/#$21 = 4/$A9D6 (half-delay or wait for input)
  312. 00 32 1x brk #$32,#$1x = 13/#$18 = 13/$811D
  313. 00 33 1x brk #$33,#$1x = 13/#$19 = 13/$8054
  314. 00 34 1x brk #$34,#$1x = 13/#$1A = 13/$8063
  315. 00 35 1x brk #$35,#$1x = 13/#$1B = 13/$8094
  316. 00 36 1x brk #$36,#$1x = 13/#$1C = 13/$80ED
  317. 00 37 1x brk #$37,#$1x = 13/#$1D = 13/$80F3
  318. 00 38 1x brk #$38,#$1x = 13/#$1E = 13/$809D
  319. 00 39 1x brk #$39,#$1x = 12/#$24 = 12/$AA80
  320. 00 3A 1x brk #$3A,#$1x = 12/#$39 = 12/$A3FF
  321. 00 3B 1x brk #$3B,#$1x = 12/#$3A = 12/$A435
  322. 00 3C 1x brk #$3C,#$1x = 13/#$1F = 13/$A09B (count items in vault)
  323. 00 3D 1x brk #$3D,#$1x = 5/#$08 = 5/$BDE0
  324. 00 3E 1x brk #$3E,#$1x = 13/#$21 = 13/$BF6B
  325. 00 3F 1x brk #$3F,#$1x = 1/#$0E = 1/$8D49
  326. 00 40 1x brk #$40,#$1x = 4/#$22 = 4/$8215 (initialize battle state)
  327. 00 41 1x brk #$41,#$1x = 12/#$3B = 12/$A40E
  328. 00 42 1x brk #$42,#$1x = 6/#$12 = 6/$B65C
  329. 00 43 1x brk #$43,#$1x = 12/#$19 = 12/$A632
  330. 00 44 1x brk #$44,#$1x = 13/#$22 = 13/$A0E4
  331. 00 45 1x brk #$45,#$1x = 0/#$4E = 0/$9D9B
  332. 00 46 1x brk #$46,#$1x = 0/#$4F = 0/$9DD8
  333. 00 47 1x brk #$47,#$1x = 12/#$27 = 12/$B9A5
  334. 00 48 1x brk #$48,#$1x = 12/#$28 = 12/$A6AE
  335. 00 49 1x brk #$49,#$1x = 0/#$50 = 0/$9E09
  336. 00 4A 1x brk #$4A,#$1x = 12/#$2F = 12/$A70D
  337. 00 4B 1x brk #$4B,#$1x = 12/#$30 = 12/$A733
  338. 00 4C 1x brk #$4C,#$1x = 0/#$51 = 0/$80D0
  339. 00 4D 1x brk #$4D,#$1x = 0/#$52 = 0/$81B1
  340. 00 4E 1x brk #$4E,#$1x = 0/#$01 = 0/$85F0 (start preset encounter)
  341. 00 4F 1x brk #$4F,#$1x = 0/#$53 = 0/$8258 (force random encounter)
  342. 00 50 1x brk #$50,#$1x = 14/#$36 = 14/$B5FE
  343. 00 51 1x brk #$51,#$1x = 14/#$18 = 14/$BA16
  344. 00 52 1x brk #$52,#$1x = 14/#$38 = 14/$9F0C
  345. 00 53 1x brk #$53,#$1x = 6/#$13 = 6/$B59D
  346. 00 54 1x brk #$54,#$1x = 4/#$23 = 4/$BB3B (get bitmask of invalid party targets)
  347. 00 55 1x brk #$55,#$1x = 0/#$54 = 0/$9FEA
  348. 00 56 1x brk #$56,#$1x = 5/#$05 = 5/$BEDB
  349. 00 57 1x brk #$57,#$1x = 12/#$01 = 12/$8078
  350. 00 58 1x brk #$58,#$1x = 13/#$0A = 13/$806F
  351. 00 59 1x brk #$59,#$1x = 12/#$34 = 12/$8EA1
  352. 00 5A 1x brk #$5A,#$1x = 12/#$35 = 12/$8D58
  353. 00 5B 1x brk #$5B,#$1x = 12/#$1A = 12/$A891
  354. 00 5C 1x brk #$5C,#$1x = 4/#$24 = 4/$80EF
  355. 00 5D 1x brk #$5D,#$1x = 4/#$25 = 4/$80FA
  356. 00 5E 1x brk #$5E,#$1x = 12/#$1B = 12/$8FE3
  357. 00 5F 1x brk #$5F,#$1x = 5/#$0B = 5/$BE96
  358. 00 60 1x brk #$60,#$1x = 10/#$0F = 10/$909D (intro cutscene)
  359. 00 61 1x brk #$61,#$1x = 6/#$14 = 6/$B7B7
  360. 00 62 1x brk #$62,#$1x = 7/#$0A = 7/$A865
  361. 00 63 1x brk #$63,#$1x = 0/#$65 = 0/$BF50
  362. 00 64 1x brk #$64,#$1x = 0/#$66 = 0/$BFA5
  363. 00 65 1x brk #$65,#$1x = 7/#$0D = 7/$AFDE
  364. 00 66 1x brk #$66,#$1x = 7/#$0E = 7/$B19F
  365. 00 67 1x brk #$67,#$1x = 7/#$0F = 7/$B1BD
  366. 00 68 1x brk #$68,#$1x = 7/#$10 = 7/$ADB2
  367. 00 69 1x brk #$69,#$1x = 7/#$11 = 7/$B0ED
  368. 00 6A 1x brk #$6A,#$1x = 7/#$12 = 7/$B10C
  369. 00 6B 1x brk #$6B,#$1x = 7/#$13 = 7/$B140
  370. 00 6C 1x brk #$6C,#$1x = 7/#$14 = 7/$AF8A
  371. 00 6D 1x brk #$6D,#$1x = 12/#$0C = 12/$A218
  372. 00 6E 1x brk #$6E,#$1x = 6/#$15 = 6/$B67C
  373. 00 6F 1x brk #$6F,#$1x = 7/#$15 = 7/$B16C
  374. 00 70 1x brk #$70,#$1x = 12/#$2E = 12/$B8C7
  375. 00 71 1x brk #$71,#$1x = 12/#$20 = 12/$B19A
  376. 00 72 1x brk #$72,#$1x = 12/#$0B = 12/$A464
  377. 00 73 1x brk #$73,#$1x = 0/#$55 = 0/$A149 (check if spells allowed on current map)
  378. 00 74 1x brk #$74,#$1x = 5/#$06 = 5/$BECE
  379. 00 75 1x brk #$75,#$1x = 10/#$10 = 10/$90ED
  380. 00 76 1x brk #$76,#$1x = 10/#$11 = 10/$9111 (cutscene on first meeting Aliahan king)
  381. 00 77 1x brk #$77,#$1x = 12/#$36 = 12/$95CD
  382. 00 78 1x brk #$78,#$1x = 10/#$08 = 10/$8323
  383. 00 79 1x brk #$79,#$1x = 5/#$08 = 5/$BDE0
  384. 00 7A 1x brk #$7A,#$1x = 13/#$29 = 13/$9622 (set effective enemy IDs for Shadows)
  385. 00 7B 1x brk #$7B,#$1x = 0/#$56 = 0/$9D82
  386. 00 7C 1x brk #$7C,#$1x = 7/#$19 = 7/$A70A
  387. 00 7D 1x brk #$7D,#$1x = 13/#$0B = 13/$B0CA
  388. 00 7E 1x brk #$7E,#$1x = 7/#$1A = 7/$A7AD
  389. 00 7F 1x brk #$7F,#$1x = 6/#$18 = 6/$BCF1
  390. 00 80 1x brk #$80,#$1x = 4/#$26 = 4/$82AB (initialize enemy state for battles)
  391. 00 81 1x brk #$81,#$1x = 6/#$19 = 6/$BD16
  392. 00 82 1x brk #$82,#$1x = 13/#$0F = 13/$AEDF
  393. 00 83 1x brk #$83,#$1x = 13/#$0C = 13/$AF56
  394. 00 84 1x brk #$84,#$1x = 13/#$10 = 13/$A76E
  395. 00 85 1x brk #$85,#$1x = 6/#$16 = 6/$BA5B
  396. 00 86 1x brk #$86,#$1x = 2/#$0D = 2/$A742
  397. 00 87 1x brk #$87,#$1x = 6/#$1D = 6/$BE20
  398. 00 88 1x brk #$88,#$1x = 6/#$1C = 6/$BDEB
  399. 00 89 1x brk #$89,#$1x = 6/#$1B = 6/$BD66
  400. 00 8A 1x brk #$8A,#$1x = 12/#$26 = 12/$A267
  401. 00 8B 1x brk #$8B,#$1x = 13/#$11 = 13/$A790
  402. 00 8C 1x brk #$8C,#$1x = 13/#$23 = 13/$BE1A
  403. 00 8D 1x brk #$8D,#$1x = 13/#$24 = 13/$BDFE
  404. 00 8E 1x brk #$8E,#$1x = 12/#$2B = 12/$A2D7
  405. 00 8F 1x brk #$8F,#$1x = 10/#$09 = 10/$8322 (no-op)
  406. 00 90 1x brk #$90,#$1x = 13/#$20 = 13/$BA52
  407. 00 91 1x brk #$91,#$1x = 6/#$16 = 6/$BA5B
  408. 00 92 1x brk #$92,#$1x = 12/#$23 = 12/$999C
  409. 00 93 1x brk #$93,#$1x = 14/#$11 = 14/$B91A
  410. 00 94 1x brk #$94,#$1x = 6/#$1A = 6/$BD36
  411. 00 95 1x brk #$95,#$1x = 7/#$1D = 7/$AC56
  412. 00 96 1x brk #$96,#$1x = 6/#$1E = 6/$BE4C
  413. 00 97 1x brk #$97,#$1x = 10/#$0B = 10/$839F
  414. 00 98 1x brk #$98,#$1x = 2/#$0E = 2/$A928
  415. 00 99 1x brk #$99,#$1x = 0/#$67 = 0/$A1A7 (adjust MP cost for Mysterious Hat if equipped)
  416. 00 9A 1x brk #$9A,#$1x = 6/#$20 = 6/$BBFB
  417. 00 9B 1x brk #$9B,#$1x = 10/#$02 = 10/$821C (choose actions for all enemies)
  418. 00 9C 1x brk #$9C,#$1x = 10/#$03 = 10/$82C8 (choose action and target for enemy)
  419. 00 9D 1x brk #$9D,#$1x = 4/#$27 = 4/$8362 (choose action for enemy)
  420. 00 9E 1x brk #$9E,#$1x = 4/#$28 = 4/$8473 (choose target for enemy)
  421. 00 9F 1x brk #$9F,#$1x = 4/#$29 = 4/$B965 (return enemy AI type)
  422. 00 A0 1x brk #$A0,#$1x = 4/#$2A = 4/$B96A (return enemy actions-per-turn selector)
  423. 00 A1 1x brk #$A1,#$1x = 4/#$2B = 4/$8517 (choose enemy attack target)
  424. 00 A2 1x brk #$A2,#$1x = 10/#$04 = 10/$82E8 (divide 24-bit value $00,X by A)
  425. 00 A3 1x brk #$A3,#$1x = 10/#$05 = 10/$8312 (add (Y<<8|A)+C to 24-bit value $00,X)
  426. 00 A4 1x brk #$A4,#$1x = 10/#$06 = 10/$8C80 (check if hero is at Locket of Love canal)
  427. 00 A5 1x brk #$A5,#$1x = 10/#$07 = 10/$8C90 (no-op)
  428. 00 A6 1x brk #$A6,#$1x = 10/#$0E = 10/$8C91
  429. 00 A7 1x brk #$A7,#$1x = 7/#$1E = 7/$B482
  430. 00 A8 1x brk #$A8,#$1x = 10/#$16 = 10/$92D8
  431. 00 A9 1x brk #$A9,#$1x = 10/#$17 = 10/$93DF
  432. 00 AA 1x brk #$AA,#$1x = 15/#$FF = 15/$C1D7 (probably invalid)
  433.  
  434. 00 yy 2x brk #$yy,#$2x = 13/$B04C
  435. 00 yy 3x brk #$yy,#$3x = 13/$B051
  436. 00 yy 4x brk #$yy,#$4x = 13/$B062
  437. 00 yy 5x brk #$yy,#$5x = 13/$B06A
  438. 00 yy 6x brk #$yy,#$6x = 15/$EBDD (display message #$00yy and pause)
  439. 00 yy 7x brk #$yy,#$7x = 15/$EBE1 (display message #$01yy and pause)
  440. 00 yy 8x brk #$yy,#$8x = 15/$EBE5 (display message #$02yy and pause)
  441. 00 yy 9x brk #$yy,#$9x = 15/$EBF5 (message #$00yy, pause, and return from caller)
  442. 00 yy Ax brk #$yy,#$Ax = 15/$EBF9 (message #$01yy, pause, and return from caller)
  443. 00 yy Bx brk #$yy,#$Bx = 15/$EBFD (message #$02yy, pause, and return from caller)
  444. 00 yy Cx brk #$yy,#$Cx = 15/$EBF1 (display message #$08yy and pause)
  445. 00 yy Dx brk #$yy,#$Dx = 15/$EBD3
  446. 00 yy Ex brk #$yy,#$Ex = 15/$EBD8
  447. 00 yy Fx brk #$yy,#$Fx = 4/$A969 (display message yy, no pause)
  448. 00 yy 0F brk #$yy,#$0F = 4/$A960 (display message yy and return from caller)
  449. 00 yy 1F brk #$yy,#$1F = 15/$EBED (display message #$07yy and pause)
  450. 00 yy 2F brk #$yy,#$2F = 15/$EC01 (play music or sound effect yy)
  451. 00 yy 3F brk #$yy,#$3F = 15/$EBE9 (display message #$06yy and pause)
  452.  
  453. 00 00 6F brk #$00,#$6F = 22/$8002
  454. 00 00 7F brk #$00,#$7F = 23/$8004 (display boot screen)
  455. 00 01 7F brk #$01,#$7F = 23/$97DA (display title screen)
  456. 00 00 8F brk #$00,#$8F = 24/$8004
  457. 00 01 8F brk #$01,#$8F = 24/$8118
  458. 00 00 9F brk #$00,#$9F = 25/$8002
  459. 00 00 AF brk #$00,#$AF = 26/$A664
  460. 00 00 BF brk #$00,#$BF = 27/$8002
  461. 00 02 EF brk #$02,#$EF = 30/$B8C5
  462. 00 03 EF brk #$03,#$EF = 30/$B904 (play music or sound effect)
  463. 00 04 EF brk #$04,#$EF = 30/$B886
  464. 00 05 EF brk #$05,#$EF = 30/$B8EF
  465. 00 06 EF brk #$06,#$EF = 30/$B6B6
  466. 00 07 EF brk #$07,#$EF = 30/$B35A (wait for current music to end)
  467.  
  468. JSR $6B2F through $6C4C (at 5-byte intervals) are equivalent to
  469. BRK #yy,#$07 for yy = $23 through $5C.
Add Comment
Please, Sign In to add comment