| поискавой системы для электроныых деталей |
|
SX28AC/DP датащи(PDF) 34 Page - Parallax Inc |
|
|
|||||||||||||||||||||||||||||
SX28AC/DP датащи(HTML) 34 Page - Parallax Inc |
|
34 / 51 page ![]() Parallax SX20AC/SX28AC www.parallax.com © Parallax Inc. Page 34 of 51 Rev 1.6 11/20/2006 15.12.2. Pop Operation When a return instruction is executed the subroutine stack is popped. Specifically, the contents of Stack 1 are copied into the program counter and the contents of each stack level are moved to the next higher level. For example, Stack 1 receives the contents of Stack 2, etc., until Stack 7 is overwritten with the contents of Stack 8. Stack 8 is left unchanged, so the contents of Stack 8 are duplicated in Stack 7. 15.13. Comparison and Conditional Branch Instructions The instruction set includes instructions such as DECSZ fr (decrement file register and skip if zero), INCSZ fr (increment file register and skip if zero), SNB bit (bit test file register and skip if bit clear), and SB bit (bit test file register and skip if bit set). These instructions will cause the next instruction to be skipped if the tested condition is true. If a skip instruction is immediately followed by a PAGE or BANK instruction (and the tested condition is true) then two instructions are skipped and the operation consumes three cycles. This is useful for conditional branching to another page where a PAGE instruction precedes a JMP. If several PAGE and BANK instructions immediately follow a skip instruction then they are all skipped plus the next instruction and a cycle is consumed for each. 15.14. Logical Instruction The instruction set contain a full complement of the logical instructions (AND, OR, Exclusive OR), with the W register and a selected memory location (using either direct or indirect addressing) serving as the two operands. 15.15. Shift and Rotate Instructions The instruction set includes instructions for left or right rotate-through-carry. 15.16. Complement and SWAP The device can perform one’s complement operation on the file register (fr) and W register. The MOV W,<>fr instruction performs nibble-swap on the fr and puts the value into the W register. Table 15-1: Key to Abbreviations and Symbols Symbol Description Symbol Description W Working register n Numerical value bit in opcode fr File register (memory mapped in range of 00h to FFh) b Bit position selector bit in opcode PC Lower eight bits of program counter (file register 02h) . File register / bit selector separator in assembly instruct. STATUS STATUS register (file register 03h) # Immediate literal designator in assembly instruction FSR File Select Register (file register 04h) lit Literal value in assembly language instruction C Carry bit in STATUS register (Bit 0) addr8 8-bit address in assembly language instruction DC Digit Carry bit in STATUS register (Bit 1) addr9 9-bit address in assembly language instruction Z Zero bit in STATUS register (Bit 2) addr12 12-bit address in assembly language instruction PD Power Down bit in STATUS register (Bit 3) / Logical 1’s complement TO Watchdog Timeout bit in STATUS register (Bit 4) | Logical OR PA2:PA0 Page select bits in STATUS register (Bits7:5) ^ Logical exclusive OR OPTION OPTION register (not memory mapped) & Logical AND WDT Watchdog Timer register (not memory-mapped) <> Swap high and low nibbles (4-bit segments) MODE MODE register (not memory mapped) << Rotate left through carry bit rx Port control register pointer (RA, RB, RC) >> Rotate right through carry bit ! Non-memory-mapped register designator -- Cecrement file register f File register address bit in opcode ++ Increment file register k Constant value bit in opcode |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |