Exact match. Not showing close matches.
PICList
Thread
'[PIC]: Does anyone know what these instructions ar'
2001\02\27@161719
by
cas Fenoll Molina
2001\02\27@162535
by
Bob Ammerman
These are extended mnemonics and effectively shorthand for:
SNPNDC == btfsc STATUS,DC
SKPDC == btfss STATUS,DC
They test the 'digit carry' bit of the status register. This bit contains
the carry out of the 4 lsbits of an arithmetic operation.
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
{Original Message removed}
2001\02\27@163153
by
Drew Vassallo
>These are extended mnemonics and effectively shorthand for:
>
>SNPNDC == btfsc STATUS,DC
or "skip next instruction on no digit carry"
>SKPDC == btfss STATUS,DC
or "skip next instruction on digit carry"
which may help you remember which is which.
--Andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\02\27@164506
by
promero
|
part 0 44 bytes
his is a multi-part message in MIME format.
part 1 176 bytes content-type:text/plain; charset=us-ascii (decoded 7bit)
These are not instructions, they are pre-defined "macros" in MPASM or
special instructions as they are listed in the attachment.
part 2 2545 bytes content-type:text/plain; charset=us-ascii;
(decoded 7bit)
Mnemonic Description Equivalent
Operation(s) Status
ADDCF f,d Add Carry to File BTFSC 3,0 Z
INCF f,d
ADDDCF f,d Add Digit Carry to File BTFSC 3,1 Z
INCF f,d
B k Branch GOTO k -
BC k Branch on Carry BTFSC 3,0 -
GOTO k
BDC k Branch on Digit Carry BTFSC 3,1 -
GOTO k
BNC k Branch on No Carry BTFSS 3,0 -
GOTO k
BNDC k Branch on No Digit Carry BTFSS 3,1 -
GOTO k
BNZk Branch on No Zero BTFSS 3,2 -
GOTO k
BZ k Branch on Zero BTFSC 3,2 -
GOTO k
CLRC Clear Carry BCF 3,0 -
CLRDC Clear Digit Carry BCF 3,1 -
CLRZ Clear Zero BCF 3,2 -
LCALLk
LGOTOk
MOVFWf Move File to W MOVF f,0 Z
NEGFf,d Negate File COMF f,1 Z
INCF f,d
SETC Set Carry BSF 3,0 -
SETDC Set Digit Carry BSF 3,1 -
SETZ Set Zero BSF 3,2 -
SKPC Skip on Carry BTFSS 3,0 -
SKPDC Skip on Digit Carry BTFSS 3,1 -
SKPNC Skip on No Carry BTFSC 3,0 -
SKPNDC Skip on No Digit Carry BTFSC 3,1 -
SKPNZ Skip on Non Zero BTFSC 3,2 -
SKPZ Skip on Zero BTFSS 3,2 -
SUBCFf,d Subtract Carry from File BTFSC 3,0 Z
DECF f,d
SUBDCFf,d Subtract Digit Carry from File BTFSC 3,1 Z
DECF f,d
TSTFf Test File MOVF f,1 Z
part 3 422 bytes content-type:text/x-vcard; charset=us-ascii;
(decoded quoted-printable)
begin:vcard n:Romero Plaza;Pável Ernesto
tel;cell:5489528
tel;fax:6-7444829
tel;home:6-7464233
tel;work:6-7444829
x-mozilla-html:TRUE
url:http://www.insitel.com.co
org:Insitel Ltda.;Research & Development
adr:;;Calle 21 # 16 - 46 Piso 7;Armenia;Quindío;;Colombia
version:2.1
email;internet:spam_OUTpromeroTakeThisOuT
insitel.com.co
title:Hardware Engineer
fn:Pável Ernesto Romero Plaza
end:vcard
part 4 144 bytes
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\02\27@215812
by
Olin Lathrop
> These are not instructions, they are pre-defined "macros" in MPASM or
> special instructions as they are listed in the attachment.
> ...
Along those same lines, I use similar macros for skipping appropriately from
the result of a subtract, like SKIP_WGT (SKIP if W was Greater Than),
SKIP_WLE (SKIP if W was Less than or Equal), etc. You can see the source at
http://www.embedinc.com/pic in file STD.INS.ASPIC.
*****************************************************************
Olin Lathrop, embedded systems consultant in Devens Massachusetts
(978) 772-3129, .....olinKILLspam
@spam@embedinc.com, http://www.embedinc.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- Today
- New search...