1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
|
mod ( in1 in2 -- out )
Unsigned divide in1 by in2 producing the remainder.
,mod ( in1 in2 -- out )
Signed divide in1 by in2 producing the remainder.
Move ( dir -- bool ) **
Move this object in the given direction (which may be absolute or
relative to the current direction). The result will be true if the
move is successful or false if it failed. See the section about
movement for details.
,Move ( obj dir -- bool ) **
|
>
>
>
>
>
>
>
>
>
|
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
|
mod ( in1 in2 -- out )
Unsigned divide in1 by in2 producing the remainder.
,mod ( in1 in2 -- out )
Signed divide in1 by in2 producing the remainder.
Morton ( in -- out )
Like ,Morton but the first input is always zero.
,Morton ( in1 in2 -- out )
Interleave bits of two 16-bit numbers to make a 32-bit number, like the
mingle operator of INTERCAL. (One use of this is if you have a class
with images for each combination of E/N/W/S directions and will want
to convert them to make the appropriate Shovable value.)
Move ( dir -- bool ) **
Move this object in the given direction (which may be absolute or
relative to the current direction). The result will be true if the
move is successful or false if it failed. See the section about
movement for details.
,Move ( obj dir -- bool ) **
|