This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
super_mario_64:behavior_commands [2017/12/03 17:32] david [0A: End Behavior script] Update behavior command 0xA |
super_mario_64:behavior_commands [2018/01/27 12:50] (current) david [17: Right Shift] Updated name for Behavior 0x17 |
||
---|---|---|---|
Line 115: | Line 115: | ||
---- | ---- | ||
- | ==== 0B: Unused ==== | + | ==== 0B: End Behavior script (Unused) ==== |
- | No operation. Unused. | + | Marks the end of a behavior that doesn't use a loop. Exactly the same as command 0xA, except this never seems to be used. |
- | ---- | + | ''0B 00 00 00'' |
+ | Length: 4 | ||
+ | |||
+ | ---- | ||
==== 0C: Call Function ==== | ==== 0C: Call Function ==== | ||
Calls ASM function. Usually used to call object init routine or looping routine between 0x08/0x09 commands. | Calls ASM function. Usually used to call object init routine or looping routine between 0x08/0x09 commands. | ||
Line 266: | Line 269: | ||
---- | ---- | ||
- | ==== 17: Right Shift ==== | + | ==== 17: Add RNG 2 ==== |
Right shift C with return from 80383BB0(). Unused. | Right shift C with return from 80383BB0(). Unused. | ||
Line 274: | Line 277: | ||
| <color brown>B</color> | u16 | | | <color brown>B</color> | u16 | | ||
| <color darkgrey>C</color> | u16 | | | <color darkgrey>C</color> | u16 | | ||
- | | obj->address = <color brown>B</color> + 80383BB0() >> <color darkgrey>C</color> || | + | | obj->address = (obj->address + <color brown>B</color>) + (80383BB0() >> <color darkgrey>C</color>) || |
Length: 8 | Length: 8 |