Implemented debug register used to tell the TB the number of errors found by t program, and to terminate simulation.
Meant obviously for test code.
Also copied console output to Modelsim's console besides the log file.
Modified cputest to take advantage of the new test termination register.
Modified the SW simulator DIV implementation for the remainder.
Now it matches the HW implementation.
(which is different from the C99 convention).
Added a few DIV/U tests to cputest.s.