02-Instruction Sets
02-Instruction Sets
Chapter 2
COE 306: Introduction to Embedded Systems
Dr. Aiman El-Maleh
Computer Engineering Department
destination register
first operand register
set condition codes
arithmetic/logic function
25 11 8 7 0
immediate alignment
11 7 6 5 4 3 0
#shift Sh 0 Rm
Opcode f f f f f f f
Opcode d f f f f f f f
File Register Address
Destination (W or F)
ADDWF 0x25, W
13 10 9 7 6 0
Opcode b b b f f f f f f f
File Register Address
BSF 0x25, 3
Opcode
Opcode k k k k k k k k
Opcode k k k k k k k k k k k
Literal Value
MOVLW 0x55
Literal Value