| Electronic Components Datasheet Search |
|
PIC16F15213T-I/ST Datasheet(PDF) 354 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST Datasheet(HTML) 354 Page - Microchip Technology |
|
354 / 439 page ![]() ...........continued SUBLW Subtract W from Literal Description The W register is subtracted (two’s complement method) from the 8-bit literal ‘k’. The result is placed in the W register. C = 0, W > k C = 1, W ≤ k DC = 0, W[3:0] > k[3:0] DC = 1, W[3:0] ≤ k[3:0] SUBWF Subtract W from f Syntax: [ label ] SUBWF f, d Operands: 0 ≤ f ≤ 127 d ∈ [0,1] Operation: (f) - (W) → (dest) Status Affected: C, DC, Z Description Subtract (two’s complement method) W register from register ‘f’. If ‘d’ is ‘0’, the result is stored in the W register. If ‘d’ is ‘1’, the result is stored back in register ‘f. C = 0, W > f C = 1, W ≤ f DC = 0, W[3:0] > f[3:0] DC = 1, W[3:0] ≤ f[3:0] SUBWFB Subtract W from f with Borrow Syntax: [ label ] SUBFWB f {,d} Operands: 0 ≤ f ≤ 127 d ∈ [0,1] Operation: (W) – (f) – (B) → dest Status Affected: C, DC, Z Description: Subtract W and the Borrow flag (Carry) from register ‘f’ (two’s complement method). If ‘d’ is ‘0’, the result is stored in W. If ‘d’ is ‘1’, the result is stored back in register ‘f’. SWAPF Swap Nibbles in f Syntax: [ label ] SWAPF f, d Operands: 0 ≤ f ≤ 127 d ∈ [0,1] Operation: (f[3:0]) → dest[7:4], (f[7:4]) → dest[3:0] Status Affected: None PIC16F15213/14/23/24/43/44 Instruction Set Summary © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 354 |
|
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 |