git @ Cat's Eye Technologies Wierd / master dialect / wierd-mvh / doc / output.doc.txt
master

Tree @master (Download .tar.gz)

output.doc.txt @masterraw · history · blame

1
2
3
4
5
6
7
This program takes the number at (1,1) (input as the ASCII code of a character)
and prints it in binary (I would do decimal but that would require a divide by
ten subroutine), using the halving subroutine in half.w.  Since it takes the
number direct;y from memory, this proram is not quite suitable for the end-user,
but rather it can be used as a subroutine in a yet larger program.

The algorithm takes O(n) time, most of which is spent in the halving subroutine.