User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
super_mario_64:behavior_commands [2017/06/23 10:19]
127.0.0.1 external edit
super_mario_64:behavior_commands [2018/01/27 12:50] (current)
david [17: Right Shift] Updated name for Behavior 0x17
Line 106: Line 106:
 ---- ----
  
-==== 0A: No Op ==== +==== 0A: End Behavior script ​==== 
-No operation.+Marks the end of a behavior that doesn'​t use a loop.
  
 ''​0A 00 00 00''​ ''​0A 00 00 00''​
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 loopExactly 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