@magic.line_cell_magic
    @magic_arguments()
    @argument('address', type=hexint_aligned, help='Hex address')
    @argument('mask', type=hexint, help='Mask of bit(s) to set')
    @argument('bit', type=int, nargs='?', default=1, help='Set or clear the bit?')
    def bitset(self, line, cell=''):
        args = parse_argstring(self.bitset, line)
        d = self.shell.user_ns['d']
        return poke_bit(d, args.address, args.mask, args.bit)
Either orr/bic depending on the the value of 'bit'
dataset/ETHPy150Open scanlime/coastermelt/backdoor/shell_magics.py/ShellMagics.bitset