
R
Appendix C
PicoBlaze Instruction Set and Event Reference
This appendix provides a detailed operational description of each PicoBlaze™ processor instruction and the Interrupt and Reset events, including pseudocode for each instruction. The pseudocode assumes that all variable to the right of an assignment symbol (Å) have the original value before the instruction is executed. The values for variables to the left of an assignment symbol are assigned at the end of the instruction and all assignments occur in parallel, similar to VHDL.
ADD sX, Operand —Add Operand to Register sX
The ADD instruction performs an
| Register sY or |
| Literal kk |
Carry Out |
|
CARRY | Register sX |
| UG129_aC_01_051604 |
Figure | |
Example
Operand is a register location, sY, or an immediate
ADD sX, sY; Add register. sX = sX + sY.
ADD sX, kk; Add immediate. sX = sX + kk.
Description
Operand is added to register sX. The ZERO and CARRY flags are set appropriately.
PicoBlaze | www.xilinx.com | 91 |
UG129 (v1.1.2) June 24, 2008