Isb; Mrs - ST STM32F0 Series Programming Manual

Hide thumbs Also See for STM32F0 Series:
Table of Contents

Advertisement

The STM32 Cortex-M0 instruction set
3.7.5

ISB

Instruction synchronization barrier.
Syntax
ISB
Operation
ISB acts as an instruction synchronization barrier. It flushes the pipeline of the processor, so
that all instructions following the ISB are fetched from cache or memory again, after the ISB
instruction has been completed.
Restrictions
None
Condition flags
This instruction does not change the flags.
Examples
ISB
3.7.6

MRS

Move the contents of a special register to a general-purpose register.
Syntax
MRS Rd, spec_reg
where:
'Rd' is the general-purpose destination register.
'spec_reg' is one of the special-purpose registers: APSR, IPSR, EPSR, IEPSR,
IAPSR, EAPSR, PSR, MSP, PSP, PRIMASK, or CONTROL.
Operation
MRS stores the contents of a special-purpose register to a general-purpose register. MRS
can be combined with the MSR instruction to produce read-modify-write sequences, which
are suitable for modifying a specific flag in the PSR. See
Restrictions
Rd must not be SP or PC.
Condition flags
This instruction does not change the flags.
Examples
MRS
R0, PRIMASK
64/91
; Instruction Synchronisation Barrier
; Read PRIMASK value and write it to R0
Doc ID 022979 Rev 1
MSR on page
65.
PM0215

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F0 Series and is the answer not in the manual?

Table of Contents