Fix port write issue with #s > 0x9