PIC17C75X
Move Literal to high nibble in
BSR
MOVLW
Move Literal to WREG
[ label ] MOVLW k
0 ≤ k ≤ 255
MOVLR
Syntax:
Syntax:
[ label ] MOVLR k
0 ≤ k ≤ 15
Operands:
Operation:
Status Affected:
Encoding:
Description:
Operands:
Operation:
k → (WREG)
k → (BSR<7:4>)
None
Status Affected: None
1011
0000
kkkk
kkkk
1011
101x
kkkk
uuuu
Encoding:
The eight bit literal 'k' is loaded into
WREG.
The 4-bit literal 'k' is loaded into the
most significant 4-bits of the Bank
Select Register (BSR). Only the high
4-bits of the Bank Select Register
are affected. The lower half of the
BSR is unchanged. The assembler
will encode the “u” fields as 0.
Description:
Words:
Cycles:
1
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
literal 'k'
Process
Data
Write to
WREG
Words:
Cycles:
1
1
MOVLW
0x5A
Q Cycle Activity:
Q1
Example:
Q2
Q3
Q4
After Instruction
Decode
Read literal
'k'
Process
Data
Write
literal 'k' to
BSR<7:4>
WREG
=
0x5A
MOVLR
5
Example:
Before Instruction
BSR register
=
=
0x22
0x52
After Instruction
BSR register
1997 Microchip Technology Inc.
DS30264A-page 203