I'm new to the list and happy to be here. I just moved to the pic from 8051
and am excited by the economical versatility provided by the pic. My Question:
I've seen code for the pic that includes 8051 type instructions like cjne,
djnz, jnb. Would this be for a specific assembler?? If so, what one? Or
would they just use macros. There was no definition included in the source
code. I find cjne to be very usefull. How do I go about using these
Also, would you reccomend MPLAB with MPASM or is there someting better.
|> Van: Stewart Pye <UQ.NET.AU> stew
> Aan: MITVMA.MIT.EDUPICLIST
> Onderwerp: assembler question??
> Datum: vrijdag 12 februari 1999 23:27
> Hi All,
> I'm new to the list and happy to be here. I just moved to the pic from
> and am excited by the economical versatility provided by the pic. My
> I've seen code for the pic that includes 8051 type instructions like
> djnz, jnb. Would this be for a specific assembler?? If so, what one? Or
> would they just use macros. There was no definition included in the
> code. I find cjne to be very usefull. How do I go about using these
Your right on the track. In MPASM you'll be using Macros for that. I
personally won't use any macro that includes more than one instruction :
PIC's only have SKIP instructions handling flags and it's too easy to
_think_ you are skiping the whole next command where you in effect are only
skipping the first command of a set grouped together by a Macro ....
Dr. Imre Bartfai
welcome in PIC world.
The answer to your question:
there is a 3rd party firm, called Parallax, Inc (http://www.parallaxinc.com).
They created a dialect for PIC assembly resembling 8051. Former I
criticized it but I retired as I learned to enjoy it and avoid the (very
small number of) pitfalls. This dialect is thus supported by the Parallax
assembler. However, you can define them as macros for MPASM. Or, mElabs
(maker of PIC Basic Pro, which is also fine) provides own assembler
(PM.EXE) with their compiler, and this supports also the so-called
"Parallax Instruction Set".
I hope this helps.
On Sat, 13 Feb 1999, Stewart Pye wrote:
Thanks for the replies to my previous question. I just wrote a test program
for my first pic project. I was amazed when I had so many errors and it was
because the register addresses were not defined. I had included
"p16f84.inc" but I had to do equates to define the registers (eg portb). Is
there another file I should be including for all the register definitions.
I'm reading all the microchip literature but there's so much to wade
through. Thanks in advance.....
At 12:45 15/02/99 +0100, you wrote:
MPASM IS CASE SENSITIVE HA HA HA ha ha ha
ie you must either type all register names in upper case, or leave caps
LIST P=16F84 ; PIC16F84 IS THE TARGET PROCESSOR
__CONFIG _WDT_ON & _XT_OSC & _PWRTE_ON & _CP_ON
Stewart Pye wrote:
Steam engines may be out of fashion, but when you consider that an
internal combustion engine would require recovery of waste heat by
transfer just before top dead centre then fashion becomes rather
redundant, USE STRATIFIED HEAT EXCHANGERS ! and external combustion.
You heard it first from: Graham Daniel, managing director of Electronic
Phone NZ 04 387 4347, Fax NZ 04 3874348, Cellular NZ 021 954 196.
| There's an option to disable case sensitivity (though it still
seems to be case sensitive in MPLAB debug stuff, like setting
breakpoints, etc.). In MPLAB, go to the project menu, select add/modify
compiler, and set the "extra default options" to /q /c- where /q enables
quiet mode (which I think Microchip set) and /c- turns off case
Pretty much all my code is in lower case, though I mix case on
long labels (instead of using an underscore to separate words in a
Hallikainen & Friends, Inc.
See the FCC Rules at http://hallikainen.com/FccRules and comments filed
in LPFM proceeding at http://hallikainen.com/lpfm
On Tue, 16 Feb 1999 21:49:35 +1300 Graham Daniel <PARADISE.NET.NZ> epe
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]
GRAEME SMITH email: freenet.edmonton.ab.cagrysmith
Address has changed with little warning!
(I moved across the hall! :) )
Email will remain constant... at least for now.
On Tue, 16 Feb 1999, Stewart Pye wrote:
The include file, does equates, for the ports, but, because the assembler
defaults to case-sensitive mode, the assembler doesn't recognize the port
names, when they are printed in a different case. try PORTA instead of
Thanks everyone for the help. I've figured out how to make mpasm and mplab
non case sensitive and some other "quirks" mplab has.
>The include file, does equates, for the ports, but, because the assembler
>defaults to case-sensitive mode, the assembler doesn't recognize the port
>names, when they are printed in a different case. try PORTA instead of
Stewart Pye wrote:
> Thanks everyone for the help. I've figured out how to make mpasm and mplab
> non case sensitive and some other "quirks" mplab has.
> Stewart Pye
> >The include file, does equates, for the ports, but, because the assembler
> >defaults to case-sensitive mode, the assembler doesn't recognize the port
> >names, when they are printed in a different case. try PORTA instead of
> > GREY
Would you please pass on this 'how to'? I tried the disable option
suggested by Harold Hallikainen, but found no 'select add/modify
compiler' under the 'project' menu.
Harley L. Miller sound.nethmiller
erm, esp. actually Graham & Stewart.
Usefully, it IS possible to disable case sensitivity.
This is my default editing mode, as I use casing conventions throughout the
source to help me with housekeeping.
Of course, these private rules of mine are completely at variance with
MPASM's whims, so I looked for, and eventually found the way to kill it.
It is obscurely detailed in my copy of the `MPASM User's Guide' DS22014F
page14 `command line interface' defaults chapter2.
in the `Extra Assembler Options' checkbox put /c-
Best regards, John
e-mail from the desk of John Sanderson, JS Controls.
Snailmail: PO Box 1887, Boksburg 1460, Rep. of South Africa.
Tel/fax: Johannesburg 893 4154
Cellphone no: 082 469 0446
Manufacturer & purveyor of laboratory force testing apparatus, and related
products and services.
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...