| Electronic Components Datasheet Search |
|
17017 Datasheet(PDF) 51 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
17017 Datasheet(HTML) 51 Page - Renesas Technology Corp |
|
51 / 326 page ![]() µPD17016, 17017 49 5.8.2 Function of program status word The program status word is a register that sets the condition of an operation or transfer instruction of the ALU (Arithmetic Logic Unit) or indicates the result of an operation executed. Table 5-2 outlines the function of each flag of the program status word. For details, refer to 7. ALU (Arithmetic Logic Unit) BLOCK. Table 5-2. Functional Outline of Program Status Word 5.8.3 Notes on using program status word If an arithmetic operation (addition or subtraction) instruction is executed to the program status word, the “result” of the arithmetic operation is stored to the program status word. For example, even if an operation that causes a carry to occur is executed, if the result of the operation is 0000B, 0000B is stored to PSW. 5.9 Notes on Using System Register The data of the system register fixed to “0” is not affected even if a write instruction is executed to it. This data is always “0” when it is read. Program status word (PSWORD) RPL PSW b3 b2 b1 b0 B C D b3 C M P b2 C Y b1 Z b0 I X E Flag Name Index enable flag (IXE) Zero flag (Z) Carry flag (CY) Compare flag (CMP) BCD flag (BCD) Function (RP) This flag modifies address of data memory when data memory manipulation instruction is executed. 0 : Does not modify 1 : Modifies This flag indicates that result of arithmetic operation executed is 0. Note that status of 0 or 1 differs depending on content of compare flag. This flag indicates occurrence of carry or borrow as result of execution of addition or subtraction instruction. It is reset to “0” if carry/borrow does not occur; it is set to “1” if carry/borrow occurs. This flag is also used as sift bit of “RORC r” instruction. This flag is used to not store result of arithmetic operation to data memory or general register. 0 : Result stored 1 : Result not stored This flag is used to execute arithmetic operation in decimal. 0 : Executes binary operation 1 : Executes decimal operation |
|
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 |