This description is based on tables from the 16-bit MCU and DSC Programmer’s Reference Manual. It differs a little from the tables in the textbook. The textbook authors make an attempt to put a bit more structure in the instruction set.
All following page reference are from the Programmer’s Reference Manual.
Here are all the instuctions for moving and adding. Similar instructions exist for other operations. We will have to cover flow control instructions a bit later.
PIC addressing modes
Let’s take a look at page 95 of the Programmer’s Reference Manual to see how address modes are encoded.
Some lines of C to consider
x = y + 15 ; x = dept.chair ; x = dept->chair ; x = y + z ; x = y + V ; x = y + V[i] ; V[i] = V[i+1] ; V = 15 ; x = u + v + w + y + z ;