I'm not good at asm, but I think it should be something like
    
    
    asm """
      MOV %0 %1
      BFI %0, %2, #`bitOffset`, #`bitWidth`
      : "=r" (`regVal`)
      :  "r" (`regVal`), "r" (`fieldVal`)
      """
    
    
    Run

Reply via email to