Electronic Components Datasheet Search |
|
LC651204N Datasheet(PDF) 33 Page - Sanyo Semicon Device |
|
LC651204N Datasheet(HTML) 33 Page - Sanyo Semicon Device |
33 / 35 page LC651204/1202 Instruction Set (by function) Abbreviations AC: Accumulator M: Memory ZF : Zero flag ACt: Accumulator bit t M(DP): Memory addressed by DP ( )[ ] : Indicates the contents of the item enclosed. CF: Carry flag P(DPL): I/O port specified by DPL ← : Transfer and direction CTL: Control register PC: Program counter + : Addition DP: Data pointer STACK: Stack pointer – : Subtraction E: E register TM: Timer ^ : Logical AND EXTF: External interrupt request flag TMF: Timer (internal) interrupt request flag ∨ : Logical OR Fn: Flag bit n At, Ha, La: Working registers ∨ : Logical exclusive OR No. 5190-33/35 LC651204N/F/L, LC651202N/F/L Instruction code Modified Mnemonic Operation Description status Notes D7 D6 D5 D4 D3 D2 D1 D0 flags CLA Clear AC 1 1 0 0 0 0 0 0 1 1 AC ← 0 Clears AC. ZF *1 ClC Clear CF 1 1 1 0 0 0 0 1 1 1 CF ← 0 Clears CF. CF STC Set CF 1 1 1 1 0 0 0 1 1 1 CF ← 1 Sets CF. CF CMA Complement AC 1 1 1 0 1 0 1 1 1 1 AC ← (AC) Sets AC to the one's ZF INC Increment AC 0 0 0 0 1 1 1 0 1 1 AC ← (AC) + 1 Increments AC. ZF CF DEC Decrement AC 0 0 0 0 1 1 1 1 1 1 AC ← (AC) – 1 Decrements AC. ZF CF RAL Rotate AC left through CF 0 0 0 0 0 0 0 1 1 1 AC0 ← (CF), ACn+1 Shifts AC together with CF left. ZF CF ← (AC n), CF ← (AC3) TAE Transfer AC to E 0 0 0 0 0 0 1 1 1 1 E ← (AC) Moves the contents of AC to E. XAE Exchange AC with E 0 0 0 0 1 1 0 1 1 1 (AC) ↔ (E) Exchanges the contents of AC and E. INM Increment M 0 0 1 0 1 1 1 0 1 1 M(DP) ← [M(DP)] + 1 Increments M(DP). ZF CF DEm Decrement M 0 0 1 0 1 1 1 1 1 1 M(DP) ← [M(DP)] – 1 Decrements M(DP). ZF CF SmB bit Set M data bit 0 0 0 0 1 0 B1 B0 1 1 M(DP, B1 B0) ← 1 Sets the bit in M(DP) specified by B1B0 to 1. RMB bit Reset M data bit 0 0 1 0 1 0 B1 B0 1 1 M(DP, B1 B0) ← 0 Clears the bit in M(DP) specified by B1B0 to 0. AD Add M to AC 0 1 1 0 0 0 0 0 1 1 AC ← (AC) + [M(DP)] Adds the contents of AC and M(DP) as two's complement ZF CF quantities and stores the result in AC. ADC Add M to AC with CF 0 0 1 0 0 0 0 0 1 1 AC ← (AC) + [M(DP)] Adds the contents of AC, CF, + (CF) and M(DP) as two's complement ZF CF quantities and stores the result in AC. DAA Decimal adjust AC in addition 1 1 1 0 0 1 1 0 1 1 AC ← (AC) + 3 Adds 6 to AC. ZF DAS Decimal adjust AC in subtraction 1 1 1 0 1 0 1 0 1 1 AC ← (AC) + 10 Adds 10 to AC. ZF Takes the logical exclusive OR ZF EXL Exclusive or M to AC 1 1 1 1 0 1 0 1 1 1 AC ← (AC) ∨ [M(DP)] of AC and M(DP) and stores the result in AC. Takes the logical AND of AC AND And M to AC 1 1 1 0 0 1 1 1 1 1 AC ← (AC) ^ [M(DP)] and M(DP) and stores the ZF result in AC. OR Or M to AC 1 1 1 0 0 1 0 1 1 1 AC ← (AC) ∨ [M(DP)] Takes the logical OR of AC and ZF M(DP) and stores the result in AC. Compares the contents of AC CM Compare AC with M 1 1 1 1 1 0 1 1 1 1 [M(DP)] + (AC) + 1 and M(DP) and sets or clears CF and ZF accordingly. ZF CF Compares the contents of AC and the immediate data I3 I2 I1 I0 and sets or clears CF and ZF accordingly. Cl data Compare AC with 0 0 1 0 1 1 0 0 2 2 I3 I2 I1 I0 + (AC) + 1 ZF CF immediate data 0 1 0 0 I3 I2 I1 I0 CLI data Compare DPL with immediate 0 0 1 0 1 1 0 0 2 2 (DPL) ∨ I3 I2 I1 I0 Compares the contents of DPL ZF data 0 1 0 1 I3 I2 I1 I0 and the immediate data. LI data Load AC with immediate data 1 1 0 0 I3 I2 I1 I0 1 1 AC ← I 3 I2 I1 I0 Loads AC with the immediate ZF *1 data I3 I2 I1 I0. S Store AC to M 0 0 0 0 0 0 1 0 1 1 M(DP) ← (AC) Stores the contents of AC at M(DP). L Load AC from M 0 0 1 0 0 0 0 1 1 1 AC ← [M(DP)] Loads the contents of M(DP) into AC. ZF Exchange AC with M then 1 0 1 0 0 M2 M1 M0 1 2 (AC) ↔ [M(DP)] Exchanges the contents of AC XM data modify DPH with immediate DPH ← (DPH) ∨ and M(DP). Then, replaces the ZF data 0 M2 M1 M0 contents of DPH with (DPH) ∨ 0 M2 M1 M0. Exchanges the contents of AC X Exchange AC with M 1 0 1 0 0 0 0 0 1 2 (AC) ↔ [M(DP)] and M(DP). ZF Exchange AC with M then 1 1 1 1 1 1 1 0 1 2 (AC) ↔ [M(DP)] Exchanges the contents of AC XI increment DPL DPL ← (DPL) + 1 and M(DP). Then, increments ZF the contents of DPL. XD Exchange AC with M then 1 1 1 1 1 1 1 1 1 2 (AC) ↔ [M(DP)] Exchanges the contents of AC Decrement DPL DPL ← (DPL) – 1 and M(DP). Then, Decrements ZF the contents of DPL. Loads into AC and E the ROM RTBl Read table data from 0 1 1 0 0 0 1 1 1 2 AC, E ↔ ROM data stored at the location given program ROM (PCh, E, AC) by the lower 8 bits of the PC, E and AC. ZF is set to indicate the result of the (DPH) ∨ 0 M 2 M1 M0 operation. ZF is set according to the contents of DPH at the point the instruction was executed. ZF is set to indicate the result of the DPL +1 operation. ZF is set to indicate the result of the DPL –1 operation. Magnitude relationship CF ZF [M(DP)] > (AC) 0 0 [M(DP)] = (AC) 1 1 [M(DP)] < (AC) 1 0 Magnitude relationship CF ZF I3 I2 I1 I0 > (AC) 0 0 I3 I2 I1 I0 = (AC) 1 1 I3 I2 I1 I0 < (AC) 1 0 Continued on next page. |
Similar Part No. - LC651204N |
|
Similar Description - LC651204N |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
Family Site : ic2ic.com |
icmetro.com |