EM78P156N
OTP ROM
(2)The I/O register can be regarded as general register. That is, the same instruction can operate on I/O register.
The symbol "R" represents a register designator that specifies which one of the registers (including operational registers and general purpose registers) is to be utilized by the instruction. "b" represents a bit field designator that selects the value for the bit which is located in the register "R", and affects operation. "k" represents an 8 or
| INSTRUCTION BINARY | HEX | MNEMONIC | OPERATION | STATUS AFFECTED |
| |||
|
|
|
|
|
|
|
|
| |
| 0 | 0000 | 0000 0000 | 0000 | NOP | No Operation | None |
| |
| 0 | 0000 | 0000 0001 | 0001 | DAA | Decimal Adjust A | C |
| |
| 0 | 0000 | 0000 0010 | 0002 | CONTW | A → CONT | None |
| |
| 0 | 0000 | 0000 0011 | 0003 | SLEP | 0 → WDT, Stop oscillator | T,P |
| |
| 0 | 0000 | 0000 0100 | 0004 | WDTC | 0 → WDT | T,P |
| |
| 0 | 0000 | 0000 rrrr | 000r | IOW R | A → IOCR | None <Note1> |
| |
| 0 | 0000 | 0001 0000 | 0010 | ENI | Enable Interrupt | None |
| |
| 0 | 0000 | 0001 | 0001 | 0011 | DISI | Disable Interrupt | None |
|
| 0 | 0000 | 0001 0010 | 0012 | RET | [Top of Stack] → PC | None |
| |
| 0 | 0000 | 0001 0011 | 0013 | RETI | [Top of Stack] → PC, Enable | None |
| |
| Interrupt |
| |||||||
|
|
|
|
|
|
|
|
| |
| 0 | 0000 | 0001 0100 | 0014 | CONTR | CONT → A | None |
| |
| 0 | 0000 | 0001 rrrr | 001r | IOR R | IOCR → A | None <Note1> |
| |
| 0 | 0000 | 01rr | rrrr | 00rr | MOV R,A | A → R | None |
|
| 0 | 0000 | 1000 0000 | 0080 | CLRA | 0 → A | Z |
| |
| 0 | 0000 | 11rr | rrrr | 00rr | CLR R | 0 → R | Z |
|
| 0 | 0001 | 00rr | rrrr | 01rr | SUB A,R | Z,C,DC |
| |
| 0 | 0001 | 01rr | rrrr | 01rr | SUB R,A | Z,C,DC |
| |
|
|
|
|
|
|
|
|
|
|
| 0 | 0001 | 10rr | rrrr | 01rr | DECA R | Z |
| |
| 0 | 0001 | 11rr | rrrr | 01rr | DEC R | Z |
| |
| 0 | 0010 | 00rr | rrrr | 02rr | OR A,R | A ∨ R → A | Z |
|
| 0 | 0010 | 01rr | rrrr | 02rr | OR R,A | A ∨ R → R | Z |
|
| 0 | 0010 | 10rr | rrrr | 02rr | AND A,R | A & R → A | Z |
|
| 0 | 0010 | 11rr | rrrr | 02rr | AND R,A | A & R → R | Z |
|
| 0 | 0011 | 00rr | rrrr | 03rr | XOR A,R | A ⊕ R → A | Z |
|
| 0 | 0011 | 01rr | rrrr | 03rr | XOR R,A | A ⊕ R → R | Z |
|
| 0 | 0011 | 10rr | rrrr | 03rr | ADD A,R | A + R → A | Z,C,DC |
|
| 0 | 0011 | 11rr | rrrr | 03rr | ADD R,A | A + R → R | Z,C,DC |
|
| 0 | 0100 | 00rr | rrrr | 04rr | MOV A,R | R → A | Z |
|
| 0 | 0100 | 01rr | rrrr | 04rr | MOV R,R | R → R | Z |
|
| 0 | 0100 | 10rr | rrrr | 04rr | COMA R | /R → A | Z |
|
| 0 | 0100 | 11rr | rrrr | 04rr | COM R | /R → R | Z |
|
| 0 | 0101 | 00rr | rrrr | 05rr | INCA R | R+1 → A | Z |
|
| 0 | 0101 | 01rr | rrrr | 05rr | INC R | R+1 → R | Z |
|
| 0 | 0101 | 10rr | rrrr | 05rr | DJZA R | None |
| |
| 0 | 0101 | 11rr | rrrr | 05rr | DJZ R | None |
| |
| 0 | 0110 | 00rr | rrrr | 06rr | RRCA R | R(n) → | C |
|
| R(0) → C, C → A(7) |
| |||||||
|
|
|
|
|
|
|
|
| |
| 0 | 0110 | 01rr | rrrr | 06rr | RRC R | R(n) → | C |
|
| R(0) → C, C → R(7) |
| |||||||
|
|
|
|
|
|
|
|
| |
| 0 | 0110 | 10rr | rrrr | 06rr | RLCA R | R(n) → A(n+1), | C |
|
|
|
| |||||||
This specification is subject to change without prior notice. 34 |
| 07.29.2004 (V1.2) |