-
If about to put 6 24 34 ( hrs min sec ) on the stack. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
You seem to be on the right track. |
Beta Was this translation helpful? Give feedback.
-
Here is my : rtod $dd0b dup c@ dup $7f and >r
$80 and swap
1- dup c@ >r
1- dup c@ >r
1- c@ >r
r> r> r> r> ;
: ptod hex rtod \ prints TOD
3 0 do . $9d emit ':' emit loop
. decimal $80 and if ." pm"
else ." am"
then cr ;
|
Beta Was this translation helpful? Give feedback.
-
: hrmin <# # # 58 hold # # #> type ; Something in my understanding is wrong. |
Beta Was this translation helpful? Give feedback.
-
How I ended up. : ptod hex rtod \ prints TOD
3 0 do dup 10 u< if '0' emit then
. $9d emit ':' emit loop
. decimal $80 and if ." pm"
else ." am"
then cr ; |
Beta Was this translation helpful? Give feedback.
-
Answered! See above. |
Beta Was this translation helpful? Give feedback.
Answered! See above.