Electronic Components Datasheet Search |
|
UPD703100 Datasheet(PDF) 62 Page - NEC |
|
UPD703100 Datasheet(HTML) 62 Page - NEC |
62 / 185 page CHAPTER 5 INSTRUCTIONS User’s Manual U12197EJ6V0UM 62 CMP Compare Instruction format (1) CMP reg1, reg2 (2) CMP imm5, reg2 Operation (1) result ← GR [reg2] – GR [reg1] (2) result ← GR [reg2] – sign-extend (imm5) Format (1) Format I (2) Format II Opcode 15 0 (1) rrrrr001111RRRRR 15 0 (2) rrrrr010011iiiii Flag CY 1 if a borrow to MSB occurs; otherwise, 0. OV 1 overflow occurs; otherwise 0. S 1 if the result of the operation is negative; otherwise, 0. Z 1 if the result of the operation is 0; otherwise, 0. SAT – Instruction (1) CMP Compare Register (2) CMP Compare Immediate (5-bit) Explanation (1) Compares the word data of general-purpose register reg2 with the word data of general- purpose register reg1, and indicates the result by using the condition flags. To compare, the contents of general-purpose register reg1 are subtracted from the word data of general-purpose register reg2. The data of general-purpose registers reg1 and reg2 are not affected. (2) Compares the word data of general-purpose register reg2 with 5-bit immediate data, sign- extended to word length, and indicates the result by using the condition flags. To compare, the contents of the sign-extended immediate data are subtracted from the word data of general-purpose register reg2. The data of general-purpose register reg2 is not affected. |
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 |