Fixed some  bugs

Fixed assembly errors passing unreported.
Fixed inline assembly