Fighters Megamix/Notes

From Data Crystal
< Fighters Megamix
Revision as of 03:43, 24 October 2024 by Lelegofrog (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Chip tiny.png The following article is a Notes Page for Fighters Megamix.

Character Scripting Notes

It's the file after that character's last textures
Done in 32bit chunks but only reads first byte for opcode
Table ends at 52 opcodes highest I seen so far 0x4e

Known Scripting Opcodes

07,0d,0f,27 type of jumps

================================================
Opcode 01
Quick Direction Input Check
loc: 6017b16

01 00 WordV
Inputs are written backwards to read back through the input buffer
A dp motion (in numpad notation 623)
is written like
01 00 01 10 ; 3 DF
01 00 00 10 ; 2 D
01 00 01 00 ; 6 F

binary view WordV(inputs)
8  4  2  1  | 8  4  2   1  | 8  4  2  1  | 8  4  2  1
?? ?? ?? ?? | ?? ?? BK  FR | ?? ?? UP DW | ?? ?? ?? ??

================================================
Opcode 04
loc: 60173fe
04 V0 ## ##

Load V0 to R7 for future use

================================================
Opcode 05
Animation Write
loc: 6017406
add 1 to player+6d6
move animvalue to player+3c
move 0 to player+1246

05 00 00 00 AnimValue

================================================
Opcode 09
State Check
loc: 60178f6
09000000 val
bit compare 32bit val with playeraddr+2c

================================================
Opcode 0e
loc: 6017488
Input Opcode
0e 00 00 00 00 00 ST IN Location
ST = Unknown
IN = input byte bit order P,K,G,E = 1,2,4,8 
Location = long in file

================================================
Opcode 10
loc: 6017478
A script ender?
10 00 00 00

================================================
Opcode 28
loc: 60173c8
seems to be a 3 way jump based on directional inputs

28 00 00 00 loc0 loc1 loc2
loc0 Forward input
loc1 Back input
loc2 Down input