This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
level_commands [2015/12/02 07:57] queueram [Level Layout Commands] Add 0x00 |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======== Level Commands ======== | ||
| - | The level commands define the top-level control of the game. They are used to load levels, textures, collision data, objects, warps, etc. and determine how everything is connected. The first byte of the level command is the command type and the second byte is the length of the command in bytes. | ||
| - | |||
| - | ===== Level Layout Commands ===== | ||
| - | ==== 0x00 ==== | ||
| - | Load raw data to RAM segment and jump | ||
| - | |||
| - | ''00 10 00 [XX] [YY YY YY YY] [ZZ ZZ ZZ ZZ] [AA AA AA AA]'' | ||
| - | |||
| - | | X | RAM segment number | | ||
| - | | Y | ROM address start | | ||
| - | | Z | ROM address end | | ||
| - | | A | Segment offset of jump target | | ||
| - | |||
| - | Used for loading level scripts and then jumping to an offset in them | ||
| - | |||
| - | ===== See Also ===== | ||
| - | [[List of Level Scripts]] | ||
| - | |||
| - | ===== References ===== | ||
| - | * http://origami64.net/showthread.php?tid=160 | ||
| - | * http://qubedstudios.rustedlogic.net/Mario64_HackingDoc1.5.txt | ||
| - | * http://s26.photobucket.com/user/Starxxon/media/M64Diagram.gif.html | ||