Download Timbre User Manual

Transcript
Introduction
Writing Rules
Timbre Glossary
Alu
Writing Rule Sets
Writing
FrameWorks
Writing
Applications
Debugging
FrameWorks
Alu
Logic
and
or
xor
not
Shift
2*
2/
u2/
shift
( m \ n -- p ) AND n with m
( m \ n -- p ) OR n with m
( m \ n -- p ) XOR n with m
( m -- n ) invert all the bits of n
( m -- n ) shift m left one bit and set bit 0 to 0
( m -- n ) shift m right one bit but don't change msbit
( m -- n ) shift m right one bit and set msbit to 0
( n \ m -- n ) shift n m bits left or right; -m is left
Math
+
negate
/mod
/
mod
*
Test
Flags
no
yes
( m \ n -- p ) add n to m
( m \ n -- p ) subtract n from m
( m -- n ) take the two's complement of m
( n \ m -- r \ q ) unsigned divide with remainder. devide n by m.
( n \ m -- quot ) unsigned divide
( n \ m -- rem ) modulus
( n \ m -- nm* ) signed multiply
( -- f ) the false flag, 0.
( -- t ) the true flag, -1.
Zero Test
0=
0<
non?
( n -- flag ) return yes if n is 0, else return no
( n -- flag ) return yes if n is negative, else return no
( f -- f’ ) French equivelant for 0=
Timbre LC: User Manual for V.14
30