| |
Status bits |
| Mnemonic |
V |
N |
Z |
C |
| Arithmetic instructions |
| ADC(.B or .W) dst |
=1, Arithmetic overflow=0, otherwise |
=1, negative result=0, if positive |
=1, null result=0, otherwise |
=1, dst from 0FFFFh to 0000=0, otherwise |
| DADC(.B or .W) dst |
- |
=1, MSB=1=0, otherwise |
=1, dst=0=0, otherwise |
=1, dst from 99(99) to 00(00)=0, otherwise |
| DEC(.B or .W) dst |
=1, Arithmetic overflow=0, otherwise |
=1, negative result=0, if positive |
=1, dst contained 1=0, otherwise |
=1, dst contained 0=0, otherwise |
| DECD(.B or .W) dst |
=1, Arithmetic overflow=0, otherwise |
=1, negative result=0, if positive |
=1, dst contained 2=0, otherwise |
=1, dst contained 0 or 1=0, otherwise |
| INC(.B or .W) dst |
=1, dst contained 07(FF)h=0, otherwise |
=1, negative result=0, if positive |
=1, dst contained FF(FF)h=0, otherwise |
=1, dst contained FF(FF)h=0, otherwise |
| INCD(.B or .W) dst |
=1, dst contained 07(FFE)h=0, otherwise |
=1, negative result=0, if positive |
=1, dst contained FF(FE)h=0, otherwise |
=1, dst contained FF(FF)h or FF(FE)h=0, otherwise |
| SBC(.B or .W) dst |
=1, Arithmetic overflow=0, otherwise |
=1, negative result=0, if positive |
=1, null result,=0, otherwise |
=1, if no borrow=0, otherwise |
| Logical and register control instructions |
| INV(.B or .W) dst |
=1, negative initial dst=0, otherwise |
=1, negative result=0, if positive |
=1, dst contained FF(FF)h=0, otherwise |
=1, not zero=0, otherwise |
| RLA(.B or .W) dst |
=1, Arithmetic overflow=0, otherwise |
=1, negative result=0, if positive |
=1, null result,=0, otherwise |
Loaded from MSB |
| RLC(.B or .W) dst |
=1, Arithmetic overflow=0, otherwise |
=1, negative result=0, if positive |
=1, null result,=0, otherwise |
Loaded from MSB |
| Data instructions |
| CLR(.B or .W) dst |
- |
- |
- |
- |
| CLRC |
- |
- |
- |
=0 |
| CLRN |
- |
=0 |
- |
- |
| CLRZ |
- |
- |
=0 |
- |
| POP(.B or .W) dst |
- |
- |
- |
- |
| SETC |
- |
- |
- |
=1 |
| SETN |
- |
=1 |
- |
- |
| SETZ |
- |
- |
=1 |
- |
| TST(.B or .W) dst |
=0 |
=1, dst negative=0, otherwise |
=1, dst contains zero=0, otherwise |
=1 |
| Program flow control |
| BR dst |
- |
- |
- |
- |
| DINT |
- |
- |
- |
- |
| EINT |
- |
- |
- |
- |
| NOP |
- |
- |
- |
- |
| RET |
- |
- |
- |
- |
"This is an excerpt from the MSP430 Teaching CD produced under TI sponsorship and review at the University Beira Interior in Portugal. The material covers everything from "hello world" on an eZ430 […]"