implement opcode Bnnn
refactor: extract function get_nnn