Advertisement
EliteAnax17

viet crystal functions WIP

May 3rd, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. M0:$0100 - Start
  2. M0:$0150 - Reset
  3. M0:$016E - _Start
  4. M0:$017D - Init
  5. M0:$0245 - ClearVRAM
  6. M0:$025A - ClearWRAM
  7. M0:$0283 - VBlank
  8. M0:$045A - DelayFrame
  9. M0:$045F - halt ; DelayFrame's halt, if the code stops here, it means that VBlank was disabled
  10. M0:$0468 - DelayFrames
  11. M0:$046F - RTC
  12. M0:$047E - TimeOfDayPals ; calls _TimeOfDayPals (M23:$4011)
  13. M0:$0485 - UpdateTimePals ; calls _UpdateTimePals (M23:$4070)
  14. M0:$048C-M0:$0546 - ; fade function and datas
  15. M0:$0552 - LCD
  16. M0:$0568 - DisableLCD
  17. M0:$058A - EnableLCD
  18. M0:$0591 - AskTimer
  19. M0:$059C - LatchClock
  20. M0:$05A7 - UpdateTime
  21. M0:$05B7 - GetClock
  22. M0:$05E8 - FixDays
  23. M0:$061D - FixTime
  24. M0:$0691 - SetClock
  25. M0:$06EF - Serial
  26. M0:$092E - JoypadInt
  27. M0:$092F - ClearJoypad
  28. M0:$0935 - Joypad
  29. M0:$0984 - GetJoypad
  30. M0:$09CC - ; start of the differrence between English Crystal since JP Crystal never check $ff in joypad auto input data
  31. M0:$09E4 - StartAutoInput
  32. M0:$0A00 - StopAutoInput
  33. M0:$0B2A - FarDecompress
  34. M0:$0B3A - Decompress
  35. M0:$0C19 - UpdatePalsIfCGB
  36. M0:$0C1D - UpdateCGBPals
  37. M0:$0C21 - ForceUpdateCGBPals
  38. M0:$0C89 - DmgToCgbBGPals
  39. M0:$0CB5 - DmgToCgbObjPals
  40. M0:$0D3A - CopyPals
  41.  
  42. M0:$1417-M0:$141B - CallText ; Appears to call the text function , changing M0:$141B to a ret removes most dialogs
  43. M0:$1420-M0:$1430 - ReturnTextl ; Appears to retrieve text and send it to the renderer
  44.  
  45. M25:$6CA9 - RunScriptCommand ; Good for tracking crashes caused by a broken script
  46.  
  47. Map scripts list
  48. $00 - 2call [short address]
  49. $01 - 3call [byte bank] [short address]
  50. $02 - 2ptcall [short pointer]
  51. $03 - 2jump [short address]
  52. $04 - 3jump [byte bank] [short address]
  53. $05 - 2ptjump [short pointer]
  54. $06 - if_equal [byte value] [short address]
  55. $07 - if_not_equal [byte value] [short address]
  56. $08 - iffalse [short address] ; 2jumpz
  57. $09 - iftrue [short address] ; 2jumpnz
  58. $0a - if_greater_than [byte value] [short address]
  59. $0b - if_less_than [byte value] [short address]
  60. $0c - jumpstd [byte.. args]
  61. $0d - callstd [byte.. args]
  62. $0e - 3callasm [byte bank] [short address]
  63. $0f - special [byte.. args]
  64. $10 - 2ptcallasm [short pointer]
  65. $11 - checkmaptriggers [byte map_group] [byte map_id]
  66. $12 - domaptrigger [byte map_group] [byte map_id] [byte trigger_id]
  67. $13 - checktriggers
  68. $14 - dotrigger [byte trigger_id]
  69. $15 - writebyte [byte value]
  70. $16 - addvar [byte value]
  71. $17 - random [byte input]
  72. $18 - checkver
  73. $19 - copybytetovar [short address]
  74. $1a - copyvartobyte [short address]
  75. $1b - loadvar [short address] [byte value]
  76. $1c - checkcode [byte id]
  77. $1d - writevarcode [byte id]
  78. $1e - writecode [byte id] [byte varlue]
  79. $1f - giveitem ; TBD
  80. $20 - takeitem
  81. $21 - checkitem
  82. $22 - givemoney
  83. $23 - takemoney
  84. $24 - checkmoney
  85. $25 - givecoins
  86. $26 - takecoins
  87. $27 - checkcoins
  88. $28 - addcellnum
  89. $29 - delcellnum
  90. $2a - checkcellnum
  91. $2b - checktime
  92. $2c - checkpoke
  93. $2d - givepoke
  94. $2e - giveegg
  95. $2f - givepokeitem
  96. $30 - checkpokeitem
  97. $31 - checkevent
  98. $32 - clearevent
  99. $33 - setevent
  100. $34 - checkflag
  101. $35 - clearflag
  102. $36 - setflag
  103. $37 - wildon
  104. $38 - wildoff
  105. $39 - xycompare
  106. $3a - warpmod
  107. $3b - blackoutmod
  108. $3c - warp
  109. $3d - readmoney
  110. $3e - readcoins
  111. $3f - RAM2MEM
  112. $40 - pokenamemem
  113. $41 - itemtotext
  114. $42 - mapnametotext
  115. $43 - trainertotext
  116. $44 - stringtotext
  117. $45 - itemnotify
  118. $46 - pocketisfull
  119. $47 - loadfont
  120. $48 - refreshscreen
  121. $49 - loadmovesprites
  122. $4a - loadbytec1ce
  123. $4b - 3writetext
  124. $4c - 2writetext
  125. $4d - repeattext
  126. $4e - yesorno
  127. $4f - loadmenudata
  128. $50 - writebackup
  129. $51 - jumptextfaceplayer
  130. ; $52 - 3jumptext doesn't exist in JP Crystal
  131. $52 - jumptext
  132. $53 - closetext
  133. $54 - keeptextopen
  134. $55 - pokepic
  135. $56 - pokepicyesorno
  136. $57 - interpretmenu
  137. $58 - interpretmenu2
  138. $59 - loadpikachudata
  139. $5a - battlecheck
  140. $5b - loadtrainerdata
  141. $5c - loadpokedata
  142. $5d - loadtrainer
  143. $5e - startbattle
  144. $5f - returnafterbattle
  145. $60 - catchtutorial
  146. $61 - trainertext
  147. $62 - trainerstatus
  148. $63 - winlosstext
  149. $64 - scripttalkafter
  150. $65 - talkaftercancel
  151. $66 - talkaftercheck
  152. $67 - setlasttalked
  153. $68 - applymovement
  154. $69 - applymovement2
  155. $6a - faceplayer
  156. $6b - faceperson
  157. $6c - variablesprite
  158. $6d - disappear
  159. $6e - appear
  160. $6f - follow
  161. $70 - stopfollow
  162. $71 - moveperson
  163. $72 - writepersonxy
  164. $73 - loademote
  165. $74 - showemote
  166. $75 - spriteface
  167. $76 - follownotexact
  168. $77 - earthquake
  169. $78 - changemap
  170. $79 - changeblock
  171. $7a - reloadmap
  172. $7b - reloadmappart
  173. $7c - writecmdqueue
  174. $7d - delcmdqueue
  175. $7e - playmusic
  176. $7f - playrammusic
  177. $80 - musicfadeout
  178. $81 - playmapmusic
  179. $82 - reloadmapmusic
  180. $83 - cry
  181. $84 - playsound
  182. $85 - waitbutton
  183. $86 - warpsound
  184. $87 - specialsound
  185. $88 - passtoengine
  186. $89 - newloadmap
  187. $8a - pause
  188. $8b - deactivatefacing
  189. $8c - priorityjump
  190. $8d - warpcheck
  191. $8e - ptpriorityjump
  192. $8f - return
  193. $90 - end
  194. $91 - reloadandreturn
  195. $92 - resetfuncs
  196. $93 - pokemart
  197. $94 - elevator
  198. $95 - trade
  199. $96 - askforphonenumber
  200. $97 - phonecall
  201. $98 - hangup
  202. $99 - describedecoration
  203. $9a - fruittree
  204. $9b - specialphonecall
  205. $9c - checkphonecall
  206. $9d - verbosegiveitem
  207. $9e - verbosegiveitem2
  208. $9f - loadwilddata
  209. $a0 - halloffame
  210. $a1 - credits
  211. $a2 - warpfacing
  212. $a3 - storetext
  213. $a4 - displaylocation
  214. $a5 - trainerclassname
  215. $a6 - name
  216. $a7 - wait
  217. $a8 - unknown0xa9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement