Improve encode length efficiency
Fix register addresses
Improve constant handling
Fix misc. errors in assembling