SHARE
TWEET

Overworld Level Remapper

a guest Aug 27th, 2019 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lorom
  2.  
  3. !remapInfo = 1
  4.  
  5. ; part of SMW's original code
  6. org $05D846
  7. db $5F
  8.  
  9. org $05D8A2
  10. STA $0E
  11. BRA Label05D8B7
  12. STA $0E
  13. STZ $0F
  14. BRA Label05D8B7
  15. NOP #11
  16. Label05D8B7:
  17.  
  18. org $00813D
  19. db $C5
  20.  
  21. org $0096CC
  22. db $C7
  23.  
  24. org $009720
  25. db $C5
  26.  
  27. org $009CB1
  28. db $C5
  29.  
  30. if !remapInfo
  31. org $05E06F
  32.  
  33. dl $068FFD  ; level 101 -> level 25
  34. dl $068EAD  ; 102 -> 26
  35. dl $068BDE  ; 103 -> 27
  36. dl $07802D  ; 104 -> 28
  37. dl $0688DD  ; 105 -> 29
  38. dl $068A2F  ; 106 -> 2A
  39. dl $06AD09  ; 107 -> 2B
  40. dl $0780C3  ; 108 -> 2C
  41. dl $06B817  ; 109 -> 2D
  42. dl $06AE7D  ; 10A -> 2E
  43. dl $06A461  ; 10B -> 2F
  44. dl $068000  ; 10C -> 30
  45. dl $07A600  ; 10D -> 31
  46. dl $07ABF9  ; 10E -> 32
  47. dl $079B58  ; 10F -> 33
  48. dl $079DE2  ; 110 -> 34
  49. dl $07A028  ; 111 -> 35
  50. dl $068000  ; 112 -> 36
  51. dl $0799D6  ; 113 -> 37
  52. dl $079803  ; 114 -> 38
  53. dl $0792CA  ; 115 -> 39
  54. dl $078EA4  ; 116 -> 3A
  55. dl $06F05D  ; 117 -> 3B
  56. dl $06A95F  ; 118 -> 3C
  57. dl $06B2D1  ; 119 -> 3D
  58. dl $06A600  ; 11A -> 3E
  59. dl $0686D0  ; 11B -> 3F
  60. dl $06B4E0  ; 11C -> 40
  61. dl $06DABE  ; 11D -> 41
  62. dl $06D23A  ; 11E -> 42
  63. dl $06DF5B  ; 11F -> 43
  64. dl $06D40B  ; 120 -> 44
  65. dl $06872B  ; 121 -> 45
  66. dl $06E183  ; 122 -> 46
  67. dl $06D6F3  ; 123 -> 47
  68. dl $068000  ; 124 -> 48
  69. dl $07BF65  ; 125 -> 49
  70. dl $07BDE5  ; 126 -> 4A
  71. dl $07BC11  ; 127 -> 4B
  72. dl $07BABE  ; 128 -> 4C
  73. dl $068000  ; 129 -> 4D
  74. dl $07B26B  ; 12A -> 4E
  75. dl $07B46E  ; 12B -> 4F
  76. dl $07B540  ; 12C -> 50
  77. dl $07B908  ; 12D -> 51
  78. dl $068000  ; 12E -> 52
  79. dl $068000  ; 12F -> 53
  80. dl $07AF25  ; 130 -> 54
  81. dl $068000  ; 131 -> 55
  82. dl $07AFE3  ; 132 -> 56
  83. dl $068000  ; 133 -> 57
  84. dl $07AD35  ; 134 -> 58
  85. dl $07B031  ; 135 -> 59
  86. dl $07B124  ; 136 -> 5A
  87. dl $068000  ; 137 -> 5B
  88. dl $068000  ; 138 -> 5C
  89. dl $068000  ; 139 -> 5D
  90. dl $068000  ; 13A -> 5E
  91. dl $068000  ; 13B -> 5F
  92.  
  93. ; Layer 2 data pointers
  94. org $05E66F
  95.  
  96. dl $FFE103  ; 101 -> 25
  97. dl $FFDF59  ; 102 -> 26
  98. dl $FFDF59  ; 103 -> 27
  99. dl $FFD900  ; 104 -> 28
  100. dl $FFD900  ; 105 -> 29
  101. dl $FFEC82  ; 106 -> 2A
  102. dl $FFEF80  ; 107 -> 2B
  103. dl $FFE7C0  ; 108 -> 2C
  104. dl $FFE8FE  ; 109 -> 2D
  105. dl $FFE8FE  ; 10A -> 2E
  106. dl $FFE8FE  ; 10B -> 2F
  107. dl $FFD900  ; 10C -> 30
  108. dl $FFE103  ; 10D -> 31
  109. dl $FFF45A  ; 10E -> 32
  110. dl $FFE8FE  ; 10F -> 33
  111. dl $FFF45A  ; 110 -> 34
  112. dl $07A134  ; 111 -> 35
  113. dl $FFD900  ; 112 -> 36
  114. dl $FFE8FE  ; 113 -> 37
  115. dl $FFEF80  ; 114 -> 38
  116. dl $07937C  ; 115 -> 39
  117. dl $FFE8FE  ; 116 -> 3A
  118. dl $FFE8FE  ; 117 -> 3B
  119. dl $FFE8FE  ; 118 -> 3C
  120. dl $FFE684  ; 119 -> 3D
  121. dl $FFE8FE  ; 11A -> 3E
  122. dl $FFE674  ; 11B -> 3F
  123. dl $FFF45A  ; 11C -> 40
  124. dl $06DB8D  ; 11D -> 41
  125. dl $FFEC82  ; 11E -> 42
  126. dl $FFEC82  ; 11F -> 43
  127. dl $FFDAB9  ; 120 -> 44
  128. dl $FFE674  ; 121 -> 45
  129. dl $FFEC82  ; 122 -> 46
  130. dl $FFEC82  ; 123 -> 47
  131. dl $FFD900  ; 124 -> 48
  132. dl $FFDC71  ; 125 -> 49
  133. dl $FFEC82  ; 126 -> 4A
  134. dl $FFE7C0  ; 127 -> 4B
  135. dl $FFDF59  ; 128 -> 4C
  136. dl $FFD900  ; 129 -> 4D
  137. dl $FFDD44  ; 12A -> 4E
  138. dl $FFE472  ; 12B -> 4F
  139. dl $FFD900  ; 12C -> 50
  140. dl $FFDF59  ; 12D -> 51
  141. dl $FFD900  ; 12E -> 52
  142. dl $FFD900  ; 12F -> 53
  143. dl $FFDAB9  ; 130 -> 54
  144. dl $FFD900  ; 131 -> 55
  145. dl $FFE684  ; 132 -> 56
  146. dl $FFD900  ; 133 -> 57
  147. dl $FFE8FE  ; 134 -> 58
  148. dl $FFE684  ; 135 -> 59
  149. dl $FFE684  ; 136 -> 5A
  150. dl $FFD900  ; 137 -> 5B
  151. dl $FFD900  ; 138 -> 5C
  152. dl $FFD900  ; 139 -> 5D
  153. dl $FFD900  ; 13A -> 5E
  154. dl $FFD900  ; 13B -> 5F
  155.  
  156. ; sprite data pointers
  157. org $05EC4A
  158.  
  159. dw $C66F    ; level 101 -> 25
  160. dw $C5F4    ; level 102 -> 26
  161. dw $C593    ; level 103 -> 27
  162. dw $E759        ; level 104 -> 28
  163. dw $C4CA    ; level 105 -> 29
  164. dw $C532    ; level 106 -> 2A
  165. dw $CBDC    ; level 107 -> 2B
  166. dw $E76D    ; level 108 -> 2C
  167. dw $CDC8    ; level 109 -> 2D
  168. dw $CC25    ; level 10A -> 2E
  169. dw $CA17    ; level 10B -> 2F
  170. dw $E76D    ; level 10C -> 30
  171. dw $C422    ; level 10D -> 31
  172. dw $E19D    ; level 10E -> 32
  173. dw $DF08    ; level 10F -> 33
  174. dw $DFB1    ; level 110 -> 34
  175. dw $E032        ; level 111 -> 35
  176. dw $E76D    ; level 112 -> 36
  177. dw $DE4F    ; level 113 -> 37
  178. dw $DE01    ; level 114 -> 38
  179. dw $DD7B    ; level 115 -> 39
  180. dw $DD14    ; level 116 -> 3A
  181. dw $D9EF    ; level 117 -> 3B
  182. dw $CB2A    ; level 118 -> 3C
  183. dw $CCD4    ; level 119 -> 3D
  184. dw $CA87    ; level 11A -> 3E
  185. dw $C450    ; level 11B -> 3F
  186. dw $CD68    ; level 11C -> 40
  187. dw $D522    ; level 11D -> 41
  188. dw $D30C    ; level 11E -> 42
  189. dw $D577    ; level 11F -> 43
  190. dw $D380    ; level 120 -> 44
  191. dw $C478    ; level 121 -> 45
  192. dw $D5F5    ; level 122 -> 46
  193. dw $D445    ; level 123 -> 47
  194. dw $E76D    ; level 124 -> 48
  195. dw $E6F4        ; level 125 -> 49
  196. dw $E650        ; level 126 -> 4A
  197. dw $E5DF    ; level 127 -> 4B
  198. dw $E574        ; level 128 -> 4C
  199. dw $E76D    ; level 129 -> 4D
  200. dw $E3DC    ; level 12A -> 4E
  201. dw $E428        ; level 12B -> 4F
  202. dw $E466        ; level 12C -> 50
  203. dw $E4F1        ; level 12D -> 51
  204. dw $E76D    ; level 12E -> 52
  205. dw $E76D    ; level 12F -> 53
  206. dw $E221        ; level 130 -> 54
  207. dw $E76D    ; level 131 -> 55
  208. dw $E29E        ; level 132 -> 56
  209. dw $E76D    ; level 133 -> 57
  210. dw $E1C5    ; level 134 -> 58
  211. dw $E2AF        ; level 135 -> 59
  212. dw $E335        ; level 136 -> 5A
  213. dw $E76D    ; level 137 -> 5B
  214. dw $E76D    ; level 138 -> 5C
  215. dw $E76D    ; level 139 -> 5D
  216. dw $E76D    ; level 13A -> 5E
  217. dw $E76D    ; level 13B -> 5F
  218.  
  219. ; secondary level header byte 1
  220. org $05F025
  221. db $1B,$18,$5B,$0B,$5B,$5B,$5B,$0B
  222. db $0D,$58,$5B,$0B,$1A,$1B,$58,$5B
  223. db $48,$0B,$1B,$0A,$4B,$5B,$57,$52
  224. db $17,$57,$2B,$17,$29,$1C,$5B,$59
  225. db $2B,$56,$1C,$0B,$5B,$1C,$1B,$1A
  226. db $0B,$05,$58,$5B,$19,$0B,$0B,$58
  227. db $0B,$5B,$0B,$01,$5B,$5B,$0B,$0B
  228. db $0B,$0B,$0B
  229.  
  230. ; secondary level header byte 2
  231. org $05F225
  232. db $00,$80,$00,$01,$00,$00,$00,$00
  233. db $01,$00,$28,$00,$00,$00,$00,$01
  234. db $C0,$00,$00,$00,$C0,$00,$00,$01
  235. db $00,$00,$00,$01,$00,$00,$00,$38
  236. db $00,$00,$00,$00,$00,$00,$40,$00
  237. db $00,$01,$01,$00,$28,$00,$00,$F8
  238. db $00,$00,$00,$01,$00,$00,$00,$00
  239. db $00,$00,$00
  240.  
  241. ; secondary level header byte 3
  242. org $05F425
  243. db $7A,$0A,$9A,$0A,$9A,$9A,$0A,$0A
  244. db $02,$FA,$0A,$0A,$0A,$6A,$9A,$7A
  245. db $0A,$0A,$8A,$0A,$7A,$9A,$7A,$A0
  246. db $9A,$FA,$0A,$9A,$0A,$9A,$9A,$0A
  247. db $0A,$05,$9A,$0A,$0A,$9A,$0A,$0A
  248. db $0A,$0A,$0A,$0A,$0A,$0A,$0A,$0A
  249. db $0A,$0A,$0A,$03,$9A,$0A,$0A,$0A
  250. db $0A,$0A,$0A
  251.  
  252. ; secondary level header byte 4
  253. org $05F625
  254. db $00,$80,$80,$00,$00,$00,$00,$00
  255. db $66,$00,$00,$00,$00,$00,$00,$00
  256. db $00,$00,$80,$00,$00,$00,$00,$00
  257. db $80,$00,$00,$00,$00,$00,$00,$00
  258. db $00,$80,$00,$00,$00,$00,$00,$00
  259. db $00,$E4,$00,$80,$00,$00,$00,$80
  260. db $00,$80,$00,$E0,$80,$80,$00,$00
  261. db $00,$00,$00
  262. endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top