| Electronic Components Datasheet Search |
|
DP8344 Datasheet(PDF) 151 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP8344 Datasheet(HTML) 151 Page - National Semiconductor (TI) |
|
151 / 184 page ![]() 60 Reference Section (Continued) RET Unconditional Return Syntax RET g rf Affected Flags If rfe1 then N Z C and V Description Unconditionally returns control to the last instruction ad- dress pushed onto the internal Address Stack by popping that address into the Program Counter The unconditional 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 ge0 is assumed The second optional oper- and rf determines if the ALU flags and register bank selec- tions are left unchanged (rfe0) or restored from the Ad- dress Stack (rfe1) If the rf operand is omitted then rfe0is assumed Example Return from an interrupt RET 11 Restore environment return Instruction Format 101011111 0000 Opcode g rf 15 6 v 43 0 00GIE not affected 01Restore GIE 10Set GIE 11Clear GIE T-states 2 Bus Timing Figure 6-1 Operation 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 ROT Rotate Syntax ROT Rsd b register Affected Flags N Z C Description Rotates the contents of the register Rsd b bits to the right and places the result back into that register The bits that are shifted out of the LSB are shifted back into the MSB (and copied into the Carry flag) The value b may specify from 0 to 7 bit rotates Example Add 3 to the Address Stack Pointer contained in the Internal Stack Pointer register ISP R30 MOVE ISP R8 get ISP ROT R8 4 shift ASP to low order nibble ADD 3 R8 add 3 to ASP ROT R8 4 shift ASP to high order nibble MOVE R8 ISP store new ISP Instruction Format 11001010 Opcode b Rsd 15 7 4 0 T-states 2 Bus Timing Figure 6-1 Operation TLF9336 – 12 151 |
|
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 |