6.5.4. Modifying individual bits of a VFP system register

To alter some bits of a VFP system register without affecting other bits, use a read-modify-write procedure similar to the following example:

    FMRX    r10,FPSCR           ; copy FPSCR into r10
    BIC     r10,r10,#0x00370000 ; clears STRIDE and LEN
    ORR     r10,r10,#0x00030000 ; sets STRIDE = 1, LEN = 4
    FMXR    FPSCR,r10           ; copy r10 back into FPSCR

See FMRX, FMXR, and FMSTAT.

Copyright © 2000, 2001 ARM Limited. All rights reserved.ARM DUI 0068B
Non-Confidential