| Electronic Components Datasheet Search |
|
DP8344 Datasheet(PDF) 141 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP8344 Datasheet(HTML) 141 Page - National Semiconductor (TI) |
|
141 / 184 page ![]() 60 Reference Section (Continued) JMP Conditional Relative Jump Jcc Syntax JMP f s n immediate Jcc n immediate (optional syntax) Affected Flags None Description Conditionally transfers control to the instruction at the mem- ory address calculated by adding the contents of the Pro- gram Counter to the immediate value n (sign extended to 16 bits) if the state of the flag referenced by f is equal to the state of the bit s or optionally if the condition cc is met See the tables below for the flags that f can reference and the conditions that cc may specify Since the immediate val- ue n is an 8-bit two’s complement displacement the condi- tional relative jump’s range is from a127 to b128 relative to the Program Counter Note that the Program Counter ini- tially contains the memory address of the next instruction following the jump Example This example demonstrates both syntaxes of the condition- al relative jump instruction testing for a non-zero result from a previous instruction (ie Z e0) If the condition is met then control transfers to the instruction labeled ‘‘Loopback’’ else the next instruction following the jump is executed JMP 000B0Loopback jump on not zero JNZ Loopback jump on not zero Condition Specification Table for ‘‘cc’’ cc Meaning Condition Tested for Z Zero Z e 1 NZ Not Zero Z e 0 EQ Equal Z e 1 NEQ Not Equal Z e 0 C Carry C e 1 NC No Carry C e 0 V Overflow V e 1 NV No Overflow V e 0 N Negative N e 1 P Positive N e 0 RA Receiver Active RA e 1 NRA Not Receiver Active RA e 0 RE Receiver Error RE e 1 NRE No Receiver Error RE e 0 DA Data Available DAV e 1 NDA No Data Available DAV e 0 TFF Transmitter FIFO Full TFF e 1 NTFF Transmitter FIFO Not Full TFF e 0 Instruction Format 1101 Opcode s f n 15 11 10 7 0 T-states 2 if condition is not met 3 if condition is met Bus Timing Figure 6-1 if condition is not met Figure 6-2 if condition is met Operation JMP f s n If flag f is in state s then PC a n(sign extended) xPC Jcc n If cc condition is true then PC a n(sign extended) xPC Flag Reference Table for ‘‘f’’ f (binary) Flag Reference 0 (000) Z in CCR 1 (001) C in CCR 2 (010) V in CCR 3 (011) N in CCR 4 (100) RA in TSR 5 (101) RE in TSR 6 (110) DAV in TSR 7 (111) TFF in TSR Note The value of f for DAV differs from the numeric value for the position of DAV in TSR 141 |
|
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 |