Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.43 KB | None | 0 0
  1. CODE_15804B: A9 10 LDA #$10 ; \ Layer 3 Y pos = #$0010.
  2. CODE_15804D: 8D 0A 02 STA $020A ; /
  3.  
  4.  
  5. CODE_1583F2: AE 33 05 LDX $0533 ; \ Get room + level number into index.
  6. CODE_1583F5: BF 98 D0 11 LDA DATA_11D098,x ; |
  7. CODE_1583F9: 18 CLC ; |
  8. CODE_1583FA: 6D 34 05 ADC $0534 ; |
  9. CODE_1583FD: AA TAX ; |
  10. CODE_1583FE: BF 6B 91 15 LDA DATA_15916B,x ; | Load which set of Layer 3 Map16 tiles to use (the cloud tiles or the light beams of the shining door)
  11. CODE_158402: 0A ASL A ; | Multiply by 2.
  12. CODE_158403: AA TAX ; |
  13. CODE_158404: BF 33 92 15 LDA POINTER_159233,x ; | Get low byte of Map16 table.
  14. CODE_158408: 8D 44 07 STA $0744 ; |
  15. CODE_15840B: E8 INX ; |
  16. CODE_15840C: BF 33 92 15 LDA POINTER_159233,x ; | Get high byte of Map16 table.
  17. CODE_158410: 8D 45 07 STA $0745 ; |
  18. CODE_158413: A9 15 LDA #$15 ; | Bank number = $15.
  19. CODE_158415: 8D 46 07 STA $0746 ; /
  20. CODE_158418: 60 RTS ; Return.
  21.  
  22.  
  23. CODE_1587AB: AD 44 07 LDA $0744 ; \ Map16 table into [$00]
  24. CODE_1587AE: 85 00 STA $00 ; |
  25. CODE_1587B0: AD 45 07 LDA $0745 ; |
  26. CODE_1587B3: 85 01 STA $01 ; |
  27. CODE_1587B5: AD 46 07 LDA $0746 ; |
  28. CODE_1587B8: 85 02 STA $02 ; /
  29. CODE_1587BA: AC 42 07 LDY $0742
  30. CODE_1587BD: C2 30 REP #$30 ; Accumulator and Index = 16-bit.
  31. CODE_1587BF: B7 C4 LDA [$C4],y ; \ Check if tile in Layer 3 Map16 table is #$FF...
  32. CODE_1587C1: 29 FF 00 AND #$00FF ; |
  33. CODE_1587C4: C9 FF 00 CMP #$00FF ; |
  34. CODE_1587C7: D0 10 BNE CODE_1587D9 ; / If not, branch.
  35. CODE_1587C9: AF 4F 93 15 LDA DATA_15934F ; \ Load value for empty tile.
  36. CODE_1587CD: 85 00 STA $00 ; | ($159351 is empty tile)
  37. CODE_1587CF: A9 15 00 LDA #$0015 ; |
  38. CODE_1587D2: 85 02 STA $02 ; /
  39. CODE_1587D4: A0 00 00 LDY #$0000 ; Y = #$0000.
  40. CODE_1587D7: 80 04 BRA CODE_1587DD
  41.  
  42.  
  43. DATA_158900: db $00,$01,$02,$03,$00,$01,$03,$02 ; \ This table here...
  44. db $02,$00,$01,$03,$02,$03,$00,$01 ; | ...serves as index...
  45. db $03,$00,$01,$02,$03,$02,$00,$01 ; | ... for the pointer below.
  46. db $01,$02,$03,$00,$01,$03,$02,$00 ; | Note that the following pointer only determines the clouds right at the start of the level.
  47. db $04,$05,$06,$07,$08,$09,$00,$00 ; /
  48.  
  49. POINTER_158928: dw DATA_15893C ; Cloud 0 (horizontal level cloud part #1)
  50. dw DATA_1589C0 ; Cloud 1 (horizontal level cloud part #2)
  51. dw DATA_158A5C ; Cloud 2 (horizontal level cloud part #3)
  52. dw DATA_158AED ; Cloud 3 (horizontal level cloud part #4)
  53. dw DATA_158BBF ; Cloud 4 (upper part of vertical level cloud)
  54. dw DATA_158CB1 ; Cloud 5 (cloud specifically for the first room of 7-1, also used as part of regular vertical level cloud)
  55. dw DATA_158DA3 ; Cloud 6 (part #3 of regular vertical level cloud)
  56. dw DATA_158E95 ; Cloud 7 (part #4 of regular vertical level cloud)
  57. dw DATA_158F87 ; Cloud 8 (part #5 of regular vertical level cloud)
  58. dw DATA_159079 ; Cloud 9 (part #6 of regular vertical level cloud. This one is so far down that only really long vertical levels feature it, such as in 6-3)
  59.  
  60. DATA_15893C: db $53,$9C,$00,$00,$00,$00,$00,$00 ; \ First two bytes of each image are header.
  61. db $00,$00,$00,$00,$00,$00,$00,$00 ; | Their format is as such:
  62. db $00,$00,$00,$00,$00,$00,$00,$00 ; | YYYYXXXX yyyyxxxx.
  63. db $00,$00,$01,$04,$00,$00,$00,$01 ; | YYYY holds the Y-coordinate at which each image starts.
  64. db $00,$00,$00,$01,$07,$09,$04,$00 ; | XXXX holds the X-coordinate.
  65. db $01,$07,$00,$00,$00,$03,$08,$15 ; | yyyy holds the value to determine the height of each image, minus 1.
  66. db $09,$04,$02,$15,$00,$01,$04,$01 ; | xxxx holds the value to determine the width of each image, minus 1.
  67. db $07,$15,$15,$09,$07,$15,$01,$07 ; | The length of each table's tilemap can be calculated with a simple product.
  68. db $09,$07,$15,$15,$15,$15,$15,$15 ; | Multiply xxxx+1 with yyyy+1 and you will get that length.
  69. db $02,$15,$15,$15,$15,$15,$15,$15 ; | In this case: xxxx+1 = $D (or: 13), yyyy+1 = $A (or: 10).
  70. db $15,$15,$03,$12,$08,$15,$15,$15 ; | 130 tiles to be uploaded. 1 byte per Map16 tile.
  71. db $15,$15,$15,$15,$00,$01,$07,$15 ; | The header is always 2 bytes, so the entire size here is 132 bytes.
  72. db $15,$15,$15,$15,$15,$15,$01,$07 ; |
  73. db $15,$15,$15,$15,$15,$15,$15,$15 ; | This here is the first part of the horizontal cloud images.
  74. db $02,$15,$15,$15,$15,$15,$15,$15 ; | Starts at Y pos 5, X pos 3. A height of $A/10 blocks, a width of $D/13 blocks.
  75. db $15,$15,$03,$08,$15,$15,$15,$15 ; |
  76. db $15,$15,$15,$15 ; /
  77.  
  78. DATA_1589C0: db $40,$AD,$00,$00,$03,$08,$15,$15 ; \ This here is the second part...
  79. db $15,$15,$15,$15,$15,$00,$00,$01 ; | ...of the cloud images that are used in horizontal levels...
  80. db $07,$15,$15,$15,$15,$15,$15,$15 ; | ...and vary seemingly randomly depending on when you enter the level.
  81. db $00,$01,$07,$15,$15,$15,$15,$15 ; | Starts at Y pos: 4
  82. db $15,$15,$15,$00,$02,$15,$15,$15 ; | Starts at X pos: 0
  83. db $15,$15,$15,$15,$15,$15,$01,$07 ; | Height: $B/11
  84. db $15,$15,$15,$15,$15,$15,$15,$15 ; | Width: $E/14
  85. db $15,$02,$15,$15,$15,$15,$15,$15 ; | Total length of tilemap data: 154.
  86. db $15,$15,$15,$15,$03,$12,$08,$15 ; |
  87. db $15,$15,$15,$15,$15,$15,$15,$00 ; |
  88. db $00,$03,$08,$15,$15,$15,$15,$15 ; |
  89. db $15,$15,$00,$00,$00,$03,$08,$0A ; |
  90. db $08,$15,$15,$15,$15,$00,$00,$00 ; |
  91. db $00,$03,$06,$03,$12,$08,$15,$15 ; |
  92. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  93. db $03,$08,$15,$00,$00,$00,$00,$00 ; |
  94. db $00,$00,$00,$00,$03,$08,$00,$00 ; |
  95. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  96. db $02,$00,$00,$00,$00,$00,$00,$00 ; |
  97. db $00,$00,$00,$03 ; /
  98.  
  99. DATA_158A5C: db $41,$AC,$00,$00,$00,$00,$00,$00 ; \ The third part of these horizontal level cloud images.
  100. db $01,$04,$00,$00,$00,$00,$00,$00 ; | Starts at Y pos: 4
  101. db $00,$00,$00,$02,$15,$04,$01,$04 ; | Starts at X pos: 1
  102. db $01,$04,$01,$11,$04,$01,$07,$15 ; | Height: $B/11
  103. db $09,$07,$09,$03,$09,$07,$15,$09 ; | Width: $D/13
  104. db $07,$15,$15,$15,$15,$15,$00,$03 ; | Total length of tilemap data: 143
  105. db $08,$15,$15,$15,$15,$15,$15,$15 ; |
  106. db $15,$00,$01,$07,$15,$15,$15,$15 ; |
  107. db $15,$15,$15,$15,$00,$02,$0A,$08 ; |
  108. db $15,$15,$15,$15,$15,$15,$15,$00 ; |
  109. db $03,$06,$02,$15,$15,$15,$15,$0A ; |
  110. db $08,$15,$00,$00,$00,$03,$08,$0A ; |
  111. db $08,$0A,$06,$02,$15,$00,$00,$00 ; |
  112. db $00,$03,$06,$03,$06,$00,$03,$08 ; |
  113. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  114. db $00,$00,$02,$00,$00,$00,$00,$00 ; |
  115. db $00,$00,$00,$00,$00,$03,$00,$00 ; |
  116. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  117. db $00 ; /
  118.  
  119. DATA_158AED: db $20,$CF,$00,$00,$00,$00,$00,$00 ; \ The fourth part and last of these regular horizontal level cloud images.
  120. db $00,$00,$00,$00,$00,$00,$00,$00 ; | Starts at Y pos: 2
  121. db $00,$00,$00,$00,$00,$00,$00,$00 ; | Starts at X pos: 0
  122. db $00,$00,$00,$01,$00,$00,$01,$11 ; | Height: $D/13
  123. db $04,$00,$00,$00,$00,$01,$04,$01 ; | Width: $10/16
  124. db $07,$00,$00,$02,$15,$09,$04,$01 ; | Total length of tilemap data: 208
  125. db $04,$01,$07,$09,$07,$15,$00,$01 ; |
  126. db $07,$15,$15,$09,$07,$09,$07,$15 ; |
  127. db $15,$15,$15,$01,$07,$15,$15,$15 ; |
  128. db $15,$15,$15,$15,$15,$15,$15,$15 ; |
  129. db $03,$08,$0A,$08,$15,$15,$15,$15 ; |
  130. db $15,$15,$15,$15,$15,$00,$03,$06 ; |
  131. db $03,$08,$15,$15,$15,$15,$15,$15 ; |
  132. db $15,$15,$00,$00,$00,$00,$03,$08 ; |
  133. db $15,$15,$15,$15,$15,$15,$15,$00 ; |
  134. db $00,$00,$00,$01,$07,$15,$15,$15 ; |
  135. db $15,$15,$15,$15,$00,$00,$00,$00 ; |
  136. db $02,$15,$15,$15,$15,$15,$15,$15 ; |
  137. db $15,$00,$00,$00,$01,$07,$15,$15 ; |
  138. db $15,$15,$15,$15,$15,$15,$00,$00 ; |
  139. db $00,$02,$15,$15,$15,$15,$0A,$08 ; |
  140. db $15,$15,$15,$00,$00,$00,$03,$08 ; |
  141. db $0A,$08,$0A,$06,$03,$08,$15,$15 ; |
  142. db $00,$00,$00,$00,$03,$06,$03,$06 ; |
  143. db $00,$00,$03,$08,$0A,$00,$00,$00 ; |
  144. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  145. db $03,$06 ; /
  146.  
  147. DATA_158BBF: db $00,$EF,$00,$00,$00,$00,$00,$00 ; \ Upper part of the vertical level cloud image.
  148. db $00,$00,$03,$08,$15,$15,$15,$15 ; | Starts at Y pos: 0
  149. db $15,$00,$00,$00,$00,$00,$00,$00 ; | Starts at X pos: 0
  150. db $00,$00,$03,$08,$15,$15,$15,$0B ; | Height: $F/15
  151. db $00,$00,$00,$00,$00,$00,$00,$00 ; | Width: $10/16
  152. db $00,$00,$02,$15,$15,$15,$0C,$00 ; | Total length of tilemap data: 240
  153. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  154. db $01,$07,$15,$15,$15,$0D,$00,$00 ; |
  155. db $00,$00,$00,$00,$00,$00,$00,$02 ; |
  156. db $15,$15,$15,$15,$15,$00,$00,$00 ; |
  157. db $00,$00,$00,$00,$01,$11,$07,$15 ; |
  158. db $0B,$13,$0E,$0B,$00,$00,$00,$00 ; |
  159. db $00,$00,$00,$02,$15,$15,$15,$0C ; |
  160. db $15,$09,$07,$00,$00,$00,$00,$00 ; |
  161. db $00,$00,$03,$08,$15,$0B,$07,$15 ; |
  162. db $15,$15,$00,$00,$00,$00,$00,$00 ; |
  163. db $00,$00,$03,$0B,$07,$15,$15,$15 ; |
  164. db $15,$00,$00,$00,$00,$00,$00,$00 ; |
  165. db $00,$00,$02,$15,$15,$15,$15,$15 ; |
  166. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  167. db $00,$03,$08,$15,$15,$15,$15,$00 ; |
  168. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  169. db $00,$03,$12,$08,$15,$15,$00,$00 ; |
  170. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  171. db $00,$01,$0D,$08,$15,$00,$00,$00 ; |
  172. db $00,$00,$00,$00,$00,$01,$04,$01 ; |
  173. db $07,$15,$0C,$15,$00,$00,$00,$00 ; |
  174. db $00,$00,$01,$11,$07,$09,$07,$15 ; |
  175. db $15,$0C,$15,$00,$00,$00,$00,$00 ; |
  176. db $00,$02,$15,$15,$15,$15,$15,$0B ; |
  177. db $07,$15 ; /
  178.  
  179. DATA_158CB1: db $00,$EF,$0B,$0E,$15,$15,$0B,$15 ; \ Second part of the vertical level cloud image.
  180. db $15,$0B,$15,$15,$15,$15,$0C,$15 ; | This is also used as the starting image of...
  181. db $15,$07,$09,$0E,$0B,$07,$15,$0B ; | ... the very first room in 7-1.
  182. db $07,$15,$15,$15,$15,$0D,$15,$15 ; | Starts at Y pos: 0
  183. db $15,$15,$09,$07,$15,$15,$0C,$15 ; | Starts at X pos: 0
  184. db $15,$15,$15,$15,$15,$0D,$15,$08 ; | Height: $F/15
  185. db $15,$15,$15,$15,$15,$0D,$08,$15 ; | Width: $10/16
  186. db $15,$15,$15,$15,$15,$0C,$0C,$15 ; | Total length of tilemap data: 240
  187. db $15,$15,$15,$15,$15,$0C,$15,$15 ; |
  188. db $15,$15,$15,$0B,$07,$07,$15,$15 ; |
  189. db $0B,$13,$0E,$0B,$07,$15,$15,$15 ; |
  190. db $15,$15,$0C,$15,$15,$15,$15,$0C ; |
  191. db $15,$09,$07,$15,$15,$15,$15,$15 ; |
  192. db $0B,$15,$15,$15,$15,$15,$0D,$08 ; |
  193. db $15,$15,$15,$15,$15,$15,$0B,$07 ; |
  194. db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
  195. db $15,$15,$15,$15,$0B,$07,$15,$15 ; |
  196. db $0B,$15,$15,$15,$0B,$15,$15,$15 ; |
  197. db $15,$15,$15,$0C,$15,$15,$15,$0C ; |
  198. db $15,$15,$15,$0C,$15,$15,$15,$15 ; |
  199. db $15,$15,$0D,$08,$15,$0B,$0D,$15 ; |
  200. db $15,$15,$0D,$08,$0A,$08,$15,$15 ; |
  201. db $15,$15,$0D,$0B,$15,$15,$15,$15 ; |
  202. db $15,$15,$0D,$10,$0D,$08,$15,$15 ; |
  203. db $15,$0B,$07,$15,$15,$15,$15,$15 ; |
  204. db $15,$15,$0C,$15,$07,$15,$15,$0B ; |
  205. db $07,$15,$15,$15,$15,$15,$15,$15 ; |
  206. db $15,$0C,$15,$15,$15,$15,$0C,$15 ; |
  207. db $15,$15,$15,$15,$15,$15,$15,$0B ; |
  208. db $07,$15,$15,$15,$0B,$07,$15,$15 ; |
  209. db $15,$15 ; /
  210.  
  211. DATA_158DA3: db $00,$EF,$15,$0B,$0E,$15,$15,$15 ; \ Third part of the vertical level cloud image.
  212. db $15,$15,$15,$15,$0D,$08,$15,$15 ; | Starts at Y pos: 0
  213. db $15,$0B,$07,$09,$0E,$15,$15,$15 ; | Starts at X pos: 0
  214. db $15,$15,$15,$0B,$0D,$08,$15,$15 ; | Height: $F/15
  215. db $0C,$15,$15,$0F,$15,$15,$15,$0B ; | Width: $10/16
  216. db $0E,$0B,$07,$15,$0C,$15,$15,$0D ; | Total length of tilemap data: 240
  217. db $08,$15,$09,$0E,$15,$0B,$07,$09 ; |
  218. db $15,$15,$0B,$07,$15,$15,$15,$0C ; |
  219. db $15,$15,$0B,$13,$07,$15,$15,$15 ; |
  220. db $15,$0C,$15,$15,$15,$0B,$07,$15 ; |
  221. db $15,$0C,$15,$15,$15,$15,$0B,$13 ; |
  222. db $07,$15,$0B,$13,$0D,$15,$15,$15 ; |
  223. db $0D,$08,$15,$15,$15,$0C,$15,$15 ; |
  224. db $15,$0C,$15,$0B,$15,$15,$15,$15 ; |
  225. db $0D,$15,$15,$15,$0D,$08,$15,$0B ; |
  226. db $07,$15,$07,$15,$15,$15,$15,$15 ; |
  227. db $0C,$15,$15,$15,$0D,$0B,$07,$15 ; |
  228. db $15,$15,$15,$15,$15,$15,$0B,$15 ; |
  229. db $15,$15,$15,$15,$0C,$15,$15,$15 ; |
  230. db $08,$15,$15,$15,$15,$0C,$15,$15 ; |
  231. db $15,$15,$15,$0D,$08,$15,$15,$07 ; |
  232. db $15,$15,$15,$15,$0D,$08,$0A,$08 ; |
  233. db $15,$15,$15,$0D,$14,$08,$15,$15 ; |
  234. db $15,$15,$15,$15,$0D,$10,$0D,$08 ; |
  235. db $15,$15,$0B,$07,$0D,$15,$15,$15 ; |
  236. db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
  237. db $0B,$07,$15,$15,$15,$15,$15,$15 ; |
  238. db $15,$0B,$0E,$15,$15,$0C,$15,$0C ; |
  239. db $15,$15,$15,$15,$15,$15,$15,$15 ; |
  240. db $0C,$0F,$15,$0B,$07,$0B,$07,$15 ; |
  241. db $15,$0B ; /
  242.  
  243. DATA_158E95: db $00,$EF,$15,$15,$0B,$0E,$15,$15 ; \ Fourth part of the vertical level cloud image.
  244. db $0D,$08,$15,$15,$15,$15,$15,$0A ; | Starts at Y pos: 0
  245. db $10,$15,$0B,$07,$09,$0E,$15,$15 ; | Starts at X pos: 0
  246. db $0D,$08,$15,$15,$15,$0A,$10,$0D ; | Height: $F/15
  247. db $15,$0C,$15,$15,$0F,$15,$15,$15 ; | Width: $10/16
  248. db $0C,$15,$15,$15,$0F,$15,$15,$15 ; | Total length of tilemap data: 240
  249. db $0D,$08,$15,$09,$0E,$15,$0B,$0D ; |
  250. db $08,$15,$15,$09,$0E,$15,$15,$15 ; |
  251. db $0C,$15,$15,$0B,$13,$15,$15,$0D ; |
  252. db $08,$15,$15,$0F,$15,$0E,$0B,$07 ; |
  253. db $15,$0B,$07,$15,$15,$15,$15,$0D ; |
  254. db $08,$0A,$10,$15,$09,$07,$15,$15 ; |
  255. db $0C,$15,$15,$15,$15,$15,$15,$0D ; |
  256. db $10,$15,$0B,$15,$15,$15,$0B,$07 ; |
  257. db $15,$15,$15,$15,$15,$15,$15,$15 ; |
  258. db $0B,$07,$15,$15,$15,$0D,$08,$15 ; |
  259. db $15,$15,$0B,$0E,$15,$15,$0B,$07 ; |
  260. db $15,$15,$15,$15,$15,$0D,$08,$15 ; |
  261. db $15,$0C,$0F,$15,$15,$0C,$15,$15 ; |
  262. db $15,$15,$15,$15,$15,$0C,$15,$15 ; |
  263. db $0D,$10,$15,$15,$0D,$08,$15,$15 ; |
  264. db $15,$15,$15,$15,$0D,$0B,$0E,$15 ; |
  265. db $15,$15,$15,$15,$0D,$08,$08,$15 ; |
  266. db $15,$15,$15,$0B,$15,$09,$0E,$15 ; |
  267. db $15,$15,$15,$0B,$0D,$0C,$15,$15 ; |
  268. db $15,$15,$0C,$15,$15,$0F,$15,$15 ; |
  269. db $15,$0B,$07,$15,$0C,$15,$15,$15 ; |
  270. db $15,$0C,$15,$15,$09,$0E,$15,$15 ; |
  271. db $0C,$15,$0B,$07,$15,$15,$15,$0B ; |
  272. db $07,$15,$15,$0A,$10,$15,$0B,$07 ; |
  273. db $15,$0C ; /
  274.  
  275. DATA_158F87: db $00,$EF,$15,$15,$15,$0B,$0E,$15 ; \ Fifth part of the vertical level cloud image.
  276. db $15,$0B,$15,$15,$0B,$15,$15,$15 ; | Starts at Y pos: 0
  277. db $15,$15,$15,$15,$0C,$09,$0E,$0B ; | Starts at X pos: 0
  278. db $07,$15,$0B,$07,$15,$15,$15,$15 ; | Height: $F/15
  279. db $0D,$15,$0B,$07,$15,$09,$07,$15 ; | Width: $10/16
  280. db $15,$0C,$15,$15,$15,$15,$15,$15 ; | Total length of tilemap data: 240
  281. db $0C,$0C,$15,$15,$15,$15,$15,$15 ; |
  282. db $0D,$08,$15,$15,$15,$15,$0B,$15 ; |
  283. db $0D,$08,$15,$15,$15,$15,$15,$15 ; |
  284. db $0C,$15,$15,$15,$15,$0C,$15,$0B ; |
  285. db $07,$15,$15,$0B,$13,$0E,$0B,$07 ; |
  286. db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
  287. db $15,$15,$0C,$15,$09,$07,$15,$15 ; |
  288. db $15,$15,$15,$15,$0B,$07,$15,$15 ; |
  289. db $15,$0D,$08,$15,$15,$15,$15,$15 ; |
  290. db $15,$0B,$15,$0C,$15,$15,$15,$15 ; |
  291. db $15,$0C,$15,$15,$15,$15,$15,$0B ; |
  292. db $07,$15,$0D,$08,$15,$15,$15,$0B ; |
  293. db $15,$15,$15,$15,$15,$15,$0C,$15 ; |
  294. db $15,$15,$0D,$08,$15,$15,$0C,$15 ; |
  295. db $15,$15,$15,$15,$15,$0D,$08,$15 ; |
  296. db $15,$0B,$15,$15,$15,$0D,$08,$0A ; |
  297. db $08,$15,$15,$15,$15,$0D,$08,$0B ; |
  298. db $07,$15,$15,$15,$15,$0D,$10,$0D ; |
  299. db $08,$15,$15,$15,$0B,$0B,$0C,$15 ; |
  300. db $15,$15,$15,$15,$15,$0C,$15,$07 ; |
  301. db $15,$15,$0B,$07,$07,$0D,$08,$15 ; |
  302. db $15,$15,$15,$15,$0C,$15,$15,$15 ; |
  303. db $15,$0C,$15,$15,$0B,$07,$15,$15 ; |
  304. db $15,$15,$0B,$07,$15,$15,$15,$0B ; |
  305. db $07,$15 ; /
  306.  
  307. DATA_159079: db $00,$EF,$0C,$15,$15,$15,$0B,$0E ; \ Sixth, last and bottom-most part of the vertical level cloud image.
  308. db $15,$15,$15,$15,$15,$15,$15,$0D ; | This image is so deep down that few rooms feature it at all.
  309. db $08,$0D,$15,$15,$0B,$07,$09,$0E ; | One of the rooms (if more than one) that do feature it...
  310. db $15,$15,$15,$15,$15,$15,$0B,$0D ; | ...include the big vertical room in 6-3, as you climb up your way to the pyramid high in the sky.
  311. db $15,$0D,$15,$0C,$15,$15,$0F,$15 ; | However, even in a room this big, only the upper part of this image is visible.
  312. db $15,$15,$0B,$0E,$0B,$07,$15,$15 ; | Starts at Y pos: 0
  313. db $15,$0C,$0D,$08,$15,$09,$0E,$15 ; | Starts at X pos: 0
  314. db $0B,$07,$09,$15,$15,$0B,$15,$0B ; | Height: $F/15
  315. db $07,$15,$0C,$15,$15,$0B,$13,$07 ; | Width: $10/16
  316. db $15,$15,$15,$15,$0C,$15,$0C,$15 ; | Total length of tilemap data: 240
  317. db $0B,$07,$15,$15,$0C,$15,$15,$15 ; |
  318. db $15,$0B,$13,$07,$0B,$15,$15,$0D ; |
  319. db $15,$15,$15,$0D,$08,$15,$15,$15 ; |
  320. db $0C,$15,$15,$07,$15,$15,$0B,$15 ; |
  321. db $15,$15,$15,$0D,$15,$15,$15,$0D ; |
  322. db $08,$15,$15,$15,$0B,$07,$15,$15 ; |
  323. db $15,$15,$15,$0C,$15,$15,$15,$0D ; |
  324. db $0B,$15,$15,$0C,$15,$15,$15,$15 ; |
  325. db $15,$0B,$15,$15,$15,$15,$15,$0C ; |
  326. db $15,$0B,$0D,$08,$15,$15,$15,$15 ; |
  327. db $0C,$15,$15,$15,$15,$15,$0D,$0B ; |
  328. db $15,$15,$07,$15,$15,$15,$15,$0D ; |
  329. db $08,$0A,$08,$15,$15,$15,$07,$15 ; |
  330. db $15,$15,$15,$15,$15,$15,$15,$0D ; |
  331. db $10,$0D,$08,$15,$15,$15,$15,$15 ; |
  332. db $15,$15,$15,$15,$15,$15,$15,$15 ; |
  333. db $15,$0C,$15,$0B,$15,$15,$15,$15 ; |
  334. db $15,$15,$15,$15,$0B,$0E,$15,$15 ; |
  335. db $0C,$15,$0C,$15,$15,$15,$15,$15 ; |
  336. db $15,$15,$15,$0C,$0F,$15,$0B,$07 ; |
  337. db $0B,$07 ; /
  338.  
  339. DATA_15916B: db $00,$00,$00,$01,$01,$00,$00,$00 ; \
  340. db $00,$00,$00,$01,$00,$00,$00,$00 ; | This table here determines...
  341. db $00,$00,$00,$00,$00,$00,$01,$01 ; | ...per room in each level (10 rooms in 20 levels)...
  342. db $01,$00,$00,$00,$00,$00,$00,$01 ; | ...if the Layer 3 Map16 table should hold cloud tiles...
  343. db $00,$00,$00,$00,$00,$00,$00,$00 ; | ...or door-tiles.
  344. db $01,$00,$01,$00,$00,$00,$00,$00 ; | The former set can technically make use of the door tiles by using tiles 1A-22...
  345. db $00,$00,$00,$00,$01,$01,$00,$00 ; | ..., even though it never seems to have been done in the original SMB2,...
  346. db $01,$00,$00,$00,$00,$00,$01,$00 ; | ... but the latter set cannot make use of the cloud tiles.
  347. db $01,$00,$00,$00,$00,$00,$00,$00 ; | As a result, where the door tiles are situated at 1A-22 in the first set...
  348. db $00,$00,$00,$00,$00,$00,$00,$00 ; | ... these tiles are 00-08 in the second set.
  349. db $01,$00,$01,$00,$00,$00,$00,$00 ; |
  350. db $01,$00,$00,$00,$00,$00,$00,$00 ; |
  351. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  352. db $01,$00,$00,$00,$00,$00,$01,$00 ; |
  353. db $00,$00,$00,$00,$00,$01,$00,$00 ; |
  354. db $00,$01,$00,$00,$00,$00,$00,$00 ; |
  355. db $00,$00,$00,$00,$00,$00,$00,$00 ; |
  356. db $00,$00,$00,$00,$00,$00,$00,$01 ; |
  357. db $00,$01,$00,$00,$00,$00,$00,$01 ; |
  358. db $01,$00,$00,$00,$00,$00,$00,$00 ; |
  359. db $01,$00,$01,$00,$00,$00,$00,$00 ; |
  360. db $00,$00,$00,$00,$01,$00,$00,$01 ; |
  361. db $01,$00,$00,$00,$00,$00,$00,$00 ; |
  362. db $00,$00,$00,$00,$00,$00,$00,$01 ; |
  363. db $00,$00,$00,$01,$00,$00,$00,$00 ; /
  364.  
  365. POINTER_159233: dw DATA_159237 ; \ "Cloud" Map16 table (1A-22 are overlap with 00-08 of the following table)
  366. dw DATA_159307 ; / "Door" Map16 table (used for door light effects)
  367.  
  368. DATA_159237: db $3F,$01,$3F,$01,$3F,$01,$3F,$01 ; Tile 00. (Layer 3 Map16 table).
  369. db $00,$05,$01,$05,$10,$05,$13,$05 ; Tile 01.
  370. db $02,$05,$03,$05,$13,$05,$13,$05 ; Tile 02
  371. db $04,$05,$05,$05,$13,$05,$15,$05 ; Tile 03
  372. db $20,$05,$13,$05,$30,$05,$31,$05 ; Tile 04
  373. db $13,$05,$13,$05,$32,$05,$33,$05 ; Tile 05
  374. db $13,$05,$25,$05,$34,$05,$35,$05 ; Tile 06
  375. db $21,$05,$13,$05,$13,$05,$13,$05 ; Tile 07
  376. db $13,$05,$11,$05,$13,$05,$13,$05 ; Tile 08
  377. db $13,$05,$13,$05,$22,$05,$13,$05 ; Tile 09
  378. db $13,$05,$13,$05,$13,$05,$12,$05 ; Tile 0A
  379. db $06,$05,$07,$05,$16,$05,$13,$05 ; Tile 0B
  380. db $08,$05,$09,$05,$13,$05,$13,$05 ; Tile 0C
  381. db $0A,$05,$0B,$05,$13,$05,$1B,$05 ; Tile 0D
  382. db $26,$05,$13,$05,$36,$05,$37,$05 ; Tile 0E
  383. db $13,$05,$13,$05,$38,$05,$39,$05 ; Tile 0F
  384. db $13,$05,$2B,$05,$3A,$05,$3B,$05 ; Tile 10
  385. db $14,$05,$13,$05,$24,$05,$13,$05 ; Tile 11
  386. db $13,$05,$17,$05,$13,$05,$27,$05 ; Tile 12
  387. db $18,$05,$13,$05,$28,$05,$13,$05 ; Tile 13
  388. db $13,$05,$19,$05,$13,$05,$29,$05 ; Tile 14
  389. db $13,$05,$13,$05,$13,$05,$13,$05 ; Tile 15
  390. db $0C,$1D,$3F,$01,$3F,$01,$3F,$01 ; Tile 16
  391. db $3F,$01,$3F,$01,$0D,$1D,$3F,$01 ; Tile 17
  392. db $3F,$01,$3F,$01,$3F,$01,$0E,$1D ; Tile 18
  393. db $3F,$01,$0F,$1D,$3F,$01,$3F,$01 ; Tile 19
  394.  
  395. DATA_159307: db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1A/00
  396. db $2C,$21,$3F,$21,$3C,$21,$2C,$21 ; Tile 1B/01
  397. db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1C/02
  398. db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1D/03
  399. db $3C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 1E/04
  400. db $3F,$21,$2C,$61,$2C,$61,$3C,$61 ; Tile 1F/05
  401. db $3C,$61,$3C,$21,$3C,$21,$3C,$21 ; Tile 20/06
  402. db $1C,$21,$3C,$21,$3C,$21,$3C,$21 ; Tile 21/07
  403. db $3C,$21,$1D,$21,$3C,$21,$3C,$21 ; Tile 22/08
  404.  
  405.  
  406. POINTER_159371: dw DATA_15937B ; Layer 3 stars placement 0
  407. dw DATA_159394 ; Layer 3 stars placement 1
  408. dw DATA_1593A9 ; Layer 3 stars placement 2
  409. dw DATA_1593C6 ; Layer 3 stars placement 3
  410. dw DATA_1593DF ; Layer 3 stars placement 4
  411.  
  412. DATA_15937B: db $10,$19,$1B,$19,$1E,$19,$24,$16 ; \ The format is simple.
  413. db $2E,$18,$38,$18,$3E,$16,$52,$17 ; | Every star = 2 bytes. First byte: yyyyxxxx, denotes position.
  414. db $55,$19,$5C,$17,$70,$19,$A2,$18 ; | Second byte - tile num in Layer 3 Map16. Table is terminated with an $FF byte.
  415. db $FF ; / This table here places 12 stars on screen.
  416.  
  417. DATA_159394: db $13,$17,$2A,$16,$31,$18,$4D,$19 ; \
  418. db $68,$19,$6B,$17,$6D,$18,$8C,$16 ; | This table here places 10 stars on screen.
  419. db $BC,$19,$CE,$17,$FF ; /
  420.  
  421. DATA_1593A9: db $0D,$16,$23,$19,$30,$17,$35,$18 ; \
  422. db $38,$16,$5C,$17,$72,$16,$7B,$16 ; | This table here places 14 stars on screen.
  423. db $80,$19,$8B,$19,$BC,$18,$BF,$19 ; |
  424. db $D0,$17,$EE,$19,$FF ; /
  425.  
  426. DATA_1593C6: db $04,$19,$1E,$18,$20,$19,$2A,$16 ; \
  427. db $39,$17,$3C,$18,$3E,$19,$71,$18 ; | This table here places 12 stars on screen.
  428. db $90,$16,$AF,$18,$BE,$17,$E0,$17 ; |
  429. db $FF ; /
  430.  
  431. DATA_1593DF: db $20,$19,$71,$18,$43,$16,$14,$19 ; \
  432. db $56,$17,$39,$17,$2A,$16,$5B,$18 ; | This table here places 10 stars on screen.
  433. db $8C,$16,$4E,$19,$FF ; /
  434.  
  435. DATA_15EF00: dl DATA_15EF15 ; World 1, grassy image. (Images during 'World x-x' screen.)
  436. dl DATA_15F0A5 ; World 2, desert image.
  437. dl DATA_15EF15 ; World 3, grassy image.
  438. dl DATA_15F235 ; World 4, ice image.
  439. dl DATA_15EF15 ; World 5, grassy image.
  440. dl DATA_15F0A5 ; World 6, desert image.
  441. dl DATA_15F3C5 ; World 7, air image.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement