home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
source
/
p3_7dc.seq
< prev
next >
Wrap
Text File
|
1990-04-04
|
612b
|
30 lines
\ Anwser for problem 3.7 by Dickson Cheng 04/04/90 21:06:40.95
\ Each definitions ended with DECIMAL so than the system will change
\ back to DECIMAL BASE.
\ " . " is already defined to display the top number in DECIMAL.
: BINARY ( -- )
2 BASE ! ;
: .H ( n -- )
HEX . DECIMAL ;
: U.H ( n -- )
HEX U. DECIMAL ;
: .O ( n -- )
OCTAL . DECIMAL ;
: U.O ( n -- )
OCTAL U. DECIMAL ;
: .B ( n -- )
BINARY . DECIMAL ;
: U.B ( n -- )
BINARY U. DECIMAL ;