home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-20 | 499 b | 37 lines | [TEXT/MSET] |
- : x^y { x y / storage -- }
- 1 -> storage
- y 0 = nif
- y 0 do
- storage x * -> storage
- loop
- then
- storage
- ;
-
- : NumberToString { number addr / count quot -- addr len }
- 0 -> count
- begin
- 1 ++> count
- 10 count x^y number >
- until
- 0 count 1- do
- number 10 i x^y /mod -> quot -> number
- quot 48 + addr count 1- i - + c!
- -1 +loop
- addr count
- ;
-
- : WaitASec { / end -- }
- global ticks @
- 60 + -> end
- begin
- end global ticks @ =
- until
- ;
-
- : WaitFor#Secs ( n -- )
- 0 do
- WaitASec
- loop
- ;
-