INSTRUCTION SET
S3C4510B
MRS (Transfer PSR Contents to a Register)
31
28 27
23 22 21
16 15
12 11
0
Ps
00010
001111
Rd
Cond
000000000000
[15:21] Destination Register
[19:16] Source PSR
0 = CPSR
1 = SPSR_<current mode>
[31:28] Condition Field
MRS (Transfer Register Contents to PSR)
31
28 27
23 22 21
12 11
4
3
0
Pd
00010
101001111
Cond
00000000
Rm
[3:0] Source Register
[22] Destination PSR
0 = CPSR
1 = SPSR_<current mode>
[31:28] Condition Field
MRS (Transfer Register Contents or Immediate Value to PSR Flag Bits Only)
31 28 27 26 25 24 23 22 21 12 11
Pd
0
00
I
10
101001111
Cond
Soucer Operand
[22] Destination PSR
0 = CPSR 1 = SPSR_<current mode>
[25] Immediate Operand
0 = Source operand is a register
1 = SPSR_<current mode>
[11:0] Source Operand
11
4
3
0
00000000
Rm
[3:0] Source Register
[11:4] Source operand is an immediate value
11
8
7
0
Rotate
Imm
[7:0] Unsigned 8 bit immediate value
[11:8] Shift applied to Imm
[31:28] Condition Field
Figure 3-11. PSR Transfer
3-20