These devices feature a 14-bit wide code memory. Byte order is little endian. The instruction set is called SYM_85A in Padauk include files. The SDCC backend is called pdk14.
Hex |
1 3 |
1 2 |
1 1 |
1 0 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 | Mnemonic |
ZF ? |
CF ? |
AC ? |
OV ? | Description |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x0000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NOP | No operation | ||||
0x0006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | LDSPTL | A ← LowByte@CodeMem(WORD[SP]) | ||||
0x0007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | LDSPTH | A ← HighByteB@Codemem(WORD[SP]) | ||||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | opcode | Miscellaneous instructions | ||||||||||
0x0060 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | ADDC A | ZF | CF | AC | OV | A ← A + CF |
0x0061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | SUBC A | ZF | CF | AC | OV | A ← A - CF |
0x0062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | IZSN A | ZF | CF | AC | OV | Increment A and skip next instruction if A is zero |
0x0063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | DZSN A | ZF | CF | AC | OV | Decrement A and skip next instruction if A is zero |
0x0064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | ? | |||||
0x0065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | ? | |||||
0x0066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | ? | |||||
0x0067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | PCADD A | Add A to PC | ||||
0x0068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | NOT A | ZF | A ← ~A | |||
0x0069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | NEG A | ZF | A ← NEG(A) | |||
0x006A | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | SR A | CF | A ← A >> 1 | |||
0x006B | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | SL A | CF | A ← A << 1 | |||
0x006C | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | SRC A | CF | A ← CF:A >> 1 | |||
0x006D | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | SLC A | CF | A ← A:CF << 1 | |||
0x006E | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | SWAP A | Swap the high nibble and low nibble of A | ||||
0x006F | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | ? | |||||
0x0070 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | WDRESET | Reset Watchdog timer | ||||
0x0071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | ? | |||||
0x0072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | PUSHAF | Push A and flags to stack: [SP] ← A, [SP] ← F, SP ← SP + 2 | ||||
0x0073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | POPAF | ZF | CF | AC | OV | Pop A and flags from stack: SP ← SP + 2, F ← [SP], [SP] ← A |
0x0074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | ? | |||||
0x0075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | RESET | Reset the whole chip | ||||
0x0076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | STOPSYS | System halt (OSC disabled) | ||||
0x0077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | STOPEXE | CPU halt (OSC active to output clock, SYSCLK disabled to save power) | ||||
0x0078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | ENGINT | Global interrupt enbale | ||||
0x0079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | DISGINT | Global interrupt disable | ||||
0x007A | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | RET | Return from subroutine | ||||
0x007B | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | RETI | Return from interrupt | ||||
0x007C | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | MUL | Multiply (if available) | ||||
0x007D | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | ? | |||||
0x007E | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | ? | |||||
0x007F | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | ? | |||||
0 | 0 | 0 | 0 | 0 | c | 6-bit IO addr | Operations with A and IO | |||||||||||||
0x00C. 0x00D. 0x00E. 0x00F. | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | IO | XOR IO, A | IO ← IO ^ A (if available) | |||||||||
0x01.. | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | IO | MOV IO, A | IO ← A | |||||||||
0x01.. | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | IO | MOV A, IO | ZF | A ← IO | ||||||||
0 | 0 | 0 | 0 | 1 | 0 | 8-bit immediate | Return with A | |||||||||||||
0x02.. | 0 | 0 | 0 | 0 | 1 | 0 | k | RET k | A ← k and return from subroutine | |||||||||||
0 | 0 | 0 | 0 | 1 | 1 | c | 7-bit MEM addr | c | 16 bit memory operations | |||||||||||
0x03.. | 0 | 0 | 0 | 0 | 1 | 1 | 0 | M | 0 | STT16 M | Timer16 ← M (last bit of M set to 0, M must be word aligned) | |||||||||
0x03.. | 0 | 0 | 0 | 0 | 1 | 1 | 0 | M | 1 | LDT16 M | M ← Timer16 (last bit of M set to 1, M must be word aligned) | |||||||||
0x03.. | 0 | 0 | 0 | 0 | 1 | 1 | 1 | M | 0 | IDXM M, A | [M] ← A (last bit of M set to 0, M must be word aligned, 2 cycles) | |||||||||
0x03.. | 0 | 0 | 0 | 0 | 1 | 1 | 1 | M | 1 | IDXM A, M | A ← [M] (last bit of M set to 1, M must be word aligned, 2 cycles) | |||||||||
0 | 0 | 0 | 1 | 0 | bit pos | 6-bit IO addr | Special operation with CF and IO | |||||||||||||
0x04.. 0x05.. | 0 | 0 | 0 | 1 | 0 | n | IO | SWAPC IO.n | CF | Swap bit IO.n with CF | ||||||||||
0 | 0 | opcode | 7-bit MEM addr | Operations with A and memory | ||||||||||||||||
0x06.. | 0 | 0 | 0 | 1 | 1 | 0 | 0 | M | COMP A, M | ZF | CF | AC | OV | Compare A with M (flags changed according to (A-M)) (if available) | ||||||
0x06.. | 0 | 0 | 0 | 1 | 1 | 0 | 1 | M | COMP M, A | ZF | CF | AC | OV | Compare M with A (flags changed according to (M-A)) (if available) | ||||||
0x07.. | 0 | 0 | 0 | 1 | 1 | 1 | 0 | M | NADD A, M | ZF | CF | AC | OV | A ← M + NEG(A) (if available) | ||||||
0x07.. | 0 | 0 | 0 | 1 | 1 | 1 | 1 | M | NADD M, A | ZF | CF | AC | OV | M ← NEG(M) + A (if available) | ||||||
0x08.. | 0 | 0 | 1 | 0 | 0 | 0 | 0 | M | ADD M, A | ZF | CF | AC | OV | M ← M + A | ||||||
0x08.. | 0 | 0 | 1 | 0 | 0 | 0 | 1 | M | SUB M, A | ZF | CF | AC | OV | M ← M - A | ||||||
0x09.. | 0 | 0 | 1 | 0 | 0 | 1 | 0 | M | ADDC M, A | ZF | CF | AC | OV | M ← M + A + CF | ||||||
0x09.. | 0 | 0 | 1 | 0 | 0 | 1 | 1 | M | SUBC M, A | ZF | CF | AC | OV | M ← M - A - CF | ||||||
0x0A.. | 0 | 0 | 1 | 0 | 1 | 0 | 0 | M | AND M, A | ZF | M ← M & A | |||||||||
0x0A.. | 0 | 0 | 1 | 0 | 1 | 0 | 1 | M | OR M, A | ZF | M ← M A | |||||||||
0x0B.. | 0 | 0 | 1 | 0 | 1 | 1 | 0 | M | XOR M, A | ZF | M ← M ^ A | |||||||||
0x0B.. | 0 | 0 | 1 | 0 | 1 | 1 | 1 | M | MOV M, A | M ← A | ||||||||||
0x0C.. | 0 | 0 | 1 | 1 | 0 | 0 | 0 | M | ADD A, M | ZF | CF | AC | OV | A ← A + M | ||||||
0x0C.. | 0 | 0 | 1 | 1 | 0 | 0 | 1 | M | SUB A, M | ZF | CF | AC | OV | A ← A - M | ||||||
0x0D.. | 0 | 0 | 1 | 1 | 0 | 1 | 0 | M | ADDC A, M | ZF | CF | AC | OV | A ← A + M + CF | ||||||
0x0D.. | 0 | 0 | 1 | 1 | 0 | 1 | 1 | M | SUBC A, M | ZF | CF | AC | OV | A ← A - M - CF | ||||||
0x0E.. | 0 | 0 | 1 | 1 | 1 | 0 | 0 | M | AND A, M | ZF | A ← A & M | |||||||||
0x0E.. | 0 | 0 | 1 | 1 | 1 | 0 | 1 | M | OR A, M | ZF | A ← A M | |||||||||
0x0F.. | 0 | 0 | 1 | 1 | 1 | 1 | 0 | M | XOR A, M | ZF | A ← A ^ M | |||||||||
0x0F.. | 0 | 0 | 1 | 1 | 1 | 1 | 1 | M | MOV A, M | ZF | A ← M | |||||||||
0 | 1 | 0 | opcode | 7-bit MEM addr | Operations with memory | |||||||||||||||
0x10.. | 0 | 1 | 0 | 0 | 0 | 0 | 0 | M | ADDC M | ZF | CF | AC | OV | M ← M + CF | ||||||
0x10.. | 0 | 1 | 0 | 0 | 0 | 0 | 1 | M | SUBC M | ZF | CF | AC | OV | M ← M - CF | ||||||
0x11.. | 0 | 1 | 0 | 0 | 0 | 1 | 0 | M | IZSN M | ZF | CF | AC | OV | M ← M + 1 , skip next instruction if M is 0 | ||||||
0x11.. | 0 | 1 | 0 | 0 | 0 | 1 | 1 | M | DZSN M | ZF | CF | AC | OV | M ← M - 1 , skip next instruction if M is 0 | ||||||
0x12.. | 0 | 1 | 0 | 0 | 1 | 0 | 0 | M | INC M | ZF | CF | AC | OV | M ← M + 1 | ||||||
0x12.. | 0 | 1 | 0 | 0 | 1 | 0 | 1 | M | DEC M | ZF | CF | AC | OV | M ← M - 1 | ||||||
0x13.. | 0 | 1 | 0 | 0 | 1 | 1 | 0 | M | CLEAR M | M ← 0 | ||||||||||
0x13.. | 0 | 1 | 0 | 0 | 1 | 1 | 1 | M | XCH M | Exchange A with M | ||||||||||
0x14.. | 0 | 1 | 0 | 1 | 0 | 0 | 0 | M | NOT M | ZF | M ← ~M | |||||||||
0x14.. | 0 | 1 | 0 | 1 | 0 | 0 | 1 | M | NEG M | ZF | M ← NEG(M) | |||||||||
0x15.. | 0 | 1 | 0 | 1 | 0 | 1 | 0 | M | SR M | CF | M ← M >> 1 | |||||||||
0x15.. | 0 | 1 | 0 | 1 | 0 | 1 | 1 | M | SL M | CF | M ← M << 1 | |||||||||
0x16.. | 0 | 1 | 0 | 1 | 1 | 0 | 0 | M | SRC M | CF | M ← CF:M >> 1 | |||||||||
0x16.. | 0 | 1 | 0 | 1 | 1 | 0 | 1 | M | SLC M | CF | M ← M:CF << 1 | |||||||||
0x17.. | 0 | 1 | 0 | 1 | 1 | 1 | 0 | M | CEQSN A, M | ZF | CF | AC | OV | Skip next instruction if M is equal to A | ||||||
0x17.. | 0 | 1 | 0 | 1 | 1 | 1 | 1 | M | CNEQSN A, M | ZF | CF | AC | OV | Skip next instruction if M is not equal to A | ||||||
0 | 1 | 1 | c | bit pos | 6-bit IO addr | Bit operations with IO | ||||||||||||||
0x18.. 0x19.. | 0 | 1 | 1 | 0 | 0 | n | IO | T0SN IO.n | Test bit n of IO and skip next instruction if clear | |||||||||||
0x1A.. 0x1B.. | 0 | 1 | 1 | 0 | 1 | n | IO | T1SN IO.n | Test bit n of IO and skip next instruction if set | |||||||||||
0x1C.. 0x1D.. | 0 | 1 | 1 | 1 | 0 | n | IO | SET0 IO.n | Clear bit n of IO | |||||||||||
0x1E.. 0x1F.. | 0 | 1 | 1 | 1 | 1 | n | IO | SET1 IO.n | Set bit n of IO | |||||||||||
1 | 0 | 0 | c | bit pos | 6-bit MEM addr | Bit operations with memory | ||||||||||||||
0x20.. 0x21.. | 1 | 0 | 0 | 0 | 0 | n | M | T0SN M.n | Test bit n of memory M and skip next instruction if clear | |||||||||||
0x22.. 0x23.. | 1 | 0 | 0 | 0 | 1 | n | M | T1SN M.n | Test bit n of memory M and skip next instruction if set | |||||||||||
0x24.. 0x25.. | 1 | 0 | 0 | 1 | 0 | n | M | SET0 M.n | Clear bit n of memory M | |||||||||||
0x26.. 0x27.. | 1 | 0 | 0 | 1 | 1 | n | M | SET1 M.n | Set bit n of memory M | |||||||||||
1 | 0 | 1 | opcode | 8-bit immediate | Operations with A and 8-bit literal | |||||||||||||||
0x28.. | 1 | 0 | 1 | 0 | 0 | 0 | k | ADD A, k | ZF | CF | AC | OV | A ← A + k | |||||||
0x29.. | 1 | 0 | 1 | 0 | 0 | 1 | k | SUB A, k | ZF | CF | AC | OV | A ← A - k | |||||||
0x2A.. | 1 | 0 | 1 | 0 | 1 | 0 | k | CEQSN A, k | ZF | CF | AC | OV | Skip next instruction if A equals k | |||||||
0x2B.. | 1 | 0 | 1 | 0 | 1 | 1 | k | CNEQSN A, k | ZF | CF | AC | OV | Skip next instruction if A not equals k | |||||||
0x2C.. | 1 | 0 | 1 | 1 | 0 | 0 | k | AND A, k | ZF | A ← A & k | ||||||||||
0x2D.. | 1 | 0 | 1 | 1 | 0 | 1 | k | OR A, k | ZF | A ← A k | ||||||||||
0x2E.. | 1 | 0 | 1 | 1 | 1 | 0 | k | XOR A, k | ZF | A ← A ^ k | ||||||||||
0x2F.. | 1 | 0 | 1 | 1 | 1 | 1 | k | MOV A, k | A ← k | |||||||||||
1 | 1 | c | k | Control transfers | ||||||||||||||||
0x3000 ... 0x37FF | 1 | 1 | 0 | k | GOTO k | Jump to k (address in words, 2 cycles) | ||||||||||||||
0x3800 ... 0x3FFF | 1 | 1 | 1 | k | CALL k | Call subroutine k (address in words, 2 cycles) | ||||||||||||||
Device |
| COMP A, M | COMP M, A | LEER M | MUL | NADD A, M | NADD M, A | STEER M | XOR IO, A |
---|---|---|---|---|---|---|---|---|---|
MCU390 | 1 | - | - | - | - | - | - | - | Y |
PFC151 | 1 | Y | Y | - | - | Y | Y | - | Y |
PFC154 | 1 | Y | Y | - | - | Y | Y | - | Y |
PFC161 | 1 | Y | Y | - | - | Y | Y | - | Y |
PFC232 | 2 | Y | Y | - | Y | Y | Y | - | Y |
PFS121 | 1 | ? | ? | - | ? | ? | ? | - | ? |
PFS122 | 1 | Y | Y | - | - | Y | Y | - | Y |
PFS122B | 1 | Y | Y | - | - | Y | Y | - | Y |
PFS132 | 1 | Y | Y | - | Y | Y | Y | - | Y |
PFS154 | 1 | - | - | - | - | - | - | - | Y |
PFS172 | 1 | Y | Y | - | - | Y | Y | - | Y |
PGS152 | 1 | Y | Y | Y | - | Y | Y | Y | Y |
PMB180 | 1 | Y | Y | - | - | Y | Y | - | Y |
PMC131 | 1 | Y | Y | - | Y | Y | Y | - | - |
PML100 | 1 | - | - | - | - | - | - | - | Y |
PMS121 | 1 | - | - | - | - | - | - | - | Y |
PMS130 | 1 | Y | Y | - | Y | Y | Y | - | - |
PMS131 | 1 | Y | Y | - | Y | Y | Y | - | - |
PMS132 | 1 | Y | Y | - | Y | Y | Y | - | Y |
PMS132B | 1 | Y | Y | - | Y | Y | Y | - | Y |
PMS132C | 1 | ? | ? | - | ? | ? | ? | - | ? |
PMS152 | 1 | Y | Y | - | - | Y | Y | - | Y |
PMS152G | 1 | Y | Y | - | - | Y | Y | - | Y |
PMS154B | 1 | Y | Y | - | - | Y | Y | - | Y |
PMS154C | 1 | Y | Y | - | - | Y | Y | - | Y |
PMS154G | 1 | Y | Y | - | - | Y | Y | - | Y |
PMS155 | 1 | ? | ? | - | ? | ? | ? | - | ? |
PMS155B | 1 | ? | ? | - | ? | ? | ? | - | ? |
PMS155C | 1 | ? | ? | - | ? | ? | ? | - | ? |
PMS164 | 1 | - | - | - | - | - | - | - | Y |
PMS165C | 1 | ? | ? | - | ? | ? | ? | - | ? |
PMS171 | 1 | ? | ? | - | ? | ? | ? | - | ? |
PMS171B | 1 | - | - | - | - | - | - | - | Y |
PMS171C | 1 | ? | ? | - | ? | ? | ? | - | ? |
XDM4102 | ? | ? | ? | - | ? | ? | ? | ? | ? |
XDM4103 | ? | ? | ? | - | ? | ? | ? | ? | ? |
XDM4104 | ? | ? | ? | - | ? | ? | ? | ? | ? |
YMB1801 | ? | ? | ? | ? | ? | ? | ? | ? | ? |
YMB1805 | ? | ? | ? | ? | ? | ? | ? | ? | ? |