| Electronic Components Datasheet Search |
|
PM0044 Datasheet(PDF) 87 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0044 Datasheet(HTML) 87 Page - STMicroelectronics |
|
87 / 162 page ![]() PM0044 STM8 instruction set Doc ID 13590 Rev 3 87/162 Syntax BTJT dst,#pos,rel pos = [0..7], rel is relative jump label e.g.: BTJT PADR,#7,skip Operation PC = PC+lgth PC = PC + rel IF (dst AND (2**pos)) <> 0 Description Read the destination byte, test the corresponding bit (bit position), and jump to 'rel' label if the bit is true (1), else continue the program to the next instruction. The tested bit is saved in the C flag. The destination is a memory byte. The bit position is a constant. The jump label represents a signed offset to be added to the current PC/instruction address (relative jump). This instruction is used for boolean variable manipulation, hardware register flag tests, or I/O polling. Instruction overview C ⇒ Tested bit is saved in the C flag. Detailed description See also: BTJF BTJT Bit Test and Jump if True BTJT mnem dst bit position jump label Affected condition flags VI1 H I0 N Z C BTJT Mem #pos rel - ----- C dst pos = 0..7 Asm cy lgth Op-code(s) ST7 longmem n= 2*pos BTJT $1000,#1,loop 2/3 5 72 0n MS LS XX |
|
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 |