I believe I have built my subroutine to work for results upto 2^32 - 1, but
because of the instructions used in the driver provided (especially trap 1,
which seems to treat integers as signed 2's complement), the result is not
being displayed correctly (turns into a negative number once i go over
2^31 - 1).
This leads to two questions.
1) is there a trap that displays unsigned 32-bit integers up to 2^32 - 1?
2) how will our subroutines be tested? will a driver directly compare the
returned value to a register containing the correct result, or will the
tests depend on the trap output? (the problem is obvious if it were the
second case)
a related question is, whether there is a verion of llo and lhi that takes
unsigned integer constants up to 2^32 - 1 (so we can test out subroutines up
to that limit)
[3|_()0|)|_!|_`/