| Electronic Components Datasheet Search |
|
DP8344 Datasheet(PDF) 150 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP8344 Datasheet(HTML) 150 Page - National Semiconductor (TI) |
|
150 / 184 page ![]() 60 Reference Section (Continued) RETF Conditional Return Rcc Syntax RETF f s g rf Rcc g rf (optional syntax) Affected Flags If rf e 1 then N Z C and V Description Conditionally returns control to the last instruction address pushed onto the internal Address Stack by popping that ad- dress into the Program Counter if the state of the flag refer- enced by f is equal to the state of the bit s or optionally if the condition cc is met See the tables on the following page for the flags that f can reference and the conditions that cc may specify The conditional return instruction also has two optional operands g and rf The value of g determines if the Global Interrupt Enable bit GIE is left unchanged (ge0) restored from the Address Stack (ge1) set (ge2) or cleared (ge3) If the g operand is omitted then ge0isas- sumed The second optional operand rf determines if the ALU flags and register bank selections are left unchanged (rfe0) or restored from the Address Stack (rfe1) If the rf operand is omitted then rfe0 is assumed Example This example demonstrates both syntaxes of the condition- al return instruction testing for a carry result from a previous instruction (ie C e1) If the condition is met then the return occurs else the next instruction following the return is executed The current environment is left unchanged RETF 001B1 If C e1 then return RC If C e1 then return Instruction Format 101011110 Opcode g rf s f 15 6 v 43 2 0 00GIE not affected 01Restore GIE 10Set GIE 11Clear GIE 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 If flag f is in state s then Case g of 0 leave GIE unaffected (default) 1 restore GIE from Address Stack 2 set GIE 3 clear GIE End case If rfe1 then restore ALU flags from Address Stack restore register bank selection from Address Stack End if Address Stack xPC End if 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 Flag Reference Table for ‘‘f’’ f (binary) Flag Referenced 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 150 |
|
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 |