| Electronic Components Datasheet Search |
|
DP8344B Datasheet(PDF) 23 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP8344B Datasheet(HTML) 23 Page - National Semiconductor (TI) |
|
23 / 184 page ![]() 20 CPU Description (Continued) Shift and Rotate Instructions The shift and rotate instructions operate on any of the 8-bit CPU registers The BCP supports shift left shift right and rotate operations Table 2-8 lists the shift and rotate instruc- tions Comparison Instructions The BCP utilizes two comparison instructions The CMP in- struction performs a two’s complement subtraction between a register and immediate data The BIT instruction tests se- lected bits in a register by ANDing it with immediate data Neither instruction stores its results only the ALU flags are affected Table 2-9 lists both of the comparison instructions Program Flow Instructions The BCP has a wide array of program flow instructions un- conditional jumps calls and returns conditional jumps calls and returns relative or absolute instruction addressing on jumps and calls a specialized register field decoding jump and software interrupt capabilities These instructions redirect program flow by changing the Program Counter The unconditional jump instructions support both relative in- struction addressing the (JuMP instruction) and absolute instruction addressing (the Long JuMP instruction) using the following addressing modes Immediate Register Abso- lute and Indexed Table 2-10 lists the unconditional jump instructions and their variations The conditional jump instructions support both relative in- struction addressing and absolute instruction addressing us- ing the Immediate and Absolute addressing modes The conditional relative jump instruction tests flags in the Condi- tion Code Register CCR and the Transceiver Status Register TSR Two possible syntaxes are supported for the conditional relative jump instruction see Table 2-11 Table 2-12 lists the various flags ‘‘f’’ that the conditional JMP instruction can test and Table 2-13 lists the various conditions ‘‘cc’’ that the Jcc instruction can test for Keep in TABLE 2-8 Shift and Rotate Instructions Syntax Instruction Operation Addressing Mode SHL Rsdb Register SHR Rsdb Register ROT Rsdb Register Note ‘‘b’’ e the number of bit shiftsrotates to perform TABLE 2-9 Comparison Instructions Syntax Instruction Operation Addressing Mode CMP rs n register b n Limited Register BIT rs n register n Limited Register Note e logical AND operation TABLE 2-10 Unconditional Jump Instructions Syntax Instruction Operation Operand Range Addressing Mode JMP n PC a n (sign extended) xPC b 128 a127 Immediate JMP Rs PC a Rs (sign extended) xPC b 128 a127 Register LJMP nn nn xPC 0 64k Absolute LJMP Ir Ir xPC 0 64k Indexed Note PC e Program Counter contents initially points to instruction following jump 23 |
|
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 |