Download RSC-FORTH User`s Manual
Transcript
TABLE OFCONTENTS Section Title 4.11 Changing the Number BASE ............................ 4-36 4.12 Output Words ........................................ 4-37 4.12.1 4.12.1 4.12.3 4.12.4 4.12.5 Print Right-Justified with .R .............. Output Spaces with SPACE and SPACES ........ Output a Character with EMIT ................ Output a String with TYPE ................... Prepare to Output a String with COUNT ....... 4-37 4-50 4-37 4-38 4-38 4.13 Input Words ......................................... 4-39 4.13.1 4.13.2 4.13.3 5 Page Input a Character with KEY .................. Input a String with EXPECT .................. Test for Input with ?TERMINAL ............... 4-39 4-40 4-41 Advanced Operations 5.1 Other Single-Precision Arithmetic Operations ........ 5-1 5.1.1 5.1.2 5.1.3 5-1 5-1 5.1.4 5.2 5.3 5.4 Modulus Operators MOD and /MOD .............. Absolute ABS and Negate NEGATE .............. Simple Increment and Decrement 1+ , 2+ , 1- , 2- ...................................... Minimum MIN and Maximum MAX .................. 5-1 5-2 Unsigned, Mixed and Double-Precision Arithmetic ..... 5-2 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 Entering Double-Precision Numbers ............ Printing Double-Precision Numbers ............ Other 32-Bit FORTH Operators ................. Unsigned Compare U< .......................... Unsigned Multiply U* and Divide U/ .......... Mixed Mode Operations M* , M/ , and M/MOD .... Scaling ...................................... 5-3 5-3 5-4 5-5 5-5 5-6 5-6 Output Formatting ................................... 5-7 5.3.1 5.3.2 S->D , <# , #S , SIGN , and #> .......... # and HOLD ................................. 5-7 5-8 Strings ............................................. 5-9 5.4.1 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6 5-9 5-9 5-10 5-10 5-10 5-11 Address String Data with COUNT ............... Output String Data with TYPE ................ Input String Data with EXPECT ................ Suppress Trailing Blanks with -TRAILING ...... Interpret a Number with (NUMBER) ............ Input a Number with NUMBER .................. v