dev test
add IO register operations
fix mem_type size
fix
fix carry
 fix merge conflicts