*wrap around 8/16-bit register values

* add unittests
Set start stack pointer to 0xffff