Electronic Components Datasheet Search |
|
UPD703100 Datasheet(PDF) 99 Page - NEC |
|
UPD703100 Datasheet(HTML) 99 Page - NEC |
99 / 185 page CHAPTER 5 INSTRUCTIONS User’s Manual U12197EJ6V0UM 99 SATADD Saturated Add Instruction format (1) SATADD reg1, reg2 (2) SATADD imm5, reg2 Operation (1) GR [reg2] ← saturated (GR [reg2] + GR [reg1]) (2) GR [reg2] ← saturated (GR [reg2] + sign-extend (imm5)) Format (1) Format I (2) Format II Opcode 15 0 (1) rrrrr000110RRRRR 15 0 (2) rrrrr010001iiiii Flag CY 1 if a carry occurs from MSB; otherwise, 0. OV 1 if overflow occurs; otherwise, 0. S 1 if the result of the saturated operation is negative; otherwise, 0. Z 1 if the result of the saturated operation is 0; otherwise, 0. SAT 1 if OV = 1; otherwise, not affected. Instruction (1) SATADD Saturated add register (2) SATADD Saturated add Immediate (5-bit) Explanation (1) Adds the word data of general-purpose register reg1 to the word data of general-purpose register reg2, and stores the result in general-purpose register reg2. However, if the result exceeds the maximum positive value 7FFFFFFFH, 7FFFFFFFH is stored in reg2; if the result exceeds the maximum negative value 80000000H, 80000000H is stored in reg2. The SAT flag is set to 1. The data of general-purpose register reg1 is not affected. Do not specify r0 as the destination register reg2. (2) Adds a 5-bit immediate data, sign-extended to word length, to the word data of general- purpose register reg2, and stores the result in general-purpose register reg2. However, if the result exceeds the maximum positive value 7FFFFFFFH, 7FFFFFFFH is stored in reg2; if the result exceeds the maximum negative value 80000000H, 80000000H is stored in reg2. The SAT flag is set to 1. Do not specify r0 as the destination register reg2. Remark The SAT flag is a cumulative flag. Once the result of the saturated operation instruction has been saturated, this flag is set to 1 and is not reset to 0 even if the result of the subsequent operation is not saturated. Even if the SAT flag is set to 1, the saturated operation instruction is executed normally. Caution To reset the SAT flag to 0, load data to the PSW by using the LDSR instruction. |
Similar Part No. - UPD703100 |
|
Similar Description - UPD703100 |
|
|
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 |