Suggested / historical D. and D.R display formats. #129
-
I've not played with any other Forth in a long long while and even then I never got around to the Double Word set. What is the suggested (historical) output for Does one display the high and low words separately (easy to recognise and re-input at the prompt) or "combined" to display a single large number (which seems messy to implement).
or more like
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
combined |
Beta Was this translation helpful? Give feedback.
-
The typical implementation is is terms of <#, i.e. |
Beta Was this translation helpful? Give feedback.
The typical implementation is is terms of <#, i.e.
: d. ( d -- ) tuck dabs <# #s rot sign #> type space ;
. #s is in turn a loop over #, which is often implemented via the factor: mu/mod (s d# n1 -- rem d#quot ) >r 0 r@ um/mod r> swap >r um/mod r> ;