Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M0:$0100 - Start
- M0:$0150 - Reset
- M0:$016E - _Start
- M0:$017D - Init
- M0:$0245 - ClearVRAM
- M0:$025A - ClearWRAM
- M0:$0283 - VBlank
- M0:$045A - DelayFrame
- M0:$045F - halt ; DelayFrame's halt, if the code stops here, it means that VBlank was disabled
- M0:$0468 - DelayFrames
- M0:$046F - RTC
- M0:$047E - TimeOfDayPals ; calls _TimeOfDayPals (M23:$4011)
- M0:$0485 - UpdateTimePals ; calls _UpdateTimePals (M23:$4070)
- M0:$048C-M0:$0546 - ; fade function and datas
- M0:$0552 - LCD
- M0:$0568 - DisableLCD
- M0:$058A - EnableLCD
- M0:$0591 - AskTimer
- M0:$059C - LatchClock
- M0:$05A7 - UpdateTime
- M0:$05B7 - GetClock
- M0:$05E8 - FixDays
- M0:$061D - FixTime
- M0:$0691 - SetClock
- M0:$06EF - Serial
- M0:$092E - JoypadInt
- M0:$092F - ClearJoypad
- M0:$0935 - Joypad
- M0:$0984 - GetJoypad
- M0:$09CC - ; start of the differrence between English Crystal since JP Crystal never check $ff in joypad auto input data
- M0:$09E4 - StartAutoInput
- M0:$0A00 - StopAutoInput
- M0:$0B2A - FarDecompress
- M0:$0B3A - Decompress
- M0:$0C19 - UpdatePalsIfCGB
- M0:$0C1D - UpdateCGBPals
- M0:$0C21 - ForceUpdateCGBPals
- M0:$0C89 - DmgToCgbBGPals
- M0:$0CB5 - DmgToCgbObjPals
- M0:$0D3A - CopyPals
- M0:$1417-M0:$141B - CallText ; Appears to call the text function , changing M0:$141B to a ret removes most dialogs
- M0:$1420-M0:$1430 - ReturnTextl ; Appears to retrieve text and send it to the renderer
- M25:$6CA9 - RunScriptCommand ; Good for tracking crashes caused by a broken script
- Map scripts list
- $00 - 2call [short address]
- $01 - 3call [byte bank] [short address]
- $02 - 2ptcall [short pointer]
- $03 - 2jump [short address]
- $04 - 3jump [byte bank] [short address]
- $05 - 2ptjump [short pointer]
- $06 - if_equal [byte value] [short address]
- $07 - if_not_equal [byte value] [short address]
- $08 - iffalse [short address] ; 2jumpz
- $09 - iftrue [short address] ; 2jumpnz
- $0a - if_greater_than [byte value] [short address]
- $0b - if_less_than [byte value] [short address]
- $0c - jumpstd [byte.. args]
- $0d - callstd [byte.. args]
- $0e - 3callasm [byte bank] [short address]
- $0f - special [byte.. args]
- $10 - 2ptcallasm [short pointer]
- $11 - checkmaptriggers [byte map_group] [byte map_id]
- $12 - domaptrigger [byte map_group] [byte map_id] [byte trigger_id]
- $13 - checktriggers
- $14 - dotrigger [byte trigger_id]
- $15 - writebyte [byte value]
- $16 - addvar [byte value]
- $17 - random [byte input]
- $18 - checkver
- $19 - copybytetovar [short address]
- $1a - copyvartobyte [short address]
- $1b - loadvar [short address] [byte value]
- $1c - checkcode [byte id]
- $1d - writevarcode [byte id]
- $1e - writecode [byte id] [byte varlue]
- $1f - giveitem ; TBD
- $20 - takeitem
- $21 - checkitem
- $22 - givemoney
- $23 - takemoney
- $24 - checkmoney
- $25 - givecoins
- $26 - takecoins
- $27 - checkcoins
- $28 - addcellnum
- $29 - delcellnum
- $2a - checkcellnum
- $2b - checktime
- $2c - checkpoke
- $2d - givepoke
- $2e - giveegg
- $2f - givepokeitem
- $30 - checkpokeitem
- $31 - checkevent
- $32 - clearevent
- $33 - setevent
- $34 - checkflag
- $35 - clearflag
- $36 - setflag
- $37 - wildon
- $38 - wildoff
- $39 - xycompare
- $3a - warpmod
- $3b - blackoutmod
- $3c - warp
- $3d - readmoney
- $3e - readcoins
- $3f - RAM2MEM
- $40 - pokenamemem
- $41 - itemtotext
- $42 - mapnametotext
- $43 - trainertotext
- $44 - stringtotext
- $45 - itemnotify
- $46 - pocketisfull
- $47 - loadfont
- $48 - refreshscreen
- $49 - loadmovesprites
- $4a - loadbytec1ce
- $4b - 3writetext
- $4c - 2writetext
- $4d - repeattext
- $4e - yesorno
- $4f - loadmenudata
- $50 - writebackup
- $51 - jumptextfaceplayer
- ; $52 - 3jumptext doesn't exist in JP Crystal
- $52 - jumptext
- $53 - closetext
- $54 - keeptextopen
- $55 - pokepic
- $56 - pokepicyesorno
- $57 - interpretmenu
- $58 - interpretmenu2
- $59 - loadpikachudata
- $5a - battlecheck
- $5b - loadtrainerdata
- $5c - loadpokedata
- $5d - loadtrainer
- $5e - startbattle
- $5f - returnafterbattle
- $60 - catchtutorial
- $61 - trainertext
- $62 - trainerstatus
- $63 - winlosstext
- $64 - scripttalkafter
- $65 - talkaftercancel
- $66 - talkaftercheck
- $67 - setlasttalked
- $68 - applymovement
- $69 - applymovement2
- $6a - faceplayer
- $6b - faceperson
- $6c - variablesprite
- $6d - disappear
- $6e - appear
- $6f - follow
- $70 - stopfollow
- $71 - moveperson
- $72 - writepersonxy
- $73 - loademote
- $74 - showemote
- $75 - spriteface
- $76 - follownotexact
- $77 - earthquake
- $78 - changemap
- $79 - changeblock
- $7a - reloadmap
- $7b - reloadmappart
- $7c - writecmdqueue
- $7d - delcmdqueue
- $7e - playmusic
- $7f - playrammusic
- $80 - musicfadeout
- $81 - playmapmusic
- $82 - reloadmapmusic
- $83 - cry
- $84 - playsound
- $85 - waitbutton
- $86 - warpsound
- $87 - specialsound
- $88 - passtoengine
- $89 - newloadmap
- $8a - pause
- $8b - deactivatefacing
- $8c - priorityjump
- $8d - warpcheck
- $8e - ptpriorityjump
- $8f - return
- $90 - end
- $91 - reloadandreturn
- $92 - resetfuncs
- $93 - pokemart
- $94 - elevator
- $95 - trade
- $96 - askforphonenumber
- $97 - phonecall
- $98 - hangup
- $99 - describedecoration
- $9a - fruittree
- $9b - specialphonecall
- $9c - checkphonecall
- $9d - verbosegiveitem
- $9e - verbosegiveitem2
- $9f - loadwilddata
- $a0 - halloffame
- $a1 - credits
- $a2 - warpfacing
- $a3 - storetext
- $a4 - displaylocation
- $a5 - trainerclassname
- $a6 - name
- $a7 - wait
- $a8 - unknown0xa9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement