tests/debug: Make stdout capture optional.
Implement cbw, cwde, cwd, cdq. Fix mov with moffset.
Implement DIV, MUL, and TEST in group 3 and INC/DEC in group 4/5.