Reduce code duplication for 0x8000 family of instructions