| Electronic Components Datasheet Search |
|
FS98O02B-PCE Datasheet(PDF) 44 Page - Fortune Semiconductor Corp. |
|
|
|||||||||||||||||||||||||||||
FS98O02B-PCE Datasheet(HTML) 44 Page - Fortune Semiconductor Corp. |
|
44 / 50 page ![]() FS98O02 Rev.1.5 44/50 Flag Affected Z Description AND the content of the W register with [f]. If d is 0, the result is stored in the W register. If d is 1, the result is stored back in f. Cycle 1 Example 1: ANDWF OPERAND,0 Before instruction: W = 0Fh, OPERAND = 88h After instruction: W = 08h, OPERAND = 88h Example 2: ANDWF OPERAND,1 Before instruction: W = 0Fh, OPERAND = 88h After instruction: W = 88h, OPERAND = 08h BCF Bit Clear f Syntax BCF f, b 0 ≤ f ≤ FFh 0 ≤ b ≤ 7 Operation [f<b>] ← 0 Flag Affected None Description Bit b in [f] is reset to 0. Cycle 1 Example: BCF FLAG, 2 Before instruction: FLAG = 8Dh After instruction: FLAG = 89h BSF Bit Set f Syntax BSF f, b 0 ≤ f ≤ FFh 0 ≤ b ≤ 7 Operation [f<b>] ← 1 Flag Affected None Description Bit b in [f] is set to 1. Cycle 1 Example: BSF FLAG, 2 Before instruction: FLAG = 89h After instruction: FLAG = 8Dh BTFSC Bit Test skip if Clear Syntax BTFSC f, b 0 ≤ f ≤ FFh 0 ≤ b ≤ 7 Operation Skip if [f<b>] = 0 Flag Affected None Description If bit 'b' in [f] is 0, the next fetched instruction is discarded and a NOP is executed instead making it a two-cycle instruction. Cycle 1, 2 Example: Node BTFSC FLAG, 2 OP1 : OP2 : Before instruction: PC = address (Node) After instruction: If FLAG<2> = 0 PC = address(OP2) If FLAG<2> = 1 PC = address(OP1) BTFSS Bit Test skip if Set Syntax BTFSS f, b 0 ≤ f ≤ FFh 0 ≤ b ≤ 7 Operation Skip if [f<b>] = 1 Flag Affected None Description If bit 'b' in [f] is 1, the next fetched instruction is discarded and a NOP is executed instead making it a two-cycle instruction. Cycle 1, 2 Example: Node BTFSS FLAG, 2 OP1 : OP2 : Before instruction: PC = address (Node) After instruction: If FLAG<2> = 0 PC = address(OP1) If FLAG<2> = 1 PC = address(OP2) CALL Subroutine CALL Syntax CALL k 0 ≤ k ≤ 1FFFh Operation Push Stack [Top Stack] ← PC + 1 PC ← k Flag Affected None Description Subroutine Call. First, return address PC + 1 is pushed onto the stack. The immediate address is loaded into PC. Cycle 2 Example: HERE CALL THERE Before instruction: PC = address (HERE) After instruction: PC = address (THERE) TOS = address (HERE + 1) CLRF Clear f Syntax CLRF f 0 ≤ f ≤ 255 Operation [f] ← 0 Flag Affected None |
|
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 |