2,051
edits
(intro paragraph, note that content move is finished) |
m (behaviour -> behavior) |
||
(One intermediate revision by the same user not shown) | |||
Line 245: | Line 245: | ||
Performs a division operation on the stack. Note the order. | Performs a division operation on the stack. Note the order. | ||
An attempt to divide by zero will cause undefined | An attempt to divide by zero will cause undefined behavior, and may cause the interpreter to crash. | ||
==MM 83 doSentence== | ==MM 83 doSentence== | ||
Line 257: | Line 257: | ||
'''Stack''' | '''Stack''' | ||
''( left , top , right , bottom , | ''( left , top , right , bottom , color : -)'' | ||
'''Operation''' | '''Operation''' | ||
Draws a solid box on the backbuffer from ( left , top ) to ( right , bottom ) in the | Draws a solid box on the backbuffer from ( left , top ) to ( right , bottom ) in the color color . | ||
==dup== | ==dup== | ||
Line 429: | Line 429: | ||
If value is any of arg1 .. argn , bool := 1, otherwise bool := 0 | If value is any of arg1 .. argn , bool := 1, otherwise bool := 0 | ||
Tests to see if value is equal to any of the passed in arguments. If n is less than the number of entries on the stack, undefined | Tests to see if value is equal to any of the passed in arguments. If n is less than the number of entries on the stack, undefined behavior will result. | ||
==MM 98 isSoundRunning== | ==MM 98 isSoundRunning== | ||
Line 607: | Line 607: | ||
value := arg[index] | value := arg[index] | ||
Returns the index th argument on the stack. If n is less than the number of entries on the stack or index is out of range, undefined | Returns the index th argument on the stack. If n is less than the number of entries on the stack or index is out of range, undefined behavior will result, usually involving the interpreter shutting down. | ||
==pickOneOfDefault== | ==pickOneOfDefault== | ||
Line 622: | Line 622: | ||
If index is in the range 0.. n , value := arg[index] ; otherwise value := default . | If index is in the range 0.. n , value := arg[index] ; otherwise value := default . | ||
Returns the index th argument on the stack. If index is out of range, default is returned instead. If n is less than the number of entries on the stack, undefined | Returns the index th argument on the stack. If index is out of range, default is returned instead. If n is less than the number of entries on the stack, undefined behavior will result, usually involving the interpreter shutting down. | ||
==MM 84 pickupObject== | ==MM 84 pickupObject== |
edits