h8300: Some fixes