| Electronic Components Datasheet Search |
|
ATPL00B Datasheet(PDF) 35 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATPL00B Datasheet(HTML) 35 Page - ATMEL Corporation |
|
35 / 152 page ![]() Atmel ATPL00B [datasheet] 43028A-ATPL - 9/12 35 Table 4-8. Boolean Instructions MNEMONIC OPERATION EXECUTION TIME (mc) ANL C,bit C = C.AND.bit 1 ANL C,/bit C = C.AND..NOT.bit 1 ORL C,bit C = C.OR.bit 1 ORL C,/bit C = C.OR..NOT.bit 1 MOV C,bit C = bit 1 MOV bit,C bit = C 1 CLR C C = 0 1 CLR bit bit = 0 1 SETB C C = 1 1 SETB bit bit = 1 1 CPL C C = .NOT.C 1 CPL bit bit = .NOT.bit 1 JC rel Jump if C = 1 2 JNC rel Jump if C = 0 2 JB bit,rel Jump if bit = 1 2 JNB bit,rel Jump if bit = 0 2 JBC bit,rel Jump if bit = 1; CLR bit 2 Relative Offset The destination address for these jumps is specified to the assembler by a label or by an actual address in Program memory. However, the destination address assembles to a relative offset byte. This is a signed (two‟s complement) offset byte which is added to the PC in two‟s complement arithmetic if the jump is executed. The range of the jump is therefore –128 to +127 Program Memory bytes relative to the first byte following the instruction. 4.4.7 Jump Instructions Table 4-9 shows the list of unconditional jumps and the execution time associated. The table lists SJMP, LJMP, and AJMP, which differ in the format of the destination address. JMP is a generic mnemonic which can be used if the programmer does not care which way the jump is encoded. The SJMP instruction encodes the destination address as a relative offset, as described above. The instruction is 2 bytes long, consisting of the opcode and the relative offset byte. The jump distance is limited to a range of –128 to +127 bytes relative to the instruction following the SJMP. The LJMP instruction encodes the destination address as a 16-bit constant. The instruction is 3 bytes long, consisting of the opcode and two address bytes. The destination address can be anywhere in the 64k Program Memory space. |
|
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 |