CSc 343 Computer Organization and Programming
Fall 1997
Programming Assignment # 5 (For extra credit (worth upto 10%))
Due: December 3, 1997 (Wednesday)
Write an Assembler program to draw Hilbert Curves, which are defined as follows:
There are four kinds of Hilbert curves which we shall name
A-curves, B-curves, C-curves and D-curves. Each of these
curves come in various sizes and are defined (recursively) as follows:
, and
all occupy no space (i.e. they
are empty curves). These are curves of size zero. Curves of bigger sizes are
defined as follows:
Write the program so that it will draw
where N is defined in the data segment. The program
should work for different values of N just by changing
the value of N.
Notes on the Implementation