| Electronic Components Datasheet Search |
|
D17133CS Datasheet(PDF) 205 Page - NEC |
|
|
|||||||||||||||||||||||||||||
D17133CS Datasheet(HTML) 205 Page - NEC |
|
205 / 289 page ![]() CHAPTER 18 INSTRUCTION SET 190 If the addition result is zero, with the compare flag reset (CMP=0), the zero flag Z is set. If the addition result is zero, with the compare flag set (CMP=1), the zero flag Z is not changed. Addition can be executed in binary 4-bit or BCD. The BCD flag for the PSWORD specifies which kind of addition is to be executed. <3> Example 1 Adds the address 0.2FH contents to the address 0.03H contents, when row address 0 (0.00H-0.0FH) in bank 0 is specified as the general register (RPH=0, RPL=0), and stores the result in address 0.03H: (0.03H) ← (0.03H) + (0.2FH) MEM003 MEM 0.03H MEM02F MEM 0.2FH MOV BANK, #00H ; Data memory bank 0 MOV RPH, #00H ; General register bank 0 MOV RPL, #00H ; General register row address 0 ADD MEM003, MEM02F Example 2 Adds the address 0.2FH contents to the address 0.23H contents, when row address 2 (0.20H-0.2FH) in bank 0 is specified as the general register (RPH=0, RPL=4), and stores the result in address 0.23H: (0.23H) ← (0.23H) + (0.2FH) MEM023 MEM 0.23H MEM02F MEM 0.2FH MOV BANK, #00H ; Data memory bank 0 MOV RPH, #00H ; General register bank 0Note MOV RPL, #04H ; General register row address 2 ADD MEM023, MEM02F RP RPH RPL Register Bit Data Note b3 0 b2 0 b1 0 b0 0 b3 b2 b1 b0 Bank Row Address B C D |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | 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 |