Fix bugs in TinySimulator

Closes #92
Fixes the change of 32bit ESI to 16bit SI.