| Electronic Components Datasheet Search |
|
PFS173 Datasheet(PDF) 87 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PFS173 Datasheet(HTML) 87 Page - PADAUK Technology. |
|
87 / 105 page ![]() PFS173 8bit MTP MCU with 8-bit ADC ©Copyright 2020, PADAUK Technology Co. Ltd Page 87 of 105 PDK-DS-PFS173-EN_V105-Jun. 19, 2020 7.2. Arithmetic Operation Instructions add a, I Add immediate data with ACC, then put result into ACC Example: add a, 0x0f ; Result: a ← a + 0fh Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV add a, M Add data in memory with ACC, then put result into ACC Example: add a, MEM ; Result: a ← a + MEM Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV add M, a Add data in memory with ACC, then put result into memory Example: add MEM, a; Result: MEM ← a + MEM Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV addc a, M Add data in memory with ACC and carry bit, then put result into ACC Example: addc a, MEM ; Result: a ← a + MEM + C Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV addc M, a Add data in memory with ACC and carry bit, then put result into memory Example: addc MEM, a ; Result: MEM ← a + MEM + C Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV addc a Add carry with ACC, then put result into ACC Example: addc a ; Result: a ← a + C Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV addc M Add carry with memory, then put result into memory Example: addc MEM ; Result: MEM ← MEM + C Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV nadd a, M Add negative logic (2’s complement) of ACC with memory Example: nadd a, MEM ; Result: a ← 〒a + MEM Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV nadd M, a Add negative logic (2’s complement) of memory with ACC Example: nadd MEM, a ; Result: MEM ← 〒MEM + a Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV sub a, I Subtraction immediate data from ACC, then put result into ACC Example: sub a, 0x0f; Result: a ← a - 0fh ( a + [2’s complement of 0fh] ) Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV sub a, M Subtraction data in memory from ACC, then put result into ACC Example: sub a, MEM ; Result: a ← a - MEM ( a + [2’s complement of M] ) Affected flags: 『Y』Z 『Y』C 『Y』AC 『Y』OV |
|
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 |