Implemented some CPU arithmetic.

Signed-off-by: unknown <RUG4133@GRAD-07.main.ad.rit.edu>